From 7f65035078b050b8565fd7381b7fe642bca147dd Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Thu, 22 Aug 2024 17:14:46 +0200 Subject: [PATCH] hasvk: enable VK_KHR_shader_relaxed_extended_instruction The extension only affects non semantic instructions that need no handling in the backend compiler. Signed-off-by: Rohan Garg Acked-by: Caio Oliveira Part-of: --- src/intel/vulkan_hasvk/anv_device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan_hasvk/anv_device.c b/src/intel/vulkan_hasvk/anv_device.c index 70e58daef4c..a7868c1b8ad 100644 --- a/src/intel/vulkan_hasvk/anv_device.c +++ b/src/intel/vulkan_hasvk/anv_device.c @@ -260,6 +260,7 @@ get_device_extensions(const struct anv_physical_device *device, .KHR_shader_float_controls = true, .KHR_shader_integer_dot_product = true, .KHR_shader_non_semantic_info = true, + .KHR_shader_relaxed_extended_instruction = true, .KHR_shader_subgroup_extended_types = device->info.ver >= 8, .KHR_shader_subgroup_uniform_control_flow = true, .KHR_shader_terminate_invocation = true, @@ -659,6 +660,9 @@ get_features(const struct anv_physical_device *pdevice, /* VK_KHR_shader_expect_assume */ .shaderExpectAssume = true, + + /* VK_KHR_shader_relaxed_extended_instruction */ + .shaderRelaxedExtendedInstruction = true, }; /* We can't do image stores in vec4 shaders */