mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] disable Maleoon GPU from using Vulkan. (flutter/engine#56203)
Fixes https://github.com/flutter/flutter/issues/156623 using info from https://vulkan.gpuinfo.org/displayreport.php?id=23730 . I dont believe these vulkan drivers are working correctly.
This commit is contained in:
parent
3e9f90a834
commit
f1300a6ce6
@ -350,6 +350,11 @@ bool DriverInfoVK::IsKnownBadDriver() const {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Disable Maleoon series GPUs, see:
|
||||
// https://github.com/flutter/flutter/issues/156623
|
||||
if (vendor_ == VendorVK::kHuawei) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -36,6 +36,19 @@ TEST_P(DriverInfoVKTest, CanDumpToLog) {
|
||||
EXPECT_TRUE(log.str().find("Driver Information") != std::string::npos);
|
||||
}
|
||||
|
||||
TEST(DriverInfoVKTest, CanIdentifyBadMaleoonDriver) {
|
||||
auto const context =
|
||||
MockVulkanContextBuilder()
|
||||
.SetPhysicalPropertiesCallback(
|
||||
[](VkPhysicalDevice device, VkPhysicalDeviceProperties* prop) {
|
||||
prop->vendorID = 0x19E5; // Huawei
|
||||
prop->deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU;
|
||||
})
|
||||
.Build();
|
||||
|
||||
EXPECT_TRUE(context->GetDriverInfo()->IsKnownBadDriver());
|
||||
}
|
||||
|
||||
bool IsBadVersionTest(std::string_view driver_name, bool qc = true) {
|
||||
auto const context =
|
||||
MockVulkanContextBuilder()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user