mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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>
This commit is contained in:
parent
71867a0a61
commit
ba78e78cd5
1 changed files with 3 additions and 1 deletions
|
|
@ -811,7 +811,9 @@ void st_init_extensions(struct pipe_screen *screen,
|
|||
{ { o(EXT_texture_sRGB),
|
||||
o(EXT_texture_sRGB_decode) },
|
||||
{ PIPE_FORMAT_A8B8G8R8_SRGB,
|
||||
PIPE_FORMAT_B8G8R8A8_SRGB },
|
||||
PIPE_FORMAT_B8G8R8A8_SRGB,
|
||||
PIPE_FORMAT_A8R8G8B8_SRGB,
|
||||
PIPE_FORMAT_R8G8B8A8_SRGB},
|
||||
GL_TRUE }, /* at least one format must be supported */
|
||||
|
||||
{ { o(EXT_texture_type_2_10_10_10_REV) },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue