summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-08-25 14:29:53 +0000
committerIlia Mirkin <[email protected]>2017-10-15 12:09:03 -0400
commitc10eeb454d4dbbdaebd3b6b6ef039262c3831d44 (patch)
tree6934e6ce43ce6d8e60e1382f9bdf7d45310b2dd2 /src
parentc7a81dcea9a9c2a0a7e8a0cebe4fe1ff81c1deb9 (diff)
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 <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/fd2_gmem.c1
1 files changed, 1 insertions, 0 deletions
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: