diff options
author | Eric Anholt <[email protected]> | 2017-10-10 11:19:23 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-10 11:42:06 -0700 |
commit | 2687183a3493bec0dc9dd9ec13222da579ec51c2 (patch) | |
tree | 560829458960ecb5d822c02a189e8cb29a0ca24a /src/gallium/drivers | |
parent | f4b515887469831468c1afb032e8c7431ccf4c6c (diff) |
broadcom/vc5: Fix handling of 5551 textures using the new gallium format.
Like vc4, we have the alpha in the low bit. Fixes a bunch of piglit
texwrap failures.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_formats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc5/vc5_formats.c b/src/gallium/drivers/vc5/vc5_formats.c index d0c96cc97d4..5d807b1a4d4 100644 --- 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_YZW1, 16, 0), + FORMAT(A1B5G5R5_UNORM, NO, RGB5_A1, SWIZ_XYZW, 16, 0), + FORMAT(X1B5G5R5_UNORM, NO, RGB5_A1, SWIZ_XYZ1, 16, 0), FORMAT(B5G6R5_UNORM, BGR565, RGB565, SWIZ_XYZ1, 16, 0), FORMAT(R8_UNORM, R8, R8, SWIZ_X001, 16, 0), |