Updated GLSL uniform/sampler handling from gallium-0.1 branch
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 May 2008 22:09:46 +0000 (16:09 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 14 May 2008 22:09:46 +0000 (16:09 -0600)
commitade508312c701ce89d3c2cd717994dbbabb4f207
tree7c7a35935143d90c99820025a8887c5606041db6
parentc807c1a23fc918591e9d2f6f26c4e071a725bced
Updated GLSL uniform/sampler handling from gallium-0.1 branch

Previously, the shader linker combined the uniforms used by the vertex and
fragment shaders into a combined set of uniforms.  This made the implementation
of glUniform*() simple, but was rather inefficient otherwise.  Now each shader
gets its own set of uniforms (no more modelview matrix showing up in the
fragment shader uniforms, for example).

cherry-picked by hand from gallium-0.1 branch
17 files changed:
src/mesa/main/config.h
src/mesa/main/mtypes.h
src/mesa/shader/prog_execute.c
src/mesa/shader/prog_execute.h
src/mesa/shader/prog_instruction.h
src/mesa/shader/prog_parameter.c
src/mesa/shader/prog_parameter.h
src/mesa/shader/shader_api.c
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_compile.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_link.c
src/mesa/shader/slang/slang_link.h
src/mesa/shader/slang/slang_typeinfo.h
src/mesa/sources
src/mesa/swrast/s_fragprog.c
src/mesa/swrast/s_span.c