mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
aco: drop useless lowering of deref operations for shared memory
Moved to RADV. No pipeline-db changes. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
parent
c105e6169c
commit
0eb78a078e
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue