From: Jason Ekstrand Date: Wed, 14 Nov 2018 21:40:43 +0000 (-0600) Subject: intel/nir: Add global support to lower_mem_access_bit_sizes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f409a08e5fd66183336bd236f159061df9707ca9;p=mesa.git intel/nir: Add global support to lower_mem_access_bit_sizes Reviewed-by: Kenneth Graunke --- diff --git a/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c b/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c index a3320521f49..40ecbb20e5f 100644 --- a/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c +++ b/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c @@ -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))