summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2020-04-09 17:00:25 +0100
committerMarge Bot <[email protected]>2020-04-22 13:25:17 +0000
commit8fc24f9a45d649fb644ce78f954ae7b6a04e26db (patch)
treee728478b9e9bdc06aaa4c761a5760c3f87533c76
parent4daa3917a38a6d18ba7cc66071342b9f7fa92f53 (diff)
aco: fix copy statistic for 64-bit vgpr constant copy
The statistic is in units of instructions. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4469>
-rw-r--r--src/amd/compiler/aco_lower_to_hw_instr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/compiler/aco_lower_to_hw_instr.cpp b/src/amd/compiler/aco_lower_to_hw_instr.cpp
index 63e13d96c88..4be1bef2a27 100644
--- a/src/amd/compiler/aco_lower_to_hw_instr.cpp
+++ b/src/amd/compiler/aco_lower_to_hw_instr.cpp
@@ -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);
}