aco: workaround GFX10 0x3f branch bug
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 10 Sep 2019 17:11:13 +0000 (18:11 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Thu, 10 Oct 2019 07:57:53 +0000 (09:57 +0200)
commit83993f535eb90874ca2256ddbd35bce4e407c13a
tree7bf5e29a5ae9ce3271f00f70e8028069ff7fc8e6
parent0be1dd856445cf30acc0a7ca74b662f6c21512b8
aco: workaround GFX10 0x3f branch bug

According to LLVM, branches with an offset of 0x3f are buggy.

v2: (by Timur Kristóf)
- extract the GFX10 specific part to its own function

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_assembler.cpp