From 86852236a396bd9932a6ab6e73def0c8ef2f23a5 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 9 May 2011 00:17:05 -0400 Subject: [PATCH] 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. --- src/mesa/drivers/dri/r300/compiler/memory_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.30.2