zink: set compareEnable when setting compareOp
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 20 Jan 2020 16:35:55 +0000 (17:35 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jan 2020 21:04:26 +0000 (21:04 +0000)
commitb175effc7252f9e73dd78dfac0380cae69966234
tree4d65784b39bd7930c71dbd8bc5bcbb41894598d8
parentf6e59911e52161527d1d416e6807b0bc4d639011
zink: set compareEnable when setting compareOp

We need to enable compareEnable for compareOp to be valid, and ANV was
recently updated to respect this. So let's update Zink to match.

This fixes the shadow-variants of several piglit regressions, like these:
spec@arb_shader_texture_lod@execution@tex-miplevel-selection
spec@glsl-1.20@execution@tex-miplevel-selection

Fixes: a19cdf989b1 ("anv: only use VkSamplerCreateInfo::compareOp if enabled")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3473>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3473>
src/gallium/drivers/zink/zink_context.c