From: Brian Paul Date: Tue, 31 Jul 2012 15:00:41 +0000 (-0600) Subject: ir_to_mesa: make size_swizzles[] array static const X-Git-Tag: mesa-9.0~858 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=591594ea1e5e9e5865b10b786509b9c3cec042a7;p=platform%2Fupstream%2Fmesa.git ir_to_mesa: make size_swizzles[] array static const --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index baa3172..255a8a7 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -334,7 +334,7 @@ dst_reg address_reg = dst_reg(PROGRAM_ADDRESS, WRITEMASK_X); static int swizzle_for_size(int size) { - int size_swizzles[4] = { + static const int size_swizzles[4] = { MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_X, SWIZZLE_X, SWIZZLE_X), MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y), MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_Z),