summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorDaniel Schürmann <[email protected]>2019-09-17 14:35:22 +0200
committerDaniel Schürmann <[email protected]>2019-09-19 12:10:00 +0200
commita70a9987181a09258406cc0d8ff5e34acc000371 (patch)
treee4022db8525d66c706bc10154476514058425cf9 /src/amd/common
parent93c8ebfa780ebd1495095e794731881aef29e7d3 (diff)
radv/aco: Setup alternate path in RADV to support the experimental ACO compiler
LLVM remains default and ACO can be enabled with RADV_PERFTEST=aco. Co-authored-by: Daniel Schürmann <[email protected]> Co-authored-by: Rhys Perry <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_llvm_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
index 64942670b6c..ddc8fee839b 100644
--- a/src/amd/common/ac_llvm_util.c
+++ b/src/amd/common/ac_llvm_util.c
@@ -49,6 +49,9 @@ static void ac_init_llvm_target()
/* For inline assembly. */
LLVMInitializeAMDGPUAsmParser();
+ /* For ACO disassembly. */
+ LLVMInitializeAMDGPUDisassembler();
+
/* Workaround for bug in llvm 4.0 that causes image intrinsics
* to disappear.
* https://reviews.llvm.org/D26348