panfrost: Honour cso->compare_mode

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
This commit is contained in:
Alyssa Rosenzweig 2020-07-14 18:55:07 -04:00 committed by Marge Bot
parent 9addb82148
commit 6c6a8b2f07
1 changed files with 3 additions and 1 deletions

View File

@ -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],