From 415c59e4430e8aa34295cf09d6c0eb7ee5658705 Mon Sep 17 00:00:00 2001 From: Serdar Kocdemir Date: Tue, 27 Feb 2024 12:36:09 +0000 Subject: 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 --- libs/renderengine/skia/SkiaVkRenderEngine.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit v1.2.3-59-g8ed1b