i965: make size_swizzles[] static const
authorBrian Paul <brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000 (10:38 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000 (10:38 -0600)
Reviewed-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/i965/brw_vec4.h

index 5f4426880f4fa97ec88b496868de62d7f45ce0a3..1caf1a665134c12929ce2b02cde6a1fc8e873951 100644 (file)
@@ -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),