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 <brianp@vmware.com>
Tue, 6 Jan 2009 16:12:19 +0000 (09:12 -0700)
commitd0a39f3d65aeb04d750dfb0885e87da1185a9296
tree499fdda623ff2b4c6782d80db827d9a2ffdb6f97
parent7f0462abe7075db92e7f5c30cec692497be514f0
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