mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
aco/nops: use up-to-date mask_size
fossil-db (Pitcairn): Totals from 6 (0.00% of 129702) affected shaders: CodeSize: 8760 -> 8736 (-0.27%) Instrs: 1714 -> 1708 (-0.35%) Latency: 12325 -> 12302 (-0.19%) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12720>
This commit is contained in:
parent
dfe432d829
commit
bd07118b56
1 changed files with 1 additions and 1 deletions
|
|
@ -202,10 +202,10 @@ int
|
|||
handle_raw_hazard_internal(Program* program, Block* block, int nops_needed, PhysReg reg,
|
||||
uint32_t mask)
|
||||
{
|
||||
unsigned mask_size = util_last_bit(mask);
|
||||
for (int pred_idx = block->instructions.size() - 1; pred_idx >= 0; pred_idx--) {
|
||||
aco_ptr<Instruction>& pred = block->instructions[pred_idx];
|
||||
|
||||
unsigned mask_size = util_last_bit(mask);
|
||||
uint32_t writemask = 0;
|
||||
for (Definition& def : pred->definitions) {
|
||||
if (regs_intersect(reg, mask_size, def.physReg(), def.size())) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue