etnaviv: fix R10G10B10A2 vertex format entries
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 19 Oct 2019 16:48:35 +0000 (18:48 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 29 Nov 2019 14:06:18 +0000 (15:06 +0100)
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_format.c

index 4cfa4053fc6c9784e86e4d498e49877aca4006f0..3b91022436b79777d3e6f7b9bda5cb140fff8e70 100644 (file)
@@ -171,10 +171,10 @@ static struct etna_format formats[PIPE_FORMAT_COUNT] = {
    _T(B8G8R8A8_SRGB,  A8R8G8B8, SWIZ(X, Y, Z, W), A8R8G8B8),
    _T(B8G8R8X8_SRGB,  X8R8G8B8, SWIZ(X, Y, Z, W), X8R8G8B8),
 
-   V_(R10G10B10A2_UNORM,   UNSIGNED_INT_10_10_10_2, NONE),
-   V_(R10G10B10A2_SNORM,   INT_10_10_10_2,          NONE),
-   V_(R10G10B10A2_USCALED, UNSIGNED_INT_10_10_10_2, NONE),
-   V_(R10G10B10A2_SSCALED, INT_10_10_10_2,          NONE),
+   V_(R10G10B10A2_UNORM,   UNSIGNED_INT_2_10_10_10_REV, NONE),
+   V_(R10G10B10A2_SNORM,   INT_2_10_10_10_REV,          NONE),
+   V_(R10G10B10A2_USCALED, UNSIGNED_INT_2_10_10_10_REV, NONE),
+   V_(R10G10B10A2_SSCALED, INT_2_10_10_10_REV,          NONE),
 
    _T(X8Z24_UNORM,       D24X8, SWIZ(X, Y, Z, W), NONE),
    _T(S8_UINT_Z24_UNORM, D24X8, SWIZ(X, Y, Z, W), NONE),