a5xx: add support for rendering to RGB10A2_UNORM formats
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 7 Jul 2017 04:33:50 +0000 (00:33 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 7 Jul 2017 13:09:48 +0000 (09:09 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a5xx/fd5_format.c

index 0c72ec0d13c8bcdcfcd9d35b6a90cbea7f866dc1..ae5cc839fdc9fcef2d3aa539d7c7fa025d42cf15 100644 (file)
@@ -194,9 +194,9 @@ static struct fd5_format formats[PIPE_FORMAT_COUNT] = {
        _T(A8R8G8B8_SRGB,    8_8_8_8_UNORM, R8G8B8A8_UNORM, ZYXW),
        _T(X8R8G8B8_SRGB,    8_8_8_8_UNORM, R8G8B8A8_UNORM, ZYXW),
 
-       VT(R10G10B10A2_UNORM,   10_10_10_2_UNORM, NONE,              WZYX),
-       VT(B10G10R10A2_UNORM,   10_10_10_2_UNORM, NONE,              WXYZ),
-       _T(B10G10R10X2_UNORM,   10_10_10_2_UNORM, NONE,              WXYZ),
+       VT(R10G10B10A2_UNORM,   10_10_10_2_UNORM, R10G10B10A2_UNORM, WZYX),
+       VT(B10G10R10A2_UNORM,   10_10_10_2_UNORM, R10G10B10A2_UNORM, WXYZ),
+       _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),
        VT(R10G10B10A2_UINT,    10_10_10_2_UINT,  R10G10B10A2_UINT,  WZYX),