From 9e5df1897c8782a7d1bfbc11fa4bef47177db404 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 27 Oct 2017 14:08:02 -0700 Subject: [PATCH] broadcom/vc5: Use the proper gallium format for our RGB10_A2. This keeps us from needing our own reswizzling of the B vs R fields. --- src/gallium/drivers/vc5/vc5_formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc5/vc5_formats.c b/src/gallium/drivers/vc5/vc5_formats.c index 114f2d741e8..048fc8254f3 100644 --- a/src/gallium/drivers/vc5/vc5_formats.c +++ b/src/gallium/drivers/vc5/vc5_formats.c @@ -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), -- 2.30.2