r600: Add support for EXT_texture_sRGB_R8

Enables on R600 and makes pass:
  dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.*
  dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8*

v2: remove chunk for dri/radeon (Emil)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Gert Wollny 2018-11-01 12:59:27 +01:00 committed by Gert Wollny
parent 421fa01d64
commit c171d76b94

View file

@ -2917,6 +2917,7 @@ uint32_t r600_translate_texformat(struct pipe_screen *screen,
switch (desc->nr_channels) {
case 1:
result = FMT_8;
is_srgb_valid = TRUE;
goto out_word4;
case 2:
result = FMT_8_8;