aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniforms.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: add glGetUniformuiv(), plug in uint glUniform funcsBrian Paul2010-10-281-8/+55
|
* mesa: Track an ActiveProgram distinct from CurrentProgramIan Romanick2010-10-271-33/+33
| | | | | ActiveProgram is the GL_EXT_separate_shader_objects state variable used for glUniform calls. glUseProgram also sets this.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-9/+9
|
* mesa: Don't reference a W component in setting up a vec3 uniform component.Eric Anholt2010-09-301-1/+5
| | | | | The 965 driver would try to set up storage for the W component, and the offsets would get mixed up.
* mesa: Move the list of builtin uniform info from ir_to_mesa to shared code.Eric Anholt2010-09-281-1/+230
| | | | | | I'm still not pleased with how builtin uniforms are handled, but as long as we're relying on the prog_statevar stuff this seems about as good as it'll get.
* glsl: Set up uniform initializers by walking the shaders after linking.Eric Anholt2010-08-241-48/+60
| | | | | | | | | | | | | Previously, uniform initializers were handled by ir_to_mesa as it made its Parameters list. However, uniform values are global to all shaders, and the value set in one Parameters list wasn't propagated to the other gl_program->Parameters lists. By going back through the general Mesa uniform handling, we make sure that all gl_programs get updated values, and also successfully separate uniform initializer handling from ir_to_mesa gl_program generation. Fixes: glsl-uniform-initializer-5.
* mesa: make uniform work with geometry shadersZack Rusin2010-07-101-0/+29
|
* mesa: Fix OpenGL ES-only builds.Chia-I Wu2010-07-031-0/+2
| | | | | | | | Check FEATURE_GL in _mesa_init_shader_dispatch and _mesa_init_shader_uniform_dispatch. OpenGL ES can not and does not use _mesa_init_<...>_dispatch. This is supposed to be temporary. Ideally, a more flexible way for initializing dispatch tables should be developed.
* mesa: initial support for ARB_geometry_shader4Zack Rusin2010-06-281-0/+5
| | | | | | laying down the foundation for everything and implementing most of the stuff. linking, gl_VerticesIn and multidimensional inputs are left.
* mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul2010-06-101-3/+3
|
* mesa: move uniforms.c to main/Brian Paul2010-06-101-0/+1334