st/mesa: Also use PIPE_FORMAT_R8G8B8A8_SRGB for framebuffer_sRGB.
authorJakob Bornecrantz <jakob@collabora.com>
Tue, 3 Apr 2018 15:58:10 +0000 (16:58 +0100)
committerJakob Bornecrantz <jakob@collabora.com>
Tue, 3 Apr 2018 16:48:52 +0000 (17:48 +0100)
commit88e958257c9c718a90670f6f40904f9a075af55b
treedd297c29357755604d8bbcd31ec496fb868b692c
parent78c18d99dc3c53e1026744835b202f89e7f7dfb6
st/mesa: Also use PIPE_FORMAT_R8G8B8A8_SRGB for framebuffer_sRGB.

When running virgl on a GLES host the only sRGB formats that support
rendering is RGBA and RGBX. That pipe format is in the sRGB default
lists that the state tracker uses when mapping mesa formats.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
src/mesa/state_tracker/st_extensions.c