diff options
author | Eric Anholt <[email protected]> | 2018-03-26 12:39:12 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-03-26 17:46:23 -0700 |
commit | 0024b77e876017b559b76d816d40a2abbd9a0ea1 (patch) | |
tree | 3a3d26a5255270a2ee830108b1019ef7f017d46c | |
parent | c2b13627d9d7973687350cab243ade65115cff0d (diff) |
broadcom/vc5: Fix swizzling of RGB10_A2UI render targets.
This is the actual hardware layout, and we were only swizzling R/B back
around in texturing. Fixes part of
KHR-GLES3.copy_tex_image_conversions.required.cubemap_negx_cubemap_negx in
simulation.
-rw-r--r-- | src/gallium/drivers/vc5/v3dx_format_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/v3dx_format_table.c b/src/gallium/drivers/vc5/v3dx_format_table.c index 884f7373a17..4aaf0ecd3d4 100644 --- a/src/gallium/drivers/vc5/v3dx_format_table.c +++ b/src/gallium/drivers/vc5/v3dx_format_table.c @@ -68,7 +68,7 @@ static const struct vc5_format format_table[] = { FORMAT(R8G8B8A8_SNORM, NO, RGBA8_SNORM, SWIZ_XYZW, 16, 0), FORMAT(R8G8B8X8_SNORM, NO, RGBA8_SNORM, SWIZ_XYZ1, 16, 0), FORMAT(R10G10B10A2_UNORM, RGB10_A2, RGB10_A2, SWIZ_XYZW, 16, 0), - FORMAT(B10G10R10A2_UINT, RGB10_A2UI, RGB10_A2UI, SWIZ_ZYXW, 16, 0), + FORMAT(R10G10B10A2_UINT, RGB10_A2UI, RGB10_A2UI, SWIZ_XYZW, 16, 0), FORMAT(A4B4G4R4_UNORM, ABGR4444, RGBA4, SWIZ_XYZW, 16, 0), |