From: Matt Turner Date: Mon, 9 May 2011 04:17:05 +0000 (-0400) Subject: r300/compiler: align memory allocations to 8-bytes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86852236a396bd9932a6ab6e73def0c8ef2f23a5;p=mesa.git r300/compiler: align memory allocations to 8-bytes Eliminates unaligned accesses on strict architectures. Spotted by Jay Estabrook. Signed-off-by: Matt Turner NOTE: This is a candidate for the 7.10 branch. --- 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 {