mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 06:20:22 +01:00
st/mesa: don't pass compare mode for stencil-sampled textures
Fixes dEQP-GLES31.functional.stencil_texturing.misc.compare_mode_effect
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 3970257cef)
This commit is contained in:
parent
8d7110e552
commit
eb5a044ce7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue