From 3970257cef5e0c7b5b31c023450f1ea55b784e88 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sun, 12 Feb 2017 14:14:28 -0500 Subject: st/mesa: don't pass compare mode for stencil-sampled textures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes dEQP-GLES31.functional.stencil_texturing.misc.compare_mode_effect Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák Cc: mesa-stable@lists.freedesktop.org --- src/mesa/state_tracker/st_atom_sampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c index daf98c3abb0..661e0f268e3 100644 --- a/src/mesa/state_tracker/st_atom_sampler.c +++ b/src/mesa/state_tracker/st_atom_sampler.c @@ -226,7 +226,7 @@ convert_sampler(struct st_context *st, /* If sampling a depth texture and using shadow comparison */ if ((texBaseFormat == GL_DEPTH_COMPONENT || - texBaseFormat == GL_DEPTH_STENCIL) && + (texBaseFormat == GL_DEPTH_STENCIL && !texobj->StencilSampling)) && msamp->CompareMode == GL_COMPARE_R_TO_TEXTURE) { sampler->compare_mode = PIPE_TEX_COMPARE_R_TO_TEXTURE; sampler->compare_func = st_compare_func_to_pipe(msamp->CompareFunc); -- cgit v1.2.3