summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2019-12-10 16:53:56 +0100
committerDylan Baker <dylan@pnwbakers.com>2019-12-11 15:46:20 -0800
commitd4dad580e5f2094729f13717caff8975cc1511ef (patch)
treed6b86af25fe985b8d0c1af74e2133d3ffbe78c98
parent4a3b4ccf6b8d61e623a01f9d99a3ac346df767a4 (diff)
downloadmesa-d4dad580e5f2094729f13717caff8975cc1511ef.tar.gz
mesa-d4dad580e5f2094729f13717caff8975cc1511ef.tar.bz2
mesa-d4dad580e5f2094729f13717caff8975cc1511ef.zip
radv: Fix RGBX Android<->Vulkan format correspondence.
This is correct per the Vulkan spec format equivalence table. Fixes: f36b52740a0 "radv/android: Add android hardware buffer queries." Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 2e44bfc14f5c2e44ed820257615c2008955bc5bf)
-rw-r--r--src/amd/vulkan/radv_android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_android.c b/src/amd/vulkan/radv_android.c
index cd4587d5af1..875cdb50d08 100644
--- a/src/amd/vulkan/radv_android.c
+++ b/src/amd/vulkan/radv_android.c
@@ -392,8 +392,8 @@ vk_format_from_android(unsigned android_format, unsigned android_usage)
{
switch (android_format) {
case AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM:
- return VK_FORMAT_R8G8B8A8_UNORM;
case AHARDWAREBUFFER_FORMAT_R8G8B8X8_UNORM:
+ return VK_FORMAT_R8G8B8A8_UNORM;
case AHARDWAREBUFFER_FORMAT_R8G8B8_UNORM:
return VK_FORMAT_R8G8B8_UNORM;
case AHARDWAREBUFFER_FORMAT_R5G6B5_UNORM: