anv: add VK_EXT_sampler_filter_minmax support
authorYunchao He <yunchao.he@intel.com>
Mon, 20 Aug 2018 16:29:49 +0000 (10:29 -0600)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 22 Aug 2018 10:56:19 +0000 (11:56 +0100)
commitbea4d4c78c3a6a85d1c7d0ad5c2c5694e19d20f2
tree9f1647ccab6737b2be3cf6efcf557011ce89cee9
parent0608349232ab4598e81b33bd8128c226a632528b
anv: add VK_EXT_sampler_filter_minmax support

This extension can be supported on SKL+. With this patch,
all corresponding tests (6K+) in CTS can pass. No test fails.

I verified CTS with the command below:
deqp-vk --deqp-case=dEQP-VK.pipeline.sampler.view_type.*reduce*

v2: 1) support all depth formats, not depth-only formats, 2) fix
a wrong indention (Jason).

v3: fix a few nits (Lionel).

v4: fix failures in CI: disable sampler reduction when sampler
reduction mode is not specified via this extension (Lionel).

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py
src/intel/vulkan/anv_formats.c
src/intel/vulkan/genX_state.c