aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/shader_api.h
Commit message (Collapse)AuthorAgeFilesLines
* glsl: implement shader sampler validationBrian Paul2009-08-251-1/+7
| | | | | | Shader validation should fail if there are two samplers of different types which reference the same texture unit. For example, if a cubemap sampler and a 2D sampler both reference texture unit 0, that's invalid.
* mesa: update the shader programs->TexturesUsed array at link timeBrian Paul2008-11-061-0/+4
| | | | | | | | If an application never calls glUniform() to set sampler variable values they'll remain 0 (the default value/unit). Now call _mesa_update_shader_textures_used() at link time in case glUniform() is never called. program->TextureUsed[] will then be correct for state validation.
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-2/+2
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Move _mesa_init_glsl_driver_functions() into shader_api.cBrian Paul2008-05-181-99/+4
| | | | | | | This allows making a bunch of functions static, and removes a state tracker dependency on driverfuncs.c cherry-picked from gallium-0.1
* New _mesa_reference_shader/program() function to consolidate refcounting.Brian2007-04-121-0/+13
| | | | | Note that (unlike texture objects), shader handles remain valid (in the hash table) after glDeleteShader/Program() if the refcount isn't zero.
* Free shader-related context state: _mesa_free_shader_state()Brian2007-03-241-0/+3
|
* Fix shader object reference counting and hash table deallocation.Brian2006-12-201-1/+4
|
* Clean-up and re-org of the main GLSL object types.Brian2006-12-191-8/+8
| | | | | | | Use the gl_shader struct as it should be. Renamed gl_linked_program to gl_shader_program. Store both shaders and programs in the same hash table and use the Type field to distinguish them.
* Overhaul of GLSL API functions, dispatching, etc.Brian2006-12-191-2/+109
|
* GLSL API functions.Brian2006-12-181-0/+59