mesa: Return GL_INVALID_ENUM for bogus TEXTURE_SRGB_DECODE_EXT params.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 13 Jul 2017 02:49:55 +0000 (19:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 13 Jul 2017 20:00:58 +0000 (13:00 -0700)
commit42c64b5f87531367eb554188fd924c885c8cecde
tree412c74d81a49350e8b4680adca0943f9fe63ebbb
parentf33d8af7aa354d00808f8bfd55028c396c706635
mesa: Return GL_INVALID_ENUM for bogus TEXTURE_SRGB_DECODE_EXT params.

Fixes dEQP-GLES31.functional.debug.negative_coverage.get_error.shader.srgb_decode_samplerparameter{f,fv,i,Iiv,Iuiv,iv}.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/main/samplerobj.c