Mesa (master): aco: don't create v_mov_b32 in v_mul_imm()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 20 20:00:48 UTC 2020
Module: Mesa
Branch: master
Commit: 70d665d981bfef6735fb7178e4c481d467e1176c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=70d665d981bfef6735fb7178e4c481d467e1176c
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date: Fri Oct 30 14:08:55 2020 +0000
aco: don't create v_mov_b32 in v_mul_imm()
We switched to p_parallelcopy for everything else.
Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5390>
---
src/amd/compiler/aco_builder_h.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/compiler/aco_builder_h.py b/src/amd/compiler/aco_builder_h.py
index 3d67fa0be78..697d97d4c84 100644
--- a/src/amd/compiler/aco_builder_h.py
+++ b/src/amd/compiler/aco_builder_h.py
@@ -372,7 +372,7 @@ public:
{
assert(tmp.type() == RegType::vgpr);
if (imm == 0) {
- return vop1(aco_opcode::v_mov_b32, dst, Operand(0u));
+ return copy(dst, Operand(0u));
} else if (imm == 1) {
return copy(dst, Operand(tmp));
} else if (util_is_power_of_two_or_zero(imm)) {
More information about the mesa-commit
mailing list