st/mesa: Also check for PIPE_FORMAT_A8R8G8B8_SRGB for texture_sRGB
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 22 Jun 2018 13:59:10 +0000 (15:59 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Mon, 2 Jul 2018 07:33:48 +0000 (09:33 +0200)
commitba78e78cd56b0bf675c186d2489d16ec907a05cc
treea3ff4dfd4e9c306c18fa1f35a0c28d5b559bb201
parent71867a0a61cea20bf3f6115692e70b0d60f0b70d
st/mesa: Also check for PIPE_FORMAT_A8R8G8B8_SRGB for texture_sRGB

and PIPE_FORMAT_R8G8B8A8_SRGB, as well.

The reason for this is that when Virgl runs with GLES on the host, it
cannot directly upload textures in BGRA.

So to avoid a conversion step, consider the RGB sRGB formats as well for
this extension.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c