Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-09-21 | mesa: fix issues causing warnings on Windows | Brian Paul | |
2008-09-18 | mesa: prefix a bunch of #include lines with "main/". | Brian Paul | |
This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code... | |||
2008-09-16 | mesa: rework GLSL vertex attribute binding | Brian Paul | |
Calls to glBindAttribLocation() should not take effect until the next time that glLinkProgram() is called. gl_shader_program::Attributes now just contains user-defined bindings. gl_shader_program::VertexProgram->Attributes contains the actual/final bindings. | |||
2008-08-11 | mesa: glsl: add missing sampler types in sizeof_glsl_type(), bug 17079 | Brian Paul | |
2008-07-29 | mesa: Silence compiler warnings on Windows. | Brian Paul | |
2008-07-29 | mesa: fix issues causing warnings on Windows | Brian Paul | |
2008-07-29 | mesa: glsl: only try to link shaders defining main() | Brian Paul | |
2008-07-29 | mesa: remove stray debug assertion | Brian Paul | |
2008-07-29 | mesa: fix glUniform error checking for samplers | Brian | |
2008-07-29 | mesa: fix some issues in _mesa_validate_program() | Brian Paul | |
2008-07-29 | mesa: assorted glsl uniform/attribute fixes | Brian Paul | |
Fix incorrect uniform/attribute size query results. Add missing error checking for glUniform, glUniformMatrix params Fix an array size/allocation error. | |||
2008-07-29 | mesa: fix set_program_uniform_matrix(): need to loop over matrix count | Brian Paul | |
2008-07-08 | mesa: implement glGetUniformiv() with new ctx->Driver function | Brian Paul | |
The old implementation could overwrite the caller's param buffer. | |||
2008-07-04 | mesa: generate GL_INVALID_OPERATION in _mesa_get_uniform_location() if ↵ | Brian Paul | |
program isn't linked | |||
2008-07-03 | mesa: fix various error codes | Brian Paul | |
2008-07-03 | mesa: additional error checking, fix error codes | Brian Paul | |
2008-07-02 | mesa: fix error codes in _mesa_shader_source(), _mesa_get_shader_source() | Brian Paul | |
If the 'shader' parameter is wrong, need to either generate GL_INVALID_VALUE or GL_INVALID_OPERATION. It depends on whether 'shader' actually names a 'program' or is a totally unknown ID. There might be other cases to fix... | |||
2008-06-28 | s/GL_INVALID_VALUE/GL_INVALID_OPERATION/ in _mesa_get_uniformfv() | Brian Paul | |
2008-05-18 | Move _mesa_init_glsl_driver_functions() into shader_api.c | Brian Paul | |
This allows making a bunch of functions static, and removes a state tracker dependency on driverfuncs.c cherry-picked from gallium-0.1 | |||
2008-05-16 | bring in fixes/changes from gallium-0.1 | Brian Paul | |
2008-05-16 | silence warning, new assertion | Brian Paul | |
2008-05-16 | Fix a program refcounting error, don't share program parameter lists. | Brian Paul | |
The refcounting bug was causing a memleak (unfreed programs). The old parameter list sharing is not needed since the change in how uniforms are handled. | |||
2008-05-14 | Updated GLSL uniform/sampler handling from gallium-0.1 branch | Brian Paul | |
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 | |||
2008-05-14 | fix some additional program refcounting bugs | Brian Paul | |
2008-05-06 | implement full reference counting for vertex/fragment programs | Brian | |
Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test. | |||
2008-04-22 | small cleanups | Alan Hourihane | |
2008-03-31 | mesa: Free all shader program data before deleting all | Xiang, Haihao | |
shader/shader program objects to avoid memory access error. | |||
2008-03-31 | Revert "mesa: separate shader program object from shader object." (bug#15244) | Xiang, Haihao | |
This reverts commit 3ffd11f71d021f672b9bc15b3c39c155a0e2fecb. | |||
2008-03-22 | use ctx->Driver.DeleteProgram() in a few more places | Brian | |
2008-02-28 | mesa: separate shader program object from shader object. | Xiang, Haihao | |
Currently a callback delete_shader_cb is used for deleting shader and shader program objects. Mesa detaches all attached shaders in _mesa_free_shader_program_data when deleting shader program objects. However it is likely that these shaders have been freed in _mesa_free_shader, which will result in unexpected behaviour. This fix uses a single callback for shader program objects and deletes shader program objects before shader objects. | |||
2008-01-01 | Convert to 0/1 when setting boolean uniforms | Bruce Merry | |
Also add some extra tests to the shader_api regression tests | |||
2008-01-01 | Make use of count in _mesa_uniform_matrix | Bruce Merry | |
2008-01-01 | More fixes to shader_api | Bruce Merry | |
- return GL_INVALID_OPERATION instead of GL_INVALID_VALUE if location is bad - correct the type-checking of uniforms from my previous commit - accept location of -1 in _mesa_uniform_matrix | |||
2008-01-01 | Fix several bugs relating to uniforms and attributes in GLSL API | Bruce Merry | |
- fix sizes for GL_FLOAT_MAT2x3 and GL_FLOAT_MAT4x3 in sizeof_glsl_type - fix size returns in _mesa_get_active_attrib - fix out-of-bounds array access to vec_types in _mesa_get_active_attrib - fix queries of matrix uniforms in _mesa_get_uniformfv - fix _mesa_get_uniformfv to only return one base, even from an array - allow location == -1 in _mesa_uniform - validate types in _mesa_uniform - allow array overruns in _mesa_uniform | |||
2007-12-20 | return correct size from glGetActiveUniform (bug 13751) | Brian | |
2007-08-07 | fix potential NULL dereference (bug 11880) | Brian | |
2007-07-13 | fix shader/info string length queries (bug 11588) | Jan Dvorak | |
2007-07-04 | Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵ | Brian | |
of -I flags. | |||
2007-05-09 | Check that texture units/samplers specified with glUniform1i() are legal. | Brian | |
2007-04-21 | free shProg->Attributes in _mesa_free_shader_program_data() | Brian | |
2007-04-18 | Start fixing some issues with uniform variables and their types. | Brian | |
2007-04-18 | Fix some bugs related to querying active uniforms. | Brian | |
2007-04-18 | fix error strings, add a sanity check | Brian | |
2007-04-18 | Remove bad assertions, decrement NumShaders in _mesa_detach_shader(). | Brian | |
Fixes crashes w/ Brad King's depth peeling test. | |||
2007-04-18 | s/GL_SHADER_PROGRAM/GL_SHADER_PROGRAM_MESA/ (a Mesa-specific token) | Brian | |
2007-04-18 | Replace _mesa_parameter_longest_name() with _mesa_longest_parameter_name(). | Brian | |
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. | |||
2007-04-12 | disable debug printfs | Brian | |
2007-04-12 | New _mesa_reference_shader/program() function to consolidate refcounting. | Brian | |
Note that (unlike texture objects), shader handles remain valid (in the hash table) after glDeleteShader/Program() if the refcount isn't zero. | |||
2007-04-11 | fix invalid error detection problem in _mesa_bind_attrib_location(), bug 10602 | Brian | |
2007-03-26 | fix mem leak, add comments | Brian | |