projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aaa088
)
v3dv: add the unswizzled RGBA4444 format
author
Charlie
<charlie@daft.games>
Fri, 11 Jun 2021 18:54:50 +0000
(19:54 +0100)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 17 Jun 2021 11:33:06 +0000
(11:33 +0000)
If we're supporting the R/B swapped one we might as well support the one that
isn't.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11336>
src/broadcom/vulkan/v3dv_formats.c
patch
|
blob
|
history
diff --git
a/src/broadcom/vulkan/v3dv_formats.c
b/src/broadcom/vulkan/v3dv_formats.c
index
43ba8b9
..
a1ca89a
100644
(file)
--- a/
src/broadcom/vulkan/v3dv_formats.c
+++ b/
src/broadcom/vulkan/v3dv_formats.c
@@
-123,6
+123,7
@@
static const struct v3dv_format format_table[] = {
FORMAT(R32_UINT, R32UI, R32UI, SWIZ_X001, 32, false),
/* Color, packed */
+ FORMAT(R4G4B4A4_UNORM_PACK16, ABGR4444, RGBA4, SWIZ_XYZW, 16, true),
FORMAT(B4G4R4A4_UNORM_PACK16, ABGR4444, RGBA4, SWIZ_ZYXW, 16, true), /* Swap RB */
FORMAT(R5G6B5_UNORM_PACK16, BGR565, RGB565, SWIZ_XYZ1, 16, true),
FORMAT(R5G5B5A1_UNORM_PACK16, ABGR1555, RGB5_A1, SWIZ_XYZW, 16, true),