[Impeller] disable Adreno 506. (flutter/engine#56210)

Fixes https://github.com/flutter/flutter/issues/155185
This commit is contained in:
Jonah Williams
2024-10-29 11:43:22 -07:00
committed by GitHub
parent bc43093cdd
commit 1f229c58cf
2 changed files with 7 additions and 2 deletions

View File

@@ -338,13 +338,17 @@ bool DriverInfoVK::IsKnownBadDriver() const {
if (adreno_gpu_.has_value()) {
auto adreno = adreno_gpu_.value();
switch (adreno) {
// see:
// See:
// https://github.com/flutter/flutter/issues/154103
//
// Reports "VK_INCOMPLETE" when compiling certain entity shader with
// vkCreateGraphicsPipelines, which is not a valid return status.
// See https://github.com/flutter/flutter/issues/155185 .
case AdrenoGPU::kAdreno630:
// See:
// https://github.com/flutter/flutter/issues/155185
// Unknown crashes but device is not easily acquirable.
case AdrenoGPU::kAdreno506:
return true;
default:
return false;

View File

@@ -126,9 +126,10 @@ TEST(DriverInfoVKTest, EnabledDevicesAdreno) {
EXPECT_FALSE(IsBadVersionTest("Adreno (TM) 512"));
EXPECT_FALSE(IsBadVersionTest("Adreno (TM) 509"));
EXPECT_FALSE(IsBadVersionTest("Adreno (TM) 508"));
EXPECT_FALSE(IsBadVersionTest("Adreno (TM) 506"));
EXPECT_FALSE(IsBadVersionTest("Adreno (TM) 505"));
EXPECT_FALSE(IsBadVersionTest("Adreno (TM) 504"));
EXPECT_TRUE(IsBadVersionTest("Adreno (TM) 506"));
}
} // namespace impeller::testing