diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-12-10 16:53:56 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-12-11 11:40:13 +0100 |
commit | 2e44bfc14f5c2e44ed820257615c2008955bc5bf (patch) | |
tree | 0578363648de196e273d1496a14e76cc0b09b474 /src/amd | |
parent | 63ae9e61c1da83e4972651f46b773799239c4a2c (diff) |
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 <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_android.c | 2 |
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: |