From 0eb78a078e898e7d5a1425f82513293f9e68e86b Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 7 Nov 2019 22:34:20 +0100 Subject: [PATCH] aco: drop useless lowering of deref operations for shared memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Moved to RADV. No pipeline-db changes. Signed-off-by: Samuel Pitoiset Reviewed-by: Daniel Schürmann --- src/amd/compiler/aco_instruction_selection_setup.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index dd93ea2e948..ba7c7c12a52 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -834,8 +834,6 @@ setup_isel_context(Program* program, (uint8_t*)nir->constant_data + nir->constant_data_size); /* the variable setup has to be done before lower_io / CSE */ - if (nir->info.stage == MESA_SHADER_COMPUTE) - nir_lower_vars_to_explicit_types(nir, nir_var_mem_shared, shared_var_info); setup_variables(&ctx, nir); /* optimize and lower memory operations */ @@ -848,9 +846,7 @@ setup_isel_context(Program* program, lower_to_scalar = true; lower_pack = true; } - if (nir->info.stage == MESA_SHADER_COMPUTE) - lower_to_scalar |= nir_lower_explicit_io(nir, nir_var_mem_shared, nir_address_format_32bit_offset); - else + if (nir->info.stage != MESA_SHADER_COMPUTE) nir_lower_io(nir, (nir_variable_mode)(nir_var_shader_in | nir_var_shader_out), type_size, (nir_lower_io_options)0); nir_lower_explicit_io(nir, nir_var_mem_global, nir_address_format_64bit_global); -- 2.30.2