diff options
author | Brian Paul <[email protected]> | 2012-07-31 09:00:41 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-07-31 09:00:41 -0600 |
commit | 591594ea1e5e9e5865b10b786509b9c3cec042a7 (patch) | |
tree | 435909cbc2f5854c2f2d8fa09ae83afc8924bf4c /src | |
parent | 27013e5164a1823d5bdcb5ca21ae4ca0df40b8f8 (diff) |
ir_to_mesa: make size_swizzles[] array static const
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index baa317204c4..255a8a76a0f 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), |