aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/shader_api.c
Commit message (Collapse)AuthorAgeFilesLines
* fix potential NULL dereference (bug 11880)Brian2007-08-071-2/+6
|
* fix shader/info string length queries (bug 11588)Jan Dvorak2007-07-131-3/+3
|
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-4/+3
| | | | of -I flags.
* Check that texture units/samplers specified with glUniform1i() are legal.Brian2007-05-091-1/+9
|
* free shProg->Attributes in _mesa_free_shader_program_data()Brian2007-04-211-0/+5
|
* Start fixing some issues with uniform variables and their types.Brian2007-04-181-7/+2
|
* Fix some bugs related to querying active uniforms.Brian2007-04-181-10/+32
|
* fix error strings, add a sanity checkBrian2007-04-181-2/+14
|
* Remove bad assertions, decrement NumShaders in _mesa_detach_shader().Brian2007-04-181-2/+1
| | | | Fixes crashes w/ Brad King's depth peeling test.
* s/GL_SHADER_PROGRAM/GL_SHADER_PROGRAM_MESA/ (a Mesa-specific token)Brian2007-04-181-4/+4
|
* Replace _mesa_parameter_longest_name() with _mesa_longest_parameter_name().Brian2007-04-181-2/+2
| | | | | | The later takes a type parameter so we can match uniforms or attributes/inputs. Used by the GL_ACTIVE_ATTRIBUTE_MAX_LENGTH and GL_ACTIVE_UNIFORM_MAX_LENGTH queries. Fixes problem reported by Brad King in VTK.
* disable debug printfsBrian2007-04-121-8/+6
|
* New _mesa_reference_shader/program() function to consolidate refcounting.Brian2007-04-121-49/+153
| | | | | Note that (unlike texture objects), shader handles remain valid (in the hash table) after glDeleteShader/Program() if the refcount isn't zero.
* fix invalid error detection problem in _mesa_bind_attrib_location(), bug 10602Brian2007-04-111-7/+11
|
* fix mem leak, add commentsBrian2007-03-261-3/+15
|
* Free shader-related context state: _mesa_free_shader_state()Brian2007-03-241-0/+16
|
* Add the ability to generate programs that doesn't use condition codes.Brian2007-03-231-0/+1
| | | | | | | ctx->Shader.EmitCondCodes determines if we use condition codes. If not, IF statement uses first operand's X component as the condition. Added OPCODE_BRK0, OPCODE_BRK1, OPCODE_CONT0, OPCODE_CONT1 to handle the common cases of conditional break/continue.
* more bug fixing, error checkingBrian2007-03-131-2/+7
|
* fix a number of issues in _mesa_uniform()Brian2007-03-131-45/+43
|
* fix _mesa_uniform_matrix() transpose bugBrian2007-03-091-2/+2
|
* check for null program ptrs in _mesa_uniform()Brian2007-03-071-2/+4
|
* Add EmitHighLevelInstructions, EmitComments booleans to gl_shader_state.Brian2007-02-261-6/+8
| | | | These control code generation options. May be overridden by drivers, debuggers, etc.
* Remove unneeded _Fragment/VertexShaderPresent fields, update comments.Brian2007-02-241-2/+1
|
* s/_slang_link2/_slang_link/Brian2007-02-161-1/+1
|
* added FLUSH_VERTICES() in _mesa_use_program()Brian2007-02-031-0/+8
|
* Only glUniform1i() can be used to set sampler uniforms. Generate error ↵Brian2007-02-021-0/+14
| | | | otherwise.
* fix _mesa_get_uniform_location() so it uses the given program handleBrian2007-01-301-2/+3
|
* fix g++ warnings/errorsBrian2007-01-231-3/+3
|
* checkpoint: codegen for global vars w/ initializersBrian2007-01-101-1/+2
|
* assorted code clean-upsBrian2007-01-101-2/+1
|
* get rid of STATE_USER_ATTRIB/STATE_AUTO_ATTRIBBrian2007-01-091-1/+1
|
* clean up a bunch of program parameter stuffBrian2007-01-091-3/+3
|
* Implement vertex attribute binding.Brian2007-01-091-15/+24
| | | | | Users can set explicit binding with glBindAttribLocation(), otherwise the linker will allocate generic attribute slots.
* Checkpoint glsl compiler work: sampler uniforms now implemented, linked ↵Brian2007-01-051-1/+8
| | | | properly.
* finish some loose ends in _mesa_uniform()Brian2007-01-041-13/+44
|
* Fix some incorrect GL error values. Reorganize _mesa_compile_shader() code.Brian2007-01-041-35/+14
|
* comment about uniformsBrian2006-12-211-0/+4
|
* Uniform matrix support.Brian2006-12-201-54/+55
| | | | | | | Implement _mesa_uniform_matrix() Support for program parameters/uniforms with more than 4 elements. Store 4x4 matrices in column-major order in registers. Update mat mul built-in functions accordingly.
* code re-orgBrian2006-12-201-158/+155
|
* Fix shader object reference counting and hash table deallocation.Brian2006-12-201-7/+62
|
* Clean-up and re-org of the main GLSL object types.Brian2006-12-191-187/+198
| | | | | | | 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-986/+525
|
* GLSL API functions.Brian2006-12-181-0/+1390