mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
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:
parent
4daa3917a3
commit
8fc24f9a45
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue