freedreno/a20x: Fix rendering to BGRX
authorWladimir J. van der Laan <laanwj@gmail.com>
Fri, 25 Aug 2017 14:29:53 +0000 (14:29 +0000)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 Oct 2017 16:09:03 +0000 (12:09 -0400)
Make sure that BGRX rendering is swapped the correct way around.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a2xx/fd2_gmem.c

index 6dc639670a16ab7155ea52bb3f8ee8580f45ab8b..be3992b749a01445eb9c028a8454235edc86ae0e 100644 (file)
@@ -46,6 +46,7 @@ static uint32_t fmt2swap(enum pipe_format format)
 {
        switch (format) {
        case PIPE_FORMAT_B8G8R8A8_UNORM:
+       case PIPE_FORMAT_B8G8R8X8_UNORM:
        /* TODO probably some more.. */
                return 1;
        default: