v3d: Add support for RGBA_SRGB along with BGRA_SRGB.
authorEric Anholt <eric@anholt.net>
Fri, 7 Dec 2018 20:53:16 +0000 (12:53 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 8 Dec 2018 00:48:23 +0000 (16:48 -0800)
This is the actual native format for the hardware, without swizzling.
Noticed while debugging why GLES3 disappeared.

src/gallium/drivers/v3d/v3dx_format_table.c

index c0caba740d2fe9d6de8e57c7ac88397076234e6d..100fd3b0da48d1c868a39332be5d41a3dd03dd43 100644 (file)
@@ -65,6 +65,8 @@ static const struct v3d_format format_table[] = {
         FORMAT(B8G8R8X8_SRGB,     SRGB8_ALPHA8, RGBA8,       SWIZ_ZYX1, 16, 0),
         FORMAT(R8G8B8A8_UNORM,    RGBA8,        RGBA8,       SWIZ_XYZW, 16, 0),
         FORMAT(R8G8B8X8_UNORM,    RGBA8,        RGBA8,       SWIZ_XYZ1, 16, 0),
+        FORMAT(R8G8B8A8_SRGB,     SRGB8_ALPHA8, RGBA8,       SWIZ_XYZW, 16, 0),
+        FORMAT(R8G8B8X8_SRGB,     SRGB8_ALPHA8, 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(R10G10B10A2_UNORM, RGB10_A2,     RGB10_A2,    SWIZ_XYZW, 16, 0),