Skip to content

Commit

Permalink
anv/android: handle R8G8B8X8 as R8G8B8A8
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Yiwei Zhang <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30080>
(cherry picked from commit ef58f24)
  • Loading branch information
juston-li authored and JeevakaPrabu committed Dec 11, 2024
1 parent 79e5b76 commit 73cf342
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/intel/vulkan/anv_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73cf342

Please sign in to comment.