diff options
author | Jakob Bornecrantz <[email protected]> | 2018-04-03 16:58:10 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2018-04-03 17:48:52 +0100 |
commit | 88e958257c9c718a90670f6f40904f9a075af55b (patch) | |
tree | dd297c29357755604d8bbcd31ec496fb868b692c /src | |
parent | 78c18d99dc3c53e1026744835b202f89e7f7dfb6 (diff) |
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 <[email protected]>
Signed-off-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index bea61f21cbb..0dc8adb2622 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -711,7 +711,8 @@ void st_init_extensions(struct pipe_screen *screen, { { o(EXT_framebuffer_sRGB) }, { PIPE_FORMAT_A8B8G8R8_SRGB, - PIPE_FORMAT_B8G8R8A8_SRGB }, + PIPE_FORMAT_B8G8R8A8_SRGB, + PIPE_FORMAT_R8G8B8A8_SRGB }, GL_TRUE }, /* at least one format must be supported */ { { o(EXT_packed_float) }, |