From: Alyssa Rosenzweig Date: Tue, 14 Jul 2020 22:55:07 +0000 (-0400) Subject: panfrost: Honour cso->compare_mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c6a8b2f071b2d56b694f0016d84b2b9d6858d42;p=mesa.git panfrost: Honour cso->compare_mode Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index bda4b1da7c9..dbfe1f4461b 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -467,7 +467,9 @@ void panfrost_sampler_desc_init(const struct pipe_sampler_state *cso, .wrap_s = translate_tex_wrap(cso->wrap_s), .wrap_t = translate_tex_wrap(cso->wrap_t), .wrap_r = translate_tex_wrap(cso->wrap_r), - .compare_func = panfrost_flip_compare_func(func), + .compare_func = cso->compare_mode ? + panfrost_flip_compare_func(func) : + MALI_FUNC_NEVER, .border_color = { cso->border_color.f[0], cso->border_color.f[1],