projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e11f04
)
zink: emulate B8G8R8X8_SRGB with B8G8R8A8_SRGB
author
Erik Faye-Lund
<erik.faye-lund@collabora.com>
Tue, 9 Jun 2020 19:07:48 +0000
(21:07 +0200)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 9 Jun 2020 19:35:26 +0000
(19:35 +0000)
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5407>
src/gallium/drivers/zink/zink_format.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/zink/zink_format.c
b/src/gallium/drivers/zink/zink_format.c
index bd2dd92cec65d958380901e8d3134c7a81a7d540..50f89995a904901448aa35e98624431b3df1e69a 100644
(file)
--- a/
src/gallium/drivers/zink/zink_format.c
+++ b/
src/gallium/drivers/zink/zink_format.c
@@
-75,6
+75,7
@@
static const VkFormat formats[PIPE_FORMAT_COUNT] = {
[PIPE_FORMAT_B8G8R8A8_UNORM] = VK_FORMAT_B8G8R8A8_UNORM,
[PIPE_FORMAT_B8G8R8X8_UNORM] = VK_FORMAT_B8G8R8A8_UNORM,
MAP_FORMAT_SRGB(B8G8R8A8)
+ [PIPE_FORMAT_B8G8R8X8_SRGB] = VK_FORMAT_B8G8R8A8_SRGB,
[PIPE_FORMAT_A8B8G8R8_SRGB] = VK_FORMAT_A8B8G8R8_SRGB_PACK32,
// 16-bits
MAP_FORMAT_NORM(R16G16B16A16)