aco: Fix integer overflows when emitting parallel copies during RA
authorTony Wasserka <tony.wasserka@gmx.de>
Wed, 2 Sep 2020 16:28:36 +0000 (18:28 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 20:20:24 +0000 (20:20 +0000)
commit2182bbf84f0f19846a47f0438ec702f4d862731e
tree87e4eee72329b6027e9ddb4bba993cc7f4eb70e2
parentf18fc34c4d56d6e7d511002b39a257e18d8b3af3
aco: Fix integer overflows when emitting parallel copies during RA

32-bit shifts were accidentally used before this change despite the intended
output being 64 bits.

This was observed when compiling Dolphin's ubershaders.

Cc: mesa-stable
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6568>
src/amd/compiler/aco_register_allocation.cpp