From: Wladimir J. van der Laan Date: Fri, 25 Aug 2017 14:29:53 +0000 (+0000) Subject: freedreno/a20x: Fix rendering to BGRX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c10eeb454d4dbbdaebd3b6b6ef039262c3831d44;p=mesa.git 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 --- 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: