From 33e2585d3bbaf4a174afb43ef2cc306a4fb10f6a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 23 Jan 2026 10:30:03 -0500 Subject: [PATCH] ntv: shore up shader_temp var handling there were some minor cases where this wasn't fully implemented Part-of: --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index b71565e7546..6db24dae497 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -501,6 +501,8 @@ get_storage_class(struct nir_variable *var) switch (var->data.mode) { case nir_var_function_temp: return SpvStorageClassFunction; + case nir_var_shader_temp: + return SpvStorageClassPrivate; case nir_var_mem_push_const: return SpvStorageClassPushConstant; case nir_var_shader_in: @@ -4433,6 +4435,7 @@ emit_deref_array(struct ntv_context *ctx, nir_deref_instr *deref) } /* array */ FALLTHROUGH; + case nir_var_shader_temp: case nir_var_function_temp: case nir_var_shader_in: case nir_var_shader_out: