diff options
author | Jason Ekstrand <[email protected]> | 2016-02-01 14:00:25 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-01 14:03:05 -0800 |
commit | 8776d3cb8e86d4999613590a7eeac2322acdd99f (patch) | |
tree | d4222986cbb4c1ade7b91ba6615c8a608345b9c2 | |
parent | 499f7c2f0b2780bc51a0301816d2b91c89d484c0 (diff) |
nir/spirv: Fix UBO loads of a single element of a row-major matrix
-rw-r--r-- | src/glsl/nir/spirv/vtn_variables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/spirv/vtn_variables.c b/src/glsl/nir/spirv/vtn_variables.c index 7d44cf4be9e..3ad98aa5310 100644 --- a/src/glsl/nir/spirv/vtn_variables.c +++ b/src/glsl/nir/spirv/vtn_variables.c @@ -487,6 +487,8 @@ _vtn_block_load_store(struct vtn_builder *b, nir_intrinsic_op op, bool load, vtn_access_link_as_ssa(b, chain->link[chain_idx + 1], type->stride); offset = nir_iadd(&b->nb, offset, row_offset); + if (load) + *inout = vtn_create_ssa_value(b, glsl_scalar_type(base_type)); _vtn_load_store_tail(b, op, load, index, offset, inout, glsl_scalar_type(base_type)); } else { |