Commit fb127f77 authored by Jason Ekstrand's avatar Jason Ekstrand

nir/lower_io: Add shared to get_io_offset_src

Reviewed-by: 's avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
parent b5c48271
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment