summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2018-11-01 12:59:27 +0100
committerGert Wollny <[email protected]>2018-11-06 18:49:02 +0100
commitc171d76b942e9252a6f2cb8a407dee2b5d9f1b97 (patch)
tree4c305ab1238662a9b28843c24e98a3e16815b103 /src
parent421fa01d64d9f2a7191ded3a819118d216436ab8 (diff)
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 <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_state_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index e6c1b0be97c..2d365417872 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -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;