Skip to content

Commit ac9f68b

Browse files
author
Jonah Williams
authored
[Impeller] detect mediatek soc and fall back to GLES. (#164126)
If the device is _probably_ mediatek, then use OpenGL. We may relax this check if the future if we find a mediatek soc that works well w/ Vulkan.
1 parent 8bb34f2 commit ac9f68b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

engine/src/flutter/shell/platform/android/flutter_main.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,11 @@ AndroidRenderingAPI FlutterMain::SelectedRenderingAPI(
310310
return kVulkanUnsupportedFallback;
311311
}
312312

313+
if (__system_property_find("ro.vendor.mediatek.platform") != nullptr) {
314+
// Probably MediaTek. Avoid Vulkan.
315+
return kVulkanUnsupportedFallback;
316+
}
317+
313318
__system_property_get("ro.product.board", product_model);
314319
if (IsKnownBadSOC(product_model)) {
315320
// Avoid using Vulkan on known bad SoCs.

0 commit comments

Comments
 (0)