[Mesa-dev] [Mesa-stable] [PATCH] st/mesa: don't pass compare mode for stencil-sampled textures

Marek Olšák maraeo at gmail.com
Sun Feb 12 21:54:00 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sun, Feb 12, 2017 at 8:20 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Fixes dEQP-GLES31.functional.stencil_texturing.misc.compare_mode_effect
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> Cc: mesa-stable at lists.freedesktop.org
> ---
>  src/mesa/state_tracker/st_atom_sampler.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c
> index daf98c3..661e0f2 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);
> --
> 2.10.2
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-stable


More information about the mesa-dev mailing list