Skip to content

Commit e180f48

Browse files
committed
[Impeller] Fall back to OpenGLES on Realtek RTD6748 (PowerVR BXE-4-32)
The Impeller Vulkan backend leaves stale/ghosted frames on the Imagination PowerVR B-Series BXE-4-32 (Realtek RTD6748 TV SoC): the framebuffer is not cleared between frames. The OpenGLES backend renders correctly on the same device. Add the SoC to the known-bad list so Vulkan is skipped, and also check ro.hardware since this SoC does not report via ro.product.board. Fixes: flutter#189767
1 parent 17cfb56 commit e180f48

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎engine/src/flutter/shell/platform/android/android_context_dynamic_impeller.cc‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ static constexpr const char* kBadSocs[] = {
3939
// https://github.com/flutter/flutter/issues/171992.
4040
"exynos9820", //
4141
"exynos9825", //
42-
"rk30sdk" // https://github.com/flutter/flutter/issues/183510
42+
"rk30sdk", // https://github.com/flutter/flutter/issues/183510
43+
// Realtek RTD6748 TV SoC (Imagination PowerVR B-Series BXE-4-32): the
44+
// Impeller Vulkan backend does not clear the framebuffer between frames,
45+
// leaving stale/ghosted frames; the OpenGLES backend renders correctly.
46+
// https://github.com/flutter/flutter/issues/189767
47+
"rtd6748" //
4348
};
4449

4550
static bool IsDeviceEmulator() {
@@ -119,6 +124,15 @@ GetActualRenderingAPIForImpeller(
119124
return nullptr;
120125
}
121126

127+
// Some SoCs (e.g. Realtek RTD67xx TV chips) do not report their identifier
128+
// via ro.product.board, so also check ro.hardware.
129+
__system_property_get("ro.hardware", property);
130+
if (IsKnownBadSOC(property)) {
131+
FML_LOG(INFO)
132+
<< "Known bad Vulkan driver encountered, falling back to OpenGLES.";
133+
return nullptr;
134+
}
135+
122136
// Determine if Vulkan is supported by creating a Vulkan context and
123137
// checking if it is valid.
124138
impeller::ScopedValidationDisable disable_validation;

0 commit comments

Comments
 (0)