r300/compiler: align memory allocations to 8-bytes
authorMatt Turner <mattst88@gmail.com>
Mon, 9 May 2011 04:17:05 +0000 (00:17 -0400)
committerMarek Olšák <maraeo@gmail.com>
Mon, 9 May 2011 18:01:58 +0000 (20:01 +0200)
Eliminates unaligned accesses on strict architectures. Spotted by Jay
Estabrook.

Signed-off-by: Matt Turner <mattst88@gmail.com>
NOTE: This is a candidate for the 7.10 branch.

src/mesa/drivers/dri/r300/compiler/memory_pool.c

index 76c7c60d8f56b4a2e34d13343b6c2dd97aa35dcf..ddcdddf9e3cb2c95c44441402c2e5ae1e2d5a546 100644 (file)
@@ -28,7 +28,7 @@
 
 
 #define POOL_LARGE_ALLOC 4096
-#define POOL_ALIGN 4
+#define POOL_ALIGN 8
 
 
 struct memory_block {