projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35f8f35
)
util/format: translate A4R4G4B4_UNORM and A4B4G4R4_UNORM vulkan formats
author
Jonathan Marek
<jonathan@marek.ca>
Mon, 3 Aug 2020 19:49:42 +0000
(15:49 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 4 Aug 2020 13:15:23 +0000
(13:15 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6164>
src/vulkan/util/vk_format.c
patch
|
blob
|
history
diff --git
a/src/vulkan/util/vk_format.c
b/src/vulkan/util/vk_format.c
index 9ffd3b9e292aa3c9dd6c01bb8c628be922a5ca2a..69edf0e69d2b3f34c4cef2ba821e8bd37ecc5417 100644
(file)
--- a/
src/vulkan/util/vk_format.c
+++ b/
src/vulkan/util/vk_format.c
@@
-270,6
+270,10
@@
vk_format_to_pipe_format(enum VkFormat vkformat)
return PIPE_FORMAT_Y16_U16V16_422_UNORM;
case VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:
return PIPE_FORMAT_Y16_U16_V16_444_UNORM;
+ case VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT:
+ return PIPE_FORMAT_B4G4R4A4_UNORM;
+ case VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT:
+ return PIPE_FORMAT_R4G4B4A4_UNORM;
default:
return PIPE_FORMAT_NONE;
}