etnaviv: add R8G8 texture support
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 21 Jun 2017 20:36:47 +0000 (22:36 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Mon, 26 Jun 2017 17:56:59 +0000 (19:56 +0200)
Passes texwrap GL_ARB_texture_rg piglit (with faked full texture rg support).

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_format.c

index ee50b5296222fd6cf0fd4cb4ec7fe17fb1c109cc..354dc2026ca5f74089f41058b47c0beaa8eb12eb 100644 (file)
@@ -120,7 +120,7 @@ static struct etna_format formats[PIPE_FORMAT_COUNT] = {
    _T(B5G5R5A1_UNORM, A1R5G5B5, SWIZ(X, Y, Z, W), A1R5G5B5),
    _T(B5G5R5X1_UNORM, X1R5G5B5, SWIZ(X, Y, Z, W), X1R5G5B5),
 
-   V_(R8G8_UNORM,   UNSIGNED_BYTE,  NONE),
+   VT(R8G8_UNORM,   UNSIGNED_BYTE,  EXT_G8R8 | EXT_FORMAT, SWIZ(X, Y, 0, 1), NONE),
    V_(R8G8_SNORM,   BYTE,           NONE),
    V_(R8G8_UINT,    UNSIGNED_BYTE,  NONE),
    V_(R8G8_SINT,    BYTE,           NONE),