diff options
author | Jason Ekstrand <[email protected]> | 2018-11-14 15:36:38 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-11-15 19:59:31 -0600 |
commit | fb127f77295fb9409e089b9267fff32b5f51a0a2 (patch) | |
tree | 5fe866a3123ceb44231d27cffe7082ac5e42db9a | |
parent | b5c48271d4b80438f83b7efa78c7542ba13e6cb9 (diff) |
nir/lower_io: Add shared to get_io_offset_src
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_lower_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index f3377eaec8f..64424307812 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -538,6 +538,7 @@ nir_get_io_offset_src(nir_intrinsic_instr *instr) switch (instr->intrinsic) { case nir_intrinsic_load_input: case nir_intrinsic_load_output: + case nir_intrinsic_load_shared: case nir_intrinsic_load_uniform: return &instr->src[0]; case nir_intrinsic_load_ubo: @@ -546,6 +547,7 @@ nir_get_io_offset_src(nir_intrinsic_instr *instr) case nir_intrinsic_load_per_vertex_output: case nir_intrinsic_load_interpolated_input: case nir_intrinsic_store_output: + case nir_intrinsic_store_shared: return &instr->src[1]; case nir_intrinsic_store_ssbo: case nir_intrinsic_store_per_vertex_output: |