From: Jason Ekstrand Date: Wed, 14 Nov 2018 21:36:38 +0000 (-0600) Subject: nir/lower_io: Add shared to get_io_offset_src X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb127f77295fb9409e089b9267fff32b5f51a0a2;p=mesa.git nir/lower_io: Add shared to get_io_offset_src Reviewed-by: Samuel Iglesias Gonsálvez --- 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: