anv: enable VK_EXT_shader_viewport_index_layer
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 26 Apr 2018 19:11:20 +0000 (12:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Apr 2018 22:32:05 +0000 (15:32 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_extensions.py
src/intel/vulkan/anv_pipeline.c

index d0b70a04055857b3a429299b148202aee5840738..b5bee0881ce2d813816fb2f1391dae3b90575328 100644 (file)
@@ -111,6 +111,7 @@ EXTENSIONS = [
     Extension('VK_EXT_external_memory_dma_buf',           1, True),
     Extension('VK_EXT_global_priority',                   1,
               'device->has_context_priority'),
+    Extension('VK_EXT_shader_viewport_index_layer',       1, True),
 ]
 
 class VkVersion:
index e64602d28444313d3ab5a82e61e17056991dc790..56bea7bf0dfdf65ba4b84705716c73c8a43c17db 100644 (file)
@@ -144,6 +144,7 @@ anv_shader_compile_to_nir(struct anv_pipeline *pipeline,
          .multiview = true,
          .variable_pointers = true,
          .storage_16bit = device->instance->physicalDevice.info.gen >= 8,
+         .shader_viewport_index_layer = true,
          .subgroup_arithmetic = true,
          .subgroup_basic = true,
          .subgroup_ballot = true,