diff options
| author | 2024-02-27 12:36:09 +0000 | |
|---|---|---|
| committer | 2024-02-27 15:57:35 +0000 | |
| commit | 415c59e4430e8aa34295cf09d6c0eb7ee5658705 (patch) | |
| tree | 6510cb4561df63f1d6805319d079d1fcdc65d2ed | |
| parent | e37267dbc1592af274518294432ece92ba448b45 (diff) | |
Disable SkiaVK support on CPU implementations
Swiftshader is not ready for SkiaVK and causing black
screen problems when enabled. We temporarily disable
the support for CPU device types as a workaround until
the actual problems are fixed.
Bug: 326633110
Test: emulator -gpu swiftshader
Change-Id: I76c4347c3f9ffd9ddb4f85dae0e05eba191c0069
| -rw-r--r-- | libs/renderengine/skia/SkiaVkRenderEngine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/renderengine/skia/SkiaVkRenderEngine.cpp b/libs/renderengine/skia/SkiaVkRenderEngine.cpp index b43ab6c9df..eb7a9d5bfa 100644 --- a/libs/renderengine/skia/SkiaVkRenderEngine.cpp +++ b/libs/renderengine/skia/SkiaVkRenderEngine.cpp @@ -378,6 +378,11 @@ VulkanInterface initVulkanInterface(bool protectedContent = false) { BAIL("Could not find a Vulkan 1.1+ physical device"); } + if (physDevProps.properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU) { + // TODO: b/326633110 - SkiaVK is not working correctly on swiftshader path. + BAIL("CPU implementations of Vulkan is not supported"); + } + // Check for syncfd support. Bail if we cannot both import and export them. VkPhysicalDeviceExternalSemaphoreInfo semInfo = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO, |