From c10eeb454d4dbbdaebd3b6b6ef039262c3831d44 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 25 Aug 2017 14:29:53 +0000 Subject: [PATCH] freedreno/a20x: Fix rendering to BGRX Make sure that BGRX rendering is swapped the correct way around. Signed-off-by: Wladimir J. van der Laan Reviewed-by: Ilia Mirkin --- src/gallium/drivers/freedreno/a2xx/fd2_gmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c b/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c index 6dc639670a1..be3992b749a 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c +++ b/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c @@ -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: -- 2.30.2