summaryrefslogtreecommitdiff
path: root/src/mesa/shader/prog_parameter.c
AgeCommit message (Collapse)Author
2009-07-20Add new _mesa_new_parameter_list_sized to pre-allocate a parameter listIan Romanick
2009-04-17mesa: build a float[4] value in _mesa_add_sampler() to avoid random valuesBrian Paul
2009-04-03mesa: in mesa_add_named_constant(), avoid adding duplicate constantsBrian Paul
2009-03-17mesa: update/fix doxygen commentsVinson Lee
2009-03-07mesa: gl_register_file enum typedefBrian Paul
2009-01-02Merge commit 'origin/master' into gallium-0.2Brian Paul
Conflicts: src/mesa/main/ffvertex_prog.c src/mesa/main/texenvprogram.c
2009-01-02mesa: fix another "out of samplers" problemBrian Paul
Now only the samplers that are actually used by texture() functions are saved in the uniform variable list. Before, we could run out of samplers if too many were declared while only some of them were actually used.
2008-12-16Merge commit 'origin/master' into gallium-0.2Brian Paul
2008-12-12mesa: remove old size=4 limitBrian Paul
2008-11-24mesa: copy Flags in _mesa_clone_parameter_list()Brian Paul
2008-11-24mesa: add Flags field to gl_program_parameterBrian Paul
Only one flag defined so far: PROG_PARAM_CENTROID_BIT
2008-11-24mesa: copy Flags in _mesa_clone_parameter_list()Brian Paul
2008-11-24mesa: add Flags field to gl_program_parameterBrian Paul
Only one flag defined so far: PROG_PARAM_CENTROID_BIT
2008-11-11Merge commit 'origin/master' into gallium-0.2Brian Paul
Conflicts: src/mesa/shader/prog_execute.c src/mesa/shader/slang/library/slang_vertex_builtin_gc.h
2008-11-10mesa: track initialization status of uniform variables. Plus, asst clean-ups.Brian Paul
2008-09-05mesa: _mesa_program_state_string() returns char *, not const char *.Michal Krol
2008-08-25mesa: glsl: grab latest fixes from gallium-0.1 branchBrian Paul
Includes: 1. Fixes failed asserting about bad swizzles in src reg emit. 2. Tracks uniform var usage. 3. Emit exp() in terms of EXP2 instruction.
2008-08-19mesa: glsl: add usage tracking for uniform varsBrian Paul
Unused uniforms are no longer included in the active uniforms list.
2008-07-29mesa: Silence compiler warnings on Windows.Brian Paul
2008-07-29mesa: assorted glsl uniform/attribute fixesBrian Paul
Fix incorrect uniform/attribute size query results. Add missing error checking for glUniform, glUniformMatrix params Fix an array size/allocation error.
2008-07-29mesa: glsl: various writemask/swizzle improvements and clean-upsBrian Paul
2008-07-24mesa: Prefix main includes with dir to avoid conflicts.José Fonseca
Some of the headers in src/mesa/main have pretty common names which easily conflict with third-party code, e.g. config.h
2008-07-21mesa: assorted glsl uniform/attribute fixesBrian Paul
Fix incorrect uniform/attribute size query results. Add missing error checking for glUniform, glUniformMatrix params Fix an array size/allocation error.
2008-07-18mesa: glsl: various writemask/swizzle improvements and clean-upsBrian Paul
2008-07-15mesa: Silence compiler warnings on Windows.Michal Krol
2008-06-12shaders: fix allocation of arrays of parametersZack Rusin
2008-06-12shaders: fix allocation of arrays of parametersZack Rusin
2008-05-20copy StateFlags in _mesa_clone_parameter_list()Brian Paul
cherry-picked from master (b539b6132141b0f583076355ad158852667b79cd)
2008-05-20fix incorrect sampler numbering/indexing.Brian Paul
All samplers indexes were zero. cherry-picked from master (b6fb0940c226373ac235a5d327d3fcfd742bc6b9)
2008-05-20copy StateFlags in _mesa_clone_parameter_list()Brian Paul
2008-05-20fix incorrect sampler numbering/indexing.Brian Paul
All samplers indexes were zero.
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: use CALLOC_STRUCT()Brian Paul
2008-05-14added _mesa_combine_parameter_lists()Brian Paul
cherry-picked from gallium-0.1
2008-04-22small cleanupsAlan Hourihane
2008-03-27Fix the compile of disabled DEBUG_PARSING code.Brian
cherry-picked from master
2007-12-11make sure state token values are fully initializedRoland Scheidegger
2007-10-30added _mesa_combine_parameter_lists()Brian
2007-10-26Re-implement GLSL texture sampler variables.Brian
GLSL sampler variables indicate which texture unit to use for TEX instructions. Previously, this was baked into the fragment/vertex program and couldn't be readily changed once set. Now, SamplerUnits[] array indicates which texture unit is to be used for each sampler variable. These values are set with glUniform1i(). This is extra state that must be passed to the fragment/vertex program executor at runtime.
2007-04-18comments, assertionsBrian
2007-04-18new commentsBrian
2007-04-18Start fixing some issues with uniform variables and their types.Brian
2007-04-18Fix some bugs related to querying active uniforms.Brian
2007-04-18Replace _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-03-26In _mesa_lookup_parameter_constant() make sure we return a full, 4-component ↵Brian
swizzle.
2007-03-22In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow ↵Brian
swizzleOut==NULL. There are times when we don't want to allow swizzling when searching for or adding vector constants. Passing NULL for swizzleOut disables swizzling. This fixes a constant/swizzle bug in link_uniform_vars().
2007-03-13remove bogus assertionBrian
2007-02-23replace GLint with gl_state_indexBrian
2007-02-22Undo some STATE_POINT/FOG changes. Max length of state token array is now 5.Brian
2007-02-09always init param vars to silence valgrind warningsBrian