diff options
author | Jason Ekstrand <[email protected]> | 2019-06-17 09:39:08 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-06-17 22:32:26 +0000 |
commit | 1be38f9178a2382aa9f785845456cd8893f10e17 (patch) | |
tree | 37aaf8580099054f5d09ea5ed8e49ed99a33c853 /src/intel/vulkan/anv_extensions.py | |
parent | f3ea0cf8289ebdbb45d7122095919fb6752eb433 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_extensions.py')
-rw-r--r-- | src/intel/vulkan/anv_extensions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index 8468a72ab8d..c31d2cf870e 100644 --- a/src/intel/vulkan/anv_extensions.py +++ b/src/intel/vulkan/anv_extensions.py @@ -142,6 +142,7 @@ EXTENSIONS = [ Extension('VK_EXT_queue_family_foreign', 1, 'ANDROID'), Extension('VK_EXT_sampler_filter_minmax', 1, 'device->info.gen >= 9'), Extension('VK_EXT_scalar_block_layout', 1, True), + Extension('VK_EXT_separate_stencil_usage', 1, True), Extension('VK_EXT_shader_stencil_export', 1, 'device->info.gen >= 9'), Extension('VK_EXT_shader_viewport_index_layer', 1, True), Extension('VK_EXT_transform_feedback', 1, True), |