projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4b5158
)
broadcom/vc5: Fix handling of 5551 textures using the new gallium format.
author
Eric Anholt
<eric@anholt.net>
Tue, 10 Oct 2017 18:19:23 +0000
(11:19 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 10 Oct 2017 18:42:06 +0000
(11:42 -0700)
Like vc4, we have the alpha in the low bit. Fixes a bunch of piglit
texwrap failures.
src/gallium/drivers/vc5/vc5_formats.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc5/vc5_formats.c
b/src/gallium/drivers/vc5/vc5_formats.c
index d0c96cc97d4f304e40e49bb90506dcc9984bf46a..5d807b1a4d488732c29ea827da4945f67b524758 100644
(file)
--- a/
src/gallium/drivers/vc5/vc5_formats.c
+++ b/
src/gallium/drivers/vc5/vc5_formats.c
@@
-111,8
+111,8
@@
static const struct vc5_format vc5_format_table[] = {
FORMAT(B4G4R4A4_UNORM, ABGR4444, RGBA4, SWIZ_YZWX, 16, 0),
FORMAT(B4G4R4X4_UNORM, ABGR4444, RGBA4, SWIZ_YZW1, 16, 0),
- FORMAT(
B5G5R5A1_UNORM, NO, RGB5_A1, SWIZ_YZWX
, 16, 0),
- FORMAT(
B5G5R5X1_UNORM, NO, RGB5_A1, SWIZ_YZW
1, 16, 0),
+ FORMAT(
A1B5G5R5_UNORM, NO, RGB5_A1, SWIZ_XYZW
, 16, 0),
+ FORMAT(
X1B5G5R5_UNORM, NO, RGB5_A1, SWIZ_XYZ
1, 16, 0),
FORMAT(B5G6R5_UNORM, BGR565, RGB565, SWIZ_XYZ1, 16, 0),
FORMAT(R8_UNORM, R8, R8, SWIZ_X001, 16, 0),