summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_compiler.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-11-07 13:26:45 -0500
committerZack Rusin <[email protected]>2007-12-11 09:49:33 -0500
commit6dc4e6ae15676cf4acdebb9c798bfa4083ad1e14 (patch)
tree3bf05cec05d14cf6d907c8b6b41a03459a8c6550 /src/mesa/pipe/p_compiler.h
parent9d6e6e86d9592afbdbaa83fc89891e6813fc3f2f (diff)
Redo the way we pass arguments to the llvm.
simply pass aligned arrays, they should cast to vectors without any problems. also remove unnecessary memset
Diffstat (limited to 'src/mesa/pipe/p_compiler.h')
-rw-r--r--src/mesa/pipe/p_compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_compiler.h b/src/mesa/pipe/p_compiler.h
index 020977b05b8..4f2c9ef88af 100644
--- a/src/mesa/pipe/p_compiler.h
+++ b/src/mesa/pipe/p_compiler.h
@@ -73,9 +73,11 @@ typedef unsigned long long uint64;
#if defined __GNUC__
#define ALIGN16_DECL(TYPE, NAME, SIZE) TYPE NAME##___aligned[SIZE] __attribute__(( aligned( 16 ) ))
#define ALIGN16_ASSIGN(NAME) NAME##___aligned
+#define ALIGN16_ATTRIB __attribute__(( aligned( 16 ) ))
#else
#define ALIGN16_DECL(TYPE, NAME, SIZE) TYPE NAME##___unaligned[SIZE + 1]
#define ALIGN16_ASSIGN(NAME) align16(NAME##___unaligned)
+#define ALIGN16_ATTRIB
#endif