mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
radv: delay lowering global access
Totals from 21 (0.03% of 79839) affected shaders: (Navi48) Instrs: 30258 -> 30249 (-0.03%); split: -0.05%, +0.02% CodeSize: 159660 -> 159552 (-0.07%); split: -0.07%, +0.01% Latency: 188154 -> 188131 (-0.01%); split: -0.02%, +0.00% SClause: 251 -> 252 (+0.40%) SMEM: 619 -> 598 (-3.39%) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36936>
This commit is contained in:
parent
cacb390ec9
commit
eda8fc1e90
1 changed files with 2 additions and 1 deletions
|
|
@ -558,7 +558,6 @@ radv_postprocess_nir(struct radv_device *device, const struct radv_graphics_stat
|
|||
.allow_fp16 = gfx_level >= GFX9,
|
||||
});
|
||||
|
||||
NIR_PASS(_, stage->nir, ac_nir_lower_global_access);
|
||||
NIR_PASS(_, stage->nir, ac_nir_lower_intrinsics_to_args, gfx_level,
|
||||
pdev->info.has_ls_vgpr_init_bug && gfx_state && !gfx_state->vs.has_prolog,
|
||||
radv_select_hw_stage(&stage->info, gfx_level), stage->info.wave_size, stage->info.workgroup_size,
|
||||
|
|
@ -588,6 +587,8 @@ radv_postprocess_nir(struct radv_device *device, const struct radv_graphics_stat
|
|||
NIR_PASS(_, stage->nir, ac_nir_lower_mem_access_bit_sizes, gfx_level, use_llvm);
|
||||
}
|
||||
|
||||
NIR_PASS(_, stage->nir, ac_nir_lower_global_access);
|
||||
|
||||
radv_optimize_nir_algebraic(
|
||||
stage->nir, io_to_mem || lowered_ngg || stage->stage == MESA_SHADER_COMPUTE || stage->stage == MESA_SHADER_TASK,
|
||||
gfx_level >= GFX8, gfx_level);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue