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 <samuel.pitoiset@gmail.com>
This commit is contained in:
Bas Nieuwenhuizen 2018-02-13 23:25:30 +01:00
parent 9ddacd9af4
commit 7461bd5b8f

View file

@ -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,
};