virgl: Add override for BGRA format to use swizzled SRGB format

Graphics / Mesa 3D Graphics Library / Mesa - Gert Wollny [collabora.com] - 20 June 2019 06:50 EDT

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)

13d4a34c446 virgl: Add override for BGRA format to use swizzled SRGB format
src/gallium/drivers/virgl/virgl_driinfo.h.in | 1 +
src/gallium/drivers/virgl/virgl_hw.h | 11 ++++++++++-
src/gallium/drivers/virgl/virgl_resource.c | 10 ++++++++++
src/gallium/drivers/virgl/virgl_screen.c | 6 ++++++
4 files changed, 27 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share