broadcom/vc5: Use the proper gallium format for our RGB10_A2.
authorEric Anholt <eric@anholt.net>
Fri, 27 Oct 2017 21:08:02 +0000 (14:08 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Oct 2017 20:31:31 +0000 (13:31 -0700)
This keeps us from needing our own reswizzling of the B vs R fields.

src/gallium/drivers/vc5/vc5_formats.c

index 114f2d741e8fb05b01e221d86705ff24a9fca356..048fc8254f3f751f8e0810e88ccf13806b71c975 100644 (file)
@@ -106,7 +106,7 @@ static const struct vc5_format vc5_format_table[] = {
         FORMAT(R8G8B8X8_UNORM,    RGBX8,        RGBA8,       SWIZ_XYZ1, 16, 0),
         FORMAT(R8G8B8A8_SNORM,    NO,           RGBA8_SNORM, SWIZ_XYZW, 16, 0),
         FORMAT(R8G8B8X8_SNORM,    NO,           RGBA8_SNORM, SWIZ_XYZ1, 16, 0),
-        FORMAT(B10G10R10A2_UNORM, RGB10_A2,     RGB10_A2,    SWIZ_ZYXW, 16, 0),
+        FORMAT(R10G10B10A2_UNORM, RGB10_A2,     RGB10_A2,    SWIZ_XYZW, 16, 0),
 
         FORMAT(B4G4R4A4_UNORM,    ABGR4444,     RGBA4,       SWIZ_YZWX, 16, 0),
         FORMAT(B4G4R4X4_UNORM,    ABGR4444,     RGBA4,       SWIZ_YZW1, 16, 0),