From fb127f77295fb9409e089b9267fff32b5f51a0a2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 14 Nov 2018 15:36:38 -0600 Subject: [PATCH] nir/lower_io: Add shared to get_io_offset_src MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Samuel Iglesias Gonsálvez --- src/compiler/nir/nir_lower_io.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.30.2