mesa: place glsl constant arrays in constant memory
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Dec 2008 01:00:47 +0000 (18:00 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Dec 2008 01:00:47 +0000 (18:00 -0700)
commit3b61e9c6e699690aa2ce61ad746170ea6d5597f4
tree717030b903f020426f35fcfdefc8061770b94a1c
parent0da44c62cc91c60d392f6e57aa047473b67ffb9b
mesa: place glsl constant arrays in constant memory

For example, a declaration like
   const float[3] xxx = float[3](1.1, 2.2, 3.3);
will place the array in the constant buffer whereas a regular, non-const array
would be placed in the temporary register file.
Next up: do the same thing for uniform arrays.
src/mesa/shader/slang/slang_codegen.c