aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorIván Briano <[email protected]>2020-05-07 13:34:04 -0700
committerMarge Bot <[email protected]>2020-05-13 23:20:50 +0000
commit6ae0762f5c05284cda768fff9334eee28f3d0355 (patch)
tree866719d3dd794bb80fa41ec0bec6f922b32b0bd4 /src/intel
parent4cf702c3326264c616c112280fe8947bfcc5eb11 (diff)
anv: use the correct format on Android
Per https://android.googlesource.com/platform/frameworks/native/+/master/vulkan/libvulkan/swapchain.cpp#745 the format Android requires is R5G6B5, and we have it backwards here. Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4898>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c
index b46a990b32e..8e6d0b65ea1 100644
--- a/src/intel/vulkan/anv_android.c
+++ b/src/intel/vulkan/anv_android.c
@@ -616,7 +616,7 @@ setup_gralloc0_usage(VkFormat format, VkImageUsageFlags imageUsage,
*/
switch (format) {
case VK_FORMAT_B8G8R8A8_UNORM:
- case VK_FORMAT_B5G6R5_UNORM_PACK16:
+ case VK_FORMAT_R5G6B5_UNORM_PACK16:
case VK_FORMAT_R8G8B8A8_UNORM:
case VK_FORMAT_R8G8B8A8_SRGB:
*grallocUsage |= GRALLOC_USAGE_HW_FB |