mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
spirv: Only do a block load if you're actually loading a uniform
This commit is contained in:
parent
98abed2441
commit
5e7c7b2a4e
1 changed files with 1 additions and 1 deletions
|
|
@ -1147,7 +1147,7 @@ vtn_variable_load(struct vtn_builder *b, nir_deref_var *src,
|
|||
nir_deref *src_tail = get_deref_tail(src);
|
||||
|
||||
struct vtn_ssa_value *val;
|
||||
if (src->var->interface_type)
|
||||
if (src->var->interface_type && src->var->data.mode == nir_var_uniform)
|
||||
val = vtn_block_load(b, src, src_type, src_tail);
|
||||
else
|
||||
val = _vtn_variable_load(b, src, src_type, src_tail);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue