summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2011-05-09 00:17:05 -0400
committerMarek Olšák <[email protected]>2011-05-09 20:01:58 +0200
commit86852236a396bd9932a6ab6e73def0c8ef2f23a5 (patch)
tree1b3cb3a6c5e4cdbeda0818702e95628235cb474d /src/mesa/drivers/dri/r300
parent7297f2ac3c73039e28aef080dba2c228b78ca47e (diff)
r300/compiler: align memory allocations to 8-bytes
Eliminates unaligned accesses on strict architectures. Spotted by Jay Estabrook. Signed-off-by: Matt Turner <[email protected]> NOTE: This is a candidate for the 7.10 branch.
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/memory_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/memory_pool.c b/src/mesa/drivers/dri/r300/compiler/memory_pool.c
index 76c7c60d8f5..ddcdddf9e3c 100644
--- a/src/mesa/drivers/dri/r300/compiler/memory_pool.c
+++ b/src/mesa/drivers/dri/r300/compiler/memory_pool.c
@@ -28,7 +28,7 @@
#define POOL_LARGE_ALLOC 4096
-#define POOL_ALIGN 4
+#define POOL_ALIGN 8
struct memory_block {