anv: only use VkSamplerCreateInfo::compareOp if enabled
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 14 Jan 2020 14:10:21 +0000 (16:10 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jan 2020 16:40:16 +0000 (16:40 +0000)
commita19cdf989b1cca7126a29a42e5f28e8c7823e937
tree8b3bd2f965d49dc959df8042b0272f6c89916774
parentd8e05edbd93e544530ae616fd239c4731e8c68bc
anv: only use VkSamplerCreateInfo::compareOp if enabled

The spec says nothing about the validity of the compareOp field when
compareEnable is false.

v2: use vulkan enum to pick default value (Caio)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2350
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3387>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3387>
src/intel/vulkan/genX_state.c