Mesa (main): radv: Enable VK_INTEL_shader_integer_functions2.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 1 17:59:54 UTC 2022


Module: Mesa
Branch: main
Commit: aa9d2d88935eda7612aa02e1fc7dc0568dff766d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa9d2d88935eda7612aa02e1fc7dc0568dff766d

Author: Georg Lehmann <dadschoorse at gmail.com>
Date:   Sat Nov 20 17:18:28 2021 +0100

radv: Enable VK_INTEL_shader_integer_functions2.

Signed-off-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13895>

---

 src/amd/vulkan/radv_device.c | 7 +++++++
 src/amd/vulkan/radv_shader.c | 1 +
 2 files changed, 8 insertions(+)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 2437486a6ad..d7f552837b5 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -555,6 +555,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
       .GOOGLE_decorate_string = true,
       .GOOGLE_hlsl_functionality1 = true,
       .GOOGLE_user_type = true,
+      .INTEL_shader_integer_functions2 = true,
       .NV_compute_shader_derivatives = true,
       .NV_mesh_shader = device->use_ngg && device->rad_info.gfx_level >= GFX10_3 &&
                         device->instance->perftest_flags & RADV_PERFTEST_NV_MS && !device->use_llvm,
@@ -1751,6 +1752,12 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
          features->sampler2DViewOf3D = false;
          break;
       }
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL: {
+         VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *features =
+            (VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *)ext;
+         features->shaderIntegerFunctions2 = true;
+         break;
+      }
       default:
          break;
       }
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 41120a868fd..e3f44896d78 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -660,6 +660,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_pipeline_
                .int16 = true,
                .int64 = true,
                .int64_atomics = true,
+               .integer_functions2 = true,
                .mesh_shading_nv = true,
                .min_lod = true,
                .multiview = true,



More information about the mesa-commit mailing list