radv: Enable VK_INTEL_shader_integer_functions2.

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>
This commit is contained in:
Georg Lehmann 2021-11-20 17:18:28 +01:00 committed by Marge Bot
parent 55735ed728
commit aa9d2d8893
2 changed files with 8 additions and 0 deletions

View file

@ -555,6 +555,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.GOOGLE_decorate_string = true, .GOOGLE_decorate_string = true,
.GOOGLE_hlsl_functionality1 = true, .GOOGLE_hlsl_functionality1 = true,
.GOOGLE_user_type = true, .GOOGLE_user_type = true,
.INTEL_shader_integer_functions2 = true,
.NV_compute_shader_derivatives = true, .NV_compute_shader_derivatives = true,
.NV_mesh_shader = device->use_ngg && device->rad_info.gfx_level >= GFX10_3 && .NV_mesh_shader = device->use_ngg && device->rad_info.gfx_level >= GFX10_3 &&
device->instance->perftest_flags & RADV_PERFTEST_NV_MS && !device->use_llvm, device->instance->perftest_flags & RADV_PERFTEST_NV_MS && !device->use_llvm,
@ -1751,6 +1752,12 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
features->sampler2DViewOf3D = false; features->sampler2DViewOf3D = false;
break; break;
} }
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL: {
VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *features =
(VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *)ext;
features->shaderIntegerFunctions2 = true;
break;
}
default: default:
break; break;
} }

View file

@ -660,6 +660,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_pipeline_
.int16 = true, .int16 = true,
.int64 = true, .int64 = true,
.int64_atomics = true, .int64_atomics = true,
.integer_functions2 = true,
.mesh_shading_nv = true, .mesh_shading_nv = true,
.min_lod = true, .min_lod = true,
.multiview = true, .multiview = true,