anv:Use VK_EXT_separate_stencil_usage to avoid stencil shadows on gen7
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 17 Jun 2019 14:39:08 +0000 (09:39 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 17 Jun 2019 22:32:26 +0000 (22:32 +0000)
commit1be38f9178a2382aa9f785845456cd8893f10e17
tree37aaf8580099054f5d09ea5ed8e49ed99a33c853
parentf3ea0cf8289ebdbb45d7122095919fb6752eb433
anv:Use VK_EXT_separate_stencil_usage to avoid stencil shadows on gen7

Whenever stencil texturing is not required (most of the time), we can
use VK_EXT_separate_stencil_usage to only create the shadow image when
VK_IMAGE_USAGE_SAMPLED_BIT is required for stencil.  Of course, this
depends on applications to use the extension but hopefully DXVK and
similar translators are doing so and that covers most of the apps.

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