diff options
author | Dave Airlie <airlied@gmail.com> | 2012-09-15 12:55:49 +1000 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2012-09-15 18:01:02 +1000 |
commit | 6f3deeae96efaac246c1e689d960cf1ac5863f2a (patch) | |
tree | 046b475cf7a3b419f095447ba2394532d10f4ec4 | |
parent | 8f9bae615db5c058e3b6ce7f3f8e2262d59640bf (diff) | |
download | external_mesa3d-6f3deeae96efaac246c1e689d960cf1ac5863f2a.zip external_mesa3d-6f3deeae96efaac246c1e689d960cf1ac5863f2a.tar.gz external_mesa3d-6f3deeae96efaac246c1e689d960cf1ac5863f2a.tar.bz2 |
mesa: make global perm variable static const
this array doesn't look like it needs to be global or unconst.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/mesa/program/prog_noise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_noise.c b/src/mesa/program/prog_noise.c index 1713ddb..75cd8c6 100644 --- a/src/mesa/program/prog_noise.c +++ b/src/mesa/program/prog_noise.c @@ -76,7 +76,7 @@ * A vector-valued noise over 3D accesses it 96 times, and a * float-valued 4D noise 64 times. We want this to fit in the cache! */ -unsigned char perm[512] = { 151, 160, 137, 91, 90, 15, +static const unsigned char perm[512] = { 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, |