diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-25 14:36:32 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-25 14:36:32 +0000 |
commit | 6f9646f5beecca2972ef0299b5c7469008cb6fe4 (patch) | |
tree | 7fcbe49aaed880c05503a39e9f9da8e618cad474 /src/sna/compiler.h | |
parent | 421910ca572a044170af69a90bb934f114a62168 (diff) |
sna/trapezoids: Instruct the compiler to flatten the callees whilst rasterising
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/compiler.h')
-rw-r--r-- | src/sna/compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/compiler.h b/src/sna/compiler.h index 1d501185..23ec31c3 100644 --- a/src/sna/compiler.h +++ b/src/sna/compiler.h @@ -38,6 +38,7 @@ #define constant __attribute__((const)) #define pure __attribute__((pure)) #define __packed__ __attribute__((__packed__)) +#define flatten __attribute__((flatten)) #else #define likely(expr) (expr) #define unlikely(expr) (expr) @@ -48,6 +49,7 @@ #define constant #define pure #define __packed__ +#define flatten #endif #ifdef HAVE_VALGRIND |