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 d0b70a0..b5bee08 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 e64602d..56bea7b 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,