mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
aco: keep can_reorder/barrier when combining addition into SMEM
Affects 30 shaders in the pipeline-db (all youngblood). Totals from affected shaders: SGPRS: 2656 -> 2456 (-7.53 %) VGPRS: 2260 -> 2260 (0.00 %) Spilled SGPRs: 0 -> 0 (0.00 %) Spilled VGPRs: 0 -> 0 (0.00 %) Private memory VGPRs: 0 -> 0 (0.00 %) Scratch size: 0 -> 0 (0.00 %) dwords per thread Code Size: 240680 -> 240944 (0.11 %) bytes LDS: 0 -> 0 (0.00 %) blocks Max Waves: 90 -> 90 (0.00 %) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
parent
57c2cfb608
commit
c96289a70e
1 changed files with 2 additions and 0 deletions
|
|
@ -703,6 +703,8 @@ void label_instruction(opt_ctx &ctx, aco_ptr<Instruction>& instr)
|
|||
new_instr->operands.back() = Operand(base);
|
||||
if (!smem->definitions.empty())
|
||||
new_instr->definitions[0] = smem->definitions[0];
|
||||
new_instr->can_reorder = smem->can_reorder;
|
||||
new_instr->barrier = smem->barrier;
|
||||
instr.reset(new_instr);
|
||||
smem = static_cast<SMEM_instruction *>(instr.get());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue