virgl: Set sRGB write control CAP based on host capabilities
authorGert Wollny <gert.wollny@collabora.com>
Tue, 13 Nov 2018 10:39:06 +0000 (11:39 +0100)
committerGert Wollny <gert.wollny@collabora.com>
Mon, 28 Jan 2019 11:18:40 +0000 (12:18 +0100)
commit2845939d6a720454f983e2e9a591735bd0fede9e
tree5e345326a1cf70f1783e6c1b00eb48f35f456927
parent8021f1875e2d830e67aadbf2d44ddfb6f5dd2b13
virgl: Set sRGB write control CAP based on host capabilities

v2: - Use the renamed CAPS
    - add assetions to make sure that mesa doesn't try to switch
      destination surface formats when it is not supported. (Ilia Mirkin)

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