summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_simulator_validate.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-08-01 11:24:29 -0700
committerEric Anholt <eric@anholt.net>2014-08-11 14:45:31 -0700
commitc047f1360306e0e25d2500ae13e2424254a47dbd (patch)
tree416c62babf3e7f7d843fe18dd37a766b1ddc4cfc /src/gallium/drivers/vc4/vc4_simulator_validate.h
parent766ca5c7a5a28e6f7c0b37d6408e54f3d86b77b8 (diff)
downloadexternal_mesa3d-c047f1360306e0e25d2500ae13e2424254a47dbd.zip
external_mesa3d-c047f1360306e0e25d2500ae13e2424254a47dbd.tar.gz
external_mesa3d-c047f1360306e0e25d2500ae13e2424254a47dbd.tar.bz2
vc4: Align following shader recs to 16 bytes.
Otherwise, the low address bits will end up being interpreted as attribute counts.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_simulator_validate.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_simulator_validate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_simulator_validate.h b/src/gallium/drivers/vc4/vc4_simulator_validate.h
index 28dd2f6..52f664a 100644
--- a/src/gallium/drivers/vc4/vc4_simulator_validate.h
+++ b/src/gallium/drivers/vc4/vc4_simulator_validate.h
@@ -41,6 +41,7 @@
#define kfree(ptr) free(ptr)
#define krealloc(ptr, size, args) realloc(ptr, size)
#define roundup(x, y) align(x, y)
+#define BUG_ON(condition) assert(!(condition))
static inline int
copy_from_user(void *dst, void *src, size_t size)