anv: Enable SPV_INTEL_shader_integer_functions2 and VK_INTEL_shader_integer_functions2
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 3 Jan 2019 00:07:59 +0000 (16:07 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 00:18:57 +0000 (00:18 +0000)
Currently only implemented in the scalar backend, so only enable for
Gen8+.  If support for the other opcodes is added to the vec4 backend,
Gen7 could be supported.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/767>

src/intel/vulkan/anv_extensions.py
src/intel/vulkan/anv_pipeline.c

index b63d6adb3ae11a7685c81470116d39bcf5e3c94c..0392b0d247436f9100addd3b8a3562bcf98773a4 100644 (file)
@@ -172,6 +172,7 @@ EXTENSIONS = [
     Extension('VK_GOOGLE_decorate_string',                1, True),
     Extension('VK_GOOGLE_hlsl_functionality1',            1, True),
     Extension('VK_INTEL_performance_query',               1, 'device->perf'),
+    Extension('VK_INTEL_shader_integer_functions2',       1, 'device->info.gen >= 8'),
     Extension('VK_NV_compute_shader_derivatives',         1, True),
 ]
 
index d987d16cff0dc5d785c0b2ea43006216a5fcdd69..2e822a6aba63c7bf1de9c84a03be342615a7ff31 100644 (file)
@@ -188,6 +188,7 @@ anv_shader_compile_to_nir(struct anv_device *device,
          .int16 = pdevice->info.gen >= 8,
          .int64 = pdevice->info.gen >= 8,
          .int64_atomics = pdevice->info.gen >= 9 && pdevice->use_softpin,
+         .integer_functions2 = pdevice->info.gen >= 8,
          .min_lod = true,
          .multiview = true,
          .physical_storage_buffer_address = pdevice->has_a64_buffer_access,