aco: preserve more fields when combining additions into SMEM
Totals from 11 (0.01% of 127638) affected shaders:
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: 93c8ebfa78 ('aco: Initial commit of independent AMD compiler')
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4880>
This commit is contained in:
@@ -889,6 +889,10 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
||||
new_instr->definitions[0] = smem->definitions[0];
|
||||
new_instr->can_reorder = smem->can_reorder;
|
||||
new_instr->barrier = smem->barrier;
|
||||
new_instr->glc = smem->glc;
|
||||
new_instr->dlc = smem->dlc;
|
||||
new_instr->nv = smem->nv;
|
||||
new_instr->disable_wqm = smem->disable_wqm;
|
||||
instr.reset(new_instr);
|
||||
smem = static_cast<SMEM_instruction *>(instr.get());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user