From: Brian Paul Date: Fri, 7 Oct 2011 16:38:30 +0000 (-0600) Subject: i965: make size_swizzles[] static const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e967c5b38fcde15a7e78910239735d851e7a7e40;p=mesa.git i965: make size_swizzles[] static const Reviewed-by: Chad Versace --- 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),