st/glsl_to_tgsi: ignore GL_TEXTURE_SRGB_DECODE_EXT for samplers used with texelFetch*()
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 5 Oct 2017 17:39:33 +0000 (19:39 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 11 Oct 2017 21:16:20 +0000 (23:16 +0200)
commit0e26e767d2f13397d862b9a8fb921610a721cf19
treeaebfde06e44314f6dd8fdf1176c0e684507d4082
parentbce3055c69b9fddf951fa1d80fc5894570fc00a3
st/glsl_to_tgsi: ignore GL_TEXTURE_SRGB_DECODE_EXT for samplers used with texelFetch*()

See the comment for the relevant spec quote.

Fixes dEQP-GLES31.functional.srgb_texture_decode.skip_decode.srgba8.texel_fetch

v2: note the interaction between ARB_bindless_texture and EXT_texture_sRGB_decode
    as a TODO

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_sampler_view.c
src/mesa/state_tracker/st_sampler_view.h
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h