summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2008-05-16Fix DRI buildBrian Paul
2008-05-14Updated GLSL uniform/sampler handling from gallium-0.1 branchBrian 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-14mesa: new functions for managing list/index of uniformsBrian Paul
cherry-picked from gallium-0.1
2008-05-14clean-up swizzle fields in fog code, fix NegateBaseBrian Paul
cherry-picked from gallium-0.1
2008-05-14sync up with gallium-0.1 changesBrian Paul
New _mesa_num_inst_dst_regs(), _mesa_is_tex_instruction() functions
2008-05-14added _mesa_combine_parameter_lists()Brian Paul
cherry-picked from gallium-0.1
2008-05-14mesa: added _mesa_insert_instructions()Brian Paul
Also, use new _mesa_free_instructions() in a few places. cherry-picked from gallium-0.1
2008-05-14mesa: added _mesa_free_instructions()Brian Paul
cherry-picked from gallium-0.1
2008-05-14fix some additional program refcounting bugsBrian Paul
2008-05-08disable debug printfsBrian Paul
2008-05-07fix refcounting bugs in tnl/tex program cachesBrian Paul
2008-05-07Never fail `make clean'Dan Nicholson
Mostly some pedantic changes such that `make clean' always ignores errors. Also changed the top clean target to do the `touch configs/current' dance instead of realclean.
2008-05-06implement full reference counting for vertex/fragment programsBrian
Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test.
2008-04-23glcore: drop outdated sources files intented for xorgGeorge Sapountzis
2008-04-22revert part of the previous cleanup - it only appliesAlan Hourihane
to the 7.0 branch
2008-04-22Fix error stringAlan Hourihane
2008-04-22correct the return valueAlan Hourihane
2008-04-22small cleanupsAlan Hourihane
2008-04-14fix GL_ARB_texture_rectangle breakageBrian Paul
2008-04-14define #extension GL_ARB_texture_rectangleDavid Flynn
2008-04-11fix failed assertion (parameter can be a PROGRAM_CONSTANT)Brian Paul
2008-04-03rewrite some of the mat*mat, mat*vec intrinsicsBrian
Also, remove obsolete matrix codegen code.
2008-03-31fix parsing bug involving comments at the end of ARB v/f programsMarkus Amsler
2008-03-31mesa: Free all shader program data before deleting allXiang, Haihao
shader/shader program objects to avoid memory access error.
2008-03-31Revert "mesa: separate shader program object from shader object." (bug#15244)Xiang, Haihao
This reverts commit 3ffd11f71d021f672b9bc15b3c39c155a0e2fecb.
2008-03-27consolidate some parsing functions that were pretty much identical for ↵Brian
vertex/fragment programs
2008-03-27when negating scalar src args, use NEGATE_XYZW, not NEGATE_XBrian
This makes things easier on the back-end when generating GPU code. cherry-picked from gallium-0.1
2008-03-27Set param_var->param_binding_type = PROGRAM_CONSTANTBrian
cherry-picked from gallium-0.1
2008-03-22use ctx->Driver.DeleteProgram() in a few more placesBrian
2008-03-17only set InputsRead bit if input is really usedMarkus Amsler
2008-03-17mesa: Add vertex.attrib 0-15 to arb_input_attrib_string.Markus Amsler
2008-03-14init tmpNode to zerosBrian
2008-03-14mesa: fix emit_clamp() so that we don't use an output register as temporaryBrian
IR_CLAMP is decomposed into OPCODE_MIN+OPCODE_MAX. Allocate a temporary register for the intermediate value so we don't inadvertantly use an output register (which are write-only on some GPUs).
2008-03-13fix state.lightprod ambient/specular w value (bug #14983)Roland Scheidegger
2008-03-10fix parsing of state.texenv.color (bug 14931)Brian
2008-03-01state.depth.range alpha value should be 1, not 0 (bug #14733)Roland Scheidegger
2008-02-28mesa: 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-02-27mesa: set input read only on successMarkus Amsler
2008-02-20raise GL_INVALID_OPERATION if glProgramString compilation failsBrian
2008-01-31regenerate glsl library functionsRoland Scheidegger
2008-01-31fix w component of glsl vec4 asinRoland Scheidegger
2008-01-15Fix the compile of disabled DEBUG_PARSING code.Eric Anholt
2008-01-15Bug #13492: Only call ProgramStringNotify if program parsing succeeded.Eric Anholt
Wine intentionally tries some out-of-spec programs to test strictness, and calling ProgramStringNotify on the results of a failed program parse resulted in crashes in the 965 driver.
2008-01-01Convert to 0/1 when setting boolean uniformsBruce Merry
Also add some extra tests to the shader_api regression tests
2008-01-01Make use of count in _mesa_uniform_matrixBruce Merry
2008-01-01More fixes to shader_apiBruce 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-01Fix several bugs relating to uniforms and attributes in GLSL APIBruce 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-20return correct size from glGetActiveUniform (bug 13751)Brian
2007-12-11make sure state token values are fully initializedRoland Scheidegger
2007-12-04Fix gl_FrontFacing compilation problemBrian