From: Eric Anholt Date: Tue, 10 Oct 2017 18:19:23 +0000 (-0700) Subject: broadcom/vc5: Fix handling of 5551 textures using the new gallium format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2687183a3493bec0dc9dd9ec13222da579ec51c2;p=mesa.git 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. --- 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),