intel/nir: Add global support to lower_mem_access_bit_sizes
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 14 Nov 2018 21:40:43 +0000 (15:40 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Feb 2019 22:08:29 +0000 (16:08 -0600)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c

index a3320521f49876efafba7a68a76cb9a2f7b793b0..40ecbb20e5f2d08d4f70dabd42d769941745e3d2 100644 (file)
@@ -257,12 +257,14 @@ lower_mem_access_bit_sizes_impl(nir_function_impl *impl)
 
          nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
          switch (intrin->intrinsic) {
+         case nir_intrinsic_load_global:
          case nir_intrinsic_load_ssbo:
          case nir_intrinsic_load_shared:
             if (lower_mem_load_bit_size(&b, intrin))
                progress = true;
             break;
 
+         case nir_intrinsic_store_global:
          case nir_intrinsic_store_ssbo:
          case nir_intrinsic_store_shared:
             if (lower_mem_store_bit_size(&b, intrin))