Browse Source

spirv: Only do a block load if you're actually loading a uniform

tags/12.0-branchpoint
Jason Ekstrand 10 years ago
parent
commit
5e7c7b2a4e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/glsl/nir/spirv_to_nir.c

+ 1
- 1
src/glsl/nir/spirv_to_nir.c View File

@@ -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…
Cancel
Save