From e967c5b38fcde15a7e78910239735d851e7a7e40 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 7 Oct 2011 10:38:30 -0600 Subject: [PATCH] i965: make size_swizzles[] static const Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/brw_vec4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 5f4426880f4..1caf1a66513 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -50,7 +50,7 @@ class dst_reg; static int swizzle_for_size(int size) { - int size_swizzles[4] = { + static const int size_swizzles[4] = { BRW_SWIZZLE4(SWIZZLE_X, SWIZZLE_X, SWIZZLE_X, SWIZZLE_X), BRW_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y), BRW_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_Z), -- 2.30.2