summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-02-13 23:25:30 +0100
committerBas Nieuwenhuizen <[email protected]>2018-02-14 01:05:03 +0100
commit7461bd5b8f77652195bdb771232cb762b9b8758f (patch)
tree70d7c603996b97e1780d6ce00e17d0dffecbadba /src
parent9ddacd9af488485bfc5da1797e67ff322080c0d4 (diff)
ac: Use the renumbered const address space for LLVM 7.
The LLVM AMDGPU backend decided to renumber the constant address space .... Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/common/ac_llvm_build.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index e78e9589cf3..a4d80cd8b00 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -35,7 +35,8 @@ extern "C" {
#endif
enum {
- AC_CONST_ADDR_SPACE = 2, /* CONST is the only address space that selects SMEM loads */
+ /* CONST is the only address space that selects SMEM loads */
+ AC_CONST_ADDR_SPACE = HAVE_LLVM >= 0x700 ? 4 : 2,
AC_LOCAL_ADDR_SPACE = 3,
};