summaryrefslogtreecommitdiffstats
path: root/src/amd/addrlib/inc/chip
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-11-07 00:56:13 +0100
committerMarek Olšák <[email protected]>2017-11-08 00:55:13 +0100
commit7f33e94e43a647d71a9f930cf3180e5abb529edd (patch)
tree6de324ee411902e343b7a890461970dc2cb45636 /src/amd/addrlib/inc/chip
parent3bfcd31e9816813dad0ef7ec82b0fb62dd0271a0 (diff)
amd/addrlib: update to latest version
This uses C++11 initializer lists. I just overwrote all Mesa files with internal addrlib and discarded hunks that we should probably keep, but I might have missed something. The code depending on ADDR_AM_BUILD is removed. We can add it back next time if needed. Acked-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/addrlib/inc/chip')
-rw-r--r--src/amd/addrlib/inc/chip/gfx9/gfx9_gb_reg.h8
-rw-r--r--src/amd/addrlib/inc/chip/r800/si_gb_reg.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/src/amd/addrlib/inc/chip/gfx9/gfx9_gb_reg.h b/src/amd/addrlib/inc/chip/gfx9/gfx9_gb_reg.h
index 823710cc189..49cc65a7dcb 100644
--- a/src/amd/addrlib/inc/chip/gfx9/gfx9_gb_reg.h
+++ b/src/amd/addrlib/inc/chip/gfx9/gfx9_gb_reg.h
@@ -27,6 +27,14 @@
* of the Software.
*/
+#include "util/u_endian.h"
+
+#if defined(PIPE_ARCH_LITTLE_ENDIAN)
+#define LITTLEENDIAN_CPU
+#elif defined(PIPE_ARCH_BIG_ENDIAN)
+#define BIGENDIAN_CPU
+#endif
+
//
// Make sure the necessary endian defines are there.
//
diff --git a/src/amd/addrlib/inc/chip/r800/si_gb_reg.h b/src/amd/addrlib/inc/chip/r800/si_gb_reg.h
index cf67f602bdf..793edbc6280 100644
--- a/src/amd/addrlib/inc/chip/r800/si_gb_reg.h
+++ b/src/amd/addrlib/inc/chip/r800/si_gb_reg.h
@@ -27,6 +27,14 @@
* of the Software.
*/
+#include "util/u_endian.h"
+
+#if defined(PIPE_ARCH_LITTLE_ENDIAN)
+#define LITTLEENDIAN_CPU
+#elif defined(PIPE_ARCH_BIG_ENDIAN)
+#define BIGENDIAN_CPU
+#endif
+
//
// Make sure the necessary endian defines are there.
//