From 1cece2691f249f2ba9b8a8eb5d5e26f77ef84565 Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Fri, 30 Aug 2024 08:46:56 -0700 Subject: [PATCH] spirv: Prefer symbols from Khronos extension for compute shader derivatives MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The extension was promoted, start using the KHR instead of vendor-specific symbols. Acked-by: Lionel Landwerlin Reviewed-by: Daniel Schürmann Reviewed-by: Faith Ekstrand Part-of: --- src/compiler/spirv/spirv_to_nir.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 4d93c929c1e..8037bcfe101 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -57,8 +57,8 @@ static const struct spirv_capabilities implemented_capabilities = { .AtomicFloat64MinMaxEXT = true, .AtomicStorage = true, .ClipDistance = true, - .ComputeDerivativeGroupLinearNV = true, - .ComputeDerivativeGroupQuadsNV = true, + .ComputeDerivativeGroupLinearKHR = true, + .ComputeDerivativeGroupQuadsKHR = true, .CooperativeMatrixKHR = true, .CullDistance = true, .DemoteToHelperInvocation = true, @@ -5272,12 +5272,12 @@ vtn_handle_execution_mode(struct vtn_builder *b, struct vtn_value *entry_point, vtn_assert(b->shader->info.stage == MESA_SHADER_FRAGMENT); break; - case SpvExecutionModeDerivativeGroupQuadsNV: + case SpvExecutionModeDerivativeGroupQuadsKHR: vtn_assert(b->shader->info.stage == MESA_SHADER_COMPUTE); b->shader->info.derivative_group = DERIVATIVE_GROUP_QUADS; break; - case SpvExecutionModeDerivativeGroupLinearNV: + case SpvExecutionModeDerivativeGroupLinearKHR: vtn_assert(b->shader->info.stage == MESA_SHADER_COMPUTE); b->shader->info.derivative_group = DERIVATIVE_GROUP_LINEAR; break;