From 73cf3429d3b6f42ca946584855cf3843db6b7091 Mon Sep 17 00:00:00 2001 From: Juston Li Date: Mon, 8 Jul 2024 12:51:12 -0700 Subject: [PATCH] anv/android: handle R8G8B8X8 as R8G8B8A8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fall through to common vk_ahb_format_to_image_format() to handle R8G8B8X8 as R8G8B8A8. Fixes issues with querying for format feature support when its handled as R8G8B8. Signed-off-by: Juston Li Reviewed-by: Yiwei Zhang Reviewed-by: Tapani Pälli Part-of: (cherry picked from commit ef58f2408fe3d2454c22a2acecf4c73f9936c0db) --- src/intel/vulkan/anv_android.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c index b6751a61278..c0d501562b8 100644 --- a/src/intel/vulkan/anv_android.c +++ b/src/intel/vulkan/anv_android.c @@ -114,8 +114,6 @@ inline VkFormat vk_format_from_android(unsigned android_format, unsigned android_usage) { switch (android_format) { - case AHARDWAREBUFFER_FORMAT_R8G8B8X8_UNORM: - return VK_FORMAT_R8G8B8_UNORM; case AHARDWAREBUFFER_FORMAT_Y8Cb8Cr8_420: case HAL_PIXEL_FORMAT_NV12_Y_TILED_INTEL: return VK_FORMAT_G8_B8R8_2PLANE_420_UNORM;