radv: Enable VK_INTEL_shader_integer_functions2.
authorGeorg Lehmann <dadschoorse@gmail.com>
Sat, 20 Nov 2021 16:18:28 +0000 (17:18 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Jun 2022 17:09:25 +0000 (17:09 +0000)
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13895>

src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_shader.c

index 2437486..d7f5528 100644 (file)
@@ -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;
       }
index 41120a8..e3f4489 100644 (file)
@@ -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,