Mesa (master): i965: make size_swizzles[] static const

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 7 09:38:39 PDT 2011


Module: Mesa
Branch: master
Commit: e967c5b38fcde15a7e78910239735d851e7a7e40
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e967c5b38fcde15a7e78910239735d851e7a7e40

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Oct  7 10:38:30 2011 -0600

i965: make size_swizzles[] static const

Reviewed-by: Chad Versace <chad at chad-versace.us>

---

 src/mesa/drivers/dri/i965/brw_vec4.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h
index 5f44268..1caf1a6 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),



More information about the mesa-commit mailing list