nir/lower_io: Add shared to get_io_offset_src
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 14 Nov 2018 21:36:38 +0000 (15:36 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Nov 2018 01:59:31 +0000 (19:59 -0600)
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/nir/nir_lower_io.c

index f3377eaec8ff1334a2eeb34b2851b3a99a75b626..644243078129eaa3ba13dec183ecefb7eecdfa9c 100644 (file)
@@ -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: