virgl: Add override for BGRA format to use swizzled SRGB format
authorGert Wollny <gert.wollny@collabora.com>
Mon, 27 May 2019 14:28:44 +0000 (16:28 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Thu, 20 Jun 2019 06:50:38 +0000 (08:50 +0200)
commit13d4a34c4463c8c68553b8ce18cb1aa76d567ecb
treea332a65c4ab77faaf937380073af78dd6aa0628e
parent22edafb23942f98b3e805f0871dcad839f20b977
virgl: Add override for BGRA format to use swizzled SRGB format

Tie in the check whether the host supports tweaks and whether this tweak
is enabled.

v2: Add comment about the emulated formats not being used directly in the
    guest (Gurchetan)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_driinfo.h.in
src/gallium/drivers/virgl/virgl_hw.h
src/gallium/drivers/virgl/virgl_resource.c
src/gallium/drivers/virgl/virgl_screen.c