aco: fix interaction with 3f branch workaround and p_constaddr
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 22 May 2020 14:42:12 +0000 (15:42 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 28 May 2020 09:55:58 +0000 (09:55 +0000)
commit8aa98cebc15e6f6f8bcf42162399b5826376b3dc
tree3909852a1da1ca772e601868c04511aa6289ea63
parent1fc1b877622e3477272a17a43fd438453484bb79
aco: fix interaction with 3f branch workaround and p_constaddr

The offset was incorrect if we inserted a nop before the p_constaddr.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: 93c8ebfa ('aco: Initial commit of independent AMD compiler')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5164>
src/amd/compiler/aco_assembler.cpp