mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-08 23:00:28 +01:00
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:
parent
73213716b6
commit
33e2585d3b
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue