freedreno/a4xx: add ARB_texture_rgb10_a2ui support
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 Nov 2015 00:26:34 +0000 (19:26 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 Nov 2015 16:17:15 +0000 (11:17 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a4xx/a4xx.xml.h
src/gallium/drivers/freedreno/a4xx/fd4_format.c

index 5a5323042d6b062c91d0701c07de4e3d5a55b3be..e465334868d3aceb818193fbac8380413c2e3c18 100644 (file)
@@ -165,6 +165,7 @@ enum a4xx_tex_fmt {
        TFMT4_4_4_4_4_UNORM = 8,
        TFMT4_X8Z24_UNORM = 71,
        TFMT4_10_10_10_2_UNORM = 33,
+       TFMT4_10_10_10_2_UINT = 34,
        TFMT4_A8_UNORM = 3,
        TFMT4_L8_A8_UNORM = 13,
        TFMT4_8_UNORM = 4,
index dc126b153cf127a5f2c664ceca1db58ba931cf17..ace5b3f30b012154ab73afaaff2231b1f9a65618 100644 (file)
@@ -201,8 +201,8 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = {
        _T(B10G10R10X2_UNORM,   10_10_10_2_UNORM, R10G10B10A2_UNORM, WXYZ),
        V_(R10G10B10A2_SNORM,   10_10_10_2_SNORM, NONE,              WZYX),
        V_(B10G10R10A2_SNORM,   10_10_10_2_SNORM, NONE,              WXYZ),
-       V_(R10G10B10A2_UINT,    10_10_10_2_UINT,  NONE,              WZYX),
-       V_(B10G10R10A2_UINT,    10_10_10_2_UINT,  NONE,              WXYZ),
+       VT(R10G10B10A2_UINT,    10_10_10_2_UINT,  R10G10B10A2_UINT,  WZYX),
+       VT(B10G10R10A2_UINT,    10_10_10_2_UINT,  R10G10B10A2_UINT,  WXYZ),
        V_(R10G10B10A2_USCALED, 10_10_10_2_UINT,  NONE,              WZYX),
        V_(B10G10R10A2_USCALED, 10_10_10_2_UINT,  NONE,              WXYZ),
        V_(R10G10B10A2_SSCALED, 10_10_10_2_SINT,  NONE,              WZYX),