ntv: shore up shader_temp var handling

there were some minor cases where this wasn't fully implemented

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39488>
This commit is contained in:
Mike Blumenkrantz 2026-01-23 10:30:03 -05:00 committed by Marge Bot
parent 73213716b6
commit 33e2585d3b

View file

@ -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<uint> */
FALLTHROUGH;
case nir_var_shader_temp:
case nir_var_function_temp:
case nir_var_shader_in:
case nir_var_shader_out: