aco: fix copy statistic for 64-bit vgpr constant copy

The statistic is in units of instructions.

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/4469>
This commit is contained in:
Rhys Perry 2020-04-09 17:00:25 +01:00 committed by Marge Bot
parent 4daa3917a3
commit 8fc24f9a45

View file

@ -845,6 +845,7 @@ void handle_operands(std::map<PhysReg, copy_operation>& copy_map, lower_context*
bld.vop1(aco_opcode::v_mov_b32, it->second.def, Operand((uint32_t)val));
bld.vop1(aco_opcode::v_mov_b32, Definition(PhysReg{it->second.def.physReg() + 1}, v1),
Operand((uint32_t)(val >> 32)));
ctx->program->statistics[statistic_copies]++;
} else {
bld.copy(it->second.def, it->second.op);
}