virgl: fix the value of VIRGL_DEBUG_BGRA_DEST_SWIZZLE
authorChia-I Wu <olvaffe@gmail.com>
Mon, 24 Jun 2019 17:30:52 +0000 (10:30 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 25 Jun 2019 19:01:14 +0000 (12:01 -0700)
commit119b5701e1466450031a0acf627059ee4e643395
tree106c0eece5ae51c7e49cdc864ef53deb7754def1
parent8ea7ee153649ac07c8418cc0d4aa5a4e123d19d1
virgl: fix the value of VIRGL_DEBUG_BGRA_DEST_SWIZZLE

VIRGL_DEBUG_BGRA_DEST_SWIZZLE should use bit 3.  Make some cosmetic
changes as well.

Fixes: a478e56fbd33fa23503b63d41265a1c2f3253ed2
    virgl: Add debug flag to bypass driconf to enable the BGRA tweaks

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
Reviewed-By: Alexandros Frantzis <alexandros.frantzis@collabora.com>
src/gallium/drivers/virgl/virgl_screen.c
src/gallium/drivers/virgl/virgl_screen.h