freedreno/a4xx: add 11_11_10_float vertex type support
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 02:49:28 +0000 (21:49 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Nov 2015 14:08:16 +0000 (09:08 -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 1192fc3c5fe6dd43ce65b2a81b6ac4ad9e64dbae..e05b7ee0f85d754e735862413604a4ce0736a606 100644 (file)
@@ -112,6 +112,7 @@ enum a4xx_vtx_fmt {
        VFMT4_32_32_FIXED = 10,
        VFMT4_32_32_32_FIXED = 11,
        VFMT4_32_32_32_32_FIXED = 12,
+       VFMT4_11_11_10_FLOAT = 13,
        VFMT4_16_SINT = 16,
        VFMT4_16_16_SINT = 17,
        VFMT4_16_16_16_SINT = 18,
index eeaa0a2b8473592a5deef5d5fdb409c2d1e9e841..dceb3b98c75527de91f28681023f3b4a54e575a8 100644 (file)
@@ -208,7 +208,7 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = {
        V_(R10G10B10A2_SSCALED, 10_10_10_2_SINT,  NONE,              WZYX),
        V_(B10G10R10A2_SSCALED, 10_10_10_2_SINT,  NONE,              WXYZ),
 
-       _T(R11G11B10_FLOAT, 11_11_10_FLOAT, R11G11B10_FLOAT, WZYX),
+       VT(R11G11B10_FLOAT, 11_11_10_FLOAT, R11G11B10_FLOAT, WZYX),
        _T(R9G9B9E5_FLOAT,  9_9_9_E5_FLOAT, NONE,            WZYX),
 
        _T(Z24X8_UNORM,       X8Z24_UNORM, R8G8B8A8_UNORM, WZYX),