projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc61b41
)
program: Mark table const.
author
Matt Turner
<mattst88@gmail.com>
Sat, 27 Feb 2016 22:15:26 +0000
(14:15 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Tue, 1 Mar 2016 19:41:29 +0000
(11:41 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Brian Paul <brianp@vmware.com>
src/mesa/program/prog_noise.c
patch
|
blob
|
history
diff --git
a/src/mesa/program/prog_noise.c
b/src/mesa/program/prog_noise.c
index ac920c23f344860f26468f51a5d99537d6f1830f..e2e209e5bd3b58202ff9805ab43a03acb5b40845 100644
(file)
--- a/
src/mesa/program/prog_noise.c
+++ b/
src/mesa/program/prog_noise.c
@@
-188,7
+188,7
@@
grad4(int hash, float x, float y, float z, float t)
* Details can be found where this table is used, in the 4D noise method.
* TODO: This should not be required, backport it from Bill's GLSL code!
*/
-static unsigned char simplex[64][4] = {
+static
const
unsigned char simplex[64][4] = {
{0, 1, 2, 3}, {0, 1, 3, 2}, {0, 0, 0, 0}, {0, 2, 3, 1},
{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {1, 2, 3, 0},
{0, 2, 1, 3}, {0, 0, 0, 0}, {0, 3, 1, 2}, {0, 3, 2, 1},