r600: Add support for EXT_texture_sRGB_R8
authorGert Wollny <gert.wollny@collabora.com>
Thu, 1 Nov 2018 11:59:27 +0000 (12:59 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Tue, 6 Nov 2018 17:49:02 +0000 (18:49 +0100)
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>
src/gallium/drivers/r600/r600_state_common.c

index e6c1b0be97ccb2f5960b1fa90c7874be816e2444..2d365417872bf9b6cd3d193481ec40a0643e83a3 100644 (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;