summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/prog_parameter.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: _mesa_program_state_string() returns char *, not const char *.Michal Krol2008-09-051-2/+2
|
* mesa: glsl: add usage tracking for uniform varsBrian Paul2008-08-191-2/+25
| | | | Unused uniforms are no longer included in the active uniforms list.
* mesa: Prefix main includes with dir to avoid conflicts.José Fonseca2008-07-241-3/+3
| | | | | Some of the headers in src/mesa/main have pretty common names which easily conflict with third-party code, e.g. config.h
* mesa: assorted glsl uniform/attribute fixesBrian Paul2008-07-211-26/+3
| | | | | | Fix incorrect uniform/attribute size query results. Add missing error checking for glUniform, glUniformMatrix params Fix an array size/allocation error.
* mesa: glsl: various writemask/swizzle improvements and clean-upsBrian Paul2008-07-181-1/+1
|
* mesa: Silence compiler warnings on Windows.Michal Krol2008-07-151-0/+1
|
* shaders: fix allocation of arrays of parametersZack Rusin2008-06-121-1/+23
|
* copy StateFlags in _mesa_clone_parameter_list()Brian Paul2008-05-201-0/+2
| | | | cherry-picked from master (b539b6132141b0f583076355ad158852667b79cd)
* fix incorrect sampler numbering/indexing.Brian Paul2008-05-201-7/+13
| | | | | | All samplers indexes were zero. cherry-picked from master (b6fb0940c226373ac235a5d327d3fcfd742bc6b9)
* mesa: use CALLOC_STRUCT()Brian Paul2008-05-141-2/+1
|
* Fix the compile of disabled DEBUG_PARSING code.Brian2008-03-271-1/+1
| | | | cherry-picked from master
* added _mesa_combine_parameter_lists()Brian2007-10-301-0/+33
|
* Re-implement GLSL texture sampler variables.Brian2007-10-261-2/+5
| | | | | | | | | | 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.
* comments, assertionsBrian2007-04-181-2/+3
|
* new commentsBrian2007-04-181-0/+13
|
* Start fixing some issues with uniform variables and their types.Brian2007-04-181-13/+18
|
* Fix some bugs related to querying active uniforms.Brian2007-04-181-0/+17
|
* Replace _mesa_parameter_longest_name() with _mesa_longest_parameter_name().Brian2007-04-181-5/+8
| | | | | | 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.
* In _mesa_lookup_parameter_constant() make sure we return a full, 4-component ↵Brian2007-03-261-0/+4
| | | | swizzle.
* In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow ↵Brian2007-03-221-37/+55
| | | | | | | | 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().
* remove bogus assertionBrian2007-03-131-1/+0
|
* replace GLint with gl_state_indexBrian2007-02-231-1/+1
|
* Undo some STATE_POINT/FOG changes. Max length of state token array is now 5.Brian2007-02-221-1/+1
|
* always init param vars to silence valgrind warningsBrian2007-02-091-0/+4
|
* do full swizzled matching in _mesa_lookup_parameter_constant()Brian2007-02-081-5/+16
|
* fix g++ warnings/errorsBrian2007-01-231-4/+4
|
* _mesa_add_unnamed_constant() now tries to re-use constants already inBrian2007-01-181-30/+57
| | | | the parameter list.
* fix size bug in _mesa_add_attribute()Brian2007-01-101-0/+2
|
* simplify _mesa_add_state_reference()Brian2007-01-101-10/+2
|
* get rid of STATE_USER_ATTRIB/STATE_AUTO_ATTRIBBrian2007-01-091-4/+2
|
* clean up a bunch of program parameter stuffBrian2007-01-091-27/+50
|
* Implement vertex attribute binding.Brian2007-01-091-0/+28
| | | | | Users can set explicit binding with glBindAttribLocation(), otherwise the linker will allocate generic attribute slots.
* added _mesa_add_sampler()Brian2007-01-051-0/+17
|
* Uniform matrix support.Brian2006-12-201-22/+38
| | | | | | | 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.
* Overhaul of GLSL API functions, dispatching, etc.Brian2006-12-191-0/+19
|
* remove unneded includesBrian2006-12-141-2/+0
|
* Split the program.[ch] files into several new files.Brian2006-12-141-0/+448