summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/prog_parameter.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul2010-06-101-751/+0
|
* glsl: pass datatype to _mesa_add_varying()Brian Paul2010-04-011-2/+3
| | | | Will be needed later for transform feedback support.
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-7/+7
|
* Remove _mesa_memset in favor of plain memset.Kenneth Graunke2010-02-191-2/+2
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Remove _mesa_strncmp in favor of plain strncmp.Kenneth Graunke2010-02-191-1/+1
|
* Remove _mesa_strcmp in favor of plain strcmp.Kenneth Graunke2010-02-191-3/+3
|
* Remove _mesa_strlen in favor of plain strlen.Kenneth Graunke2010-02-191-2/+2
|
* mesa: Fix compiler warningsKarl Schultz2010-02-131-1/+1
| | | | | Add explicit casts, fix constant types, fix variable types. Fixes about 340 warnings in MSFT Visual Studio.
* mesa: change constant search behaviour in _mesa_add_unnamed_constant()Brian Paul2010-01-051-4/+4
| | | | | | Only search for an existing, matching constant if swizzleOut is non-null. We need to be able to disable constant consolidation when building an array of constants which will be indexed indirectly.
* mesa: Assign _mesa_lookup_parameter_index return value to GLint.Vinson Lee2009-12-101-1/+1
|
* mesa: added commentBrian Paul2009-09-241-0/+1
|
* Add new _mesa_new_parameter_list_sized to pre-allocate a parameter listIan Romanick2009-07-201-0/+28
|
* mesa: build a float[4] value in _mesa_add_sampler() to avoid random valuesBrian Paul2009-04-171-3/+4
|
* mesa: in mesa_add_named_constant(), avoid adding duplicate constantsBrian Paul2009-04-031-7/+12
|
* mesa: update/fix doxygen commentsVinson Lee2009-03-171-1/+1
|
* mesa: gl_register_file enum typedefBrian Paul2009-03-071-3/+3
|
* Merge commit 'origin/master' into gallium-0.2Brian Paul2009-01-021-1/+2
|\ | | | | | | | | | | | | Conflicts: src/mesa/main/ffvertex_prog.c src/mesa/main/texenvprogram.c
| * mesa: fix another "out of samplers" problemBrian Paul2009-01-021-1/+2
| | | | | | | | | | | | 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.
* | Merge commit 'origin/master' into gallium-0.2Brian Paul2008-12-161-1/+0
|\|
| * mesa: remove old size=4 limitBrian Paul2008-12-121-1/+0
| |
| * mesa: copy Flags in _mesa_clone_parameter_list()Brian Paul2008-11-241-0/+1
| |
| * mesa: add Flags field to gl_program_parameterBrian Paul2008-11-241-14/+17
| | | | | | | | Only one flag defined so far: PROG_PARAM_CENTROID_BIT
* | mesa: copy Flags in _mesa_clone_parameter_list()Brian Paul2008-11-241-0/+1
| |
* | mesa: add Flags field to gl_program_parameterBrian Paul2008-11-241-14/+17
| | | | | | | | Only one flag defined so far: PROG_PARAM_CENTROID_BIT
* | Merge commit 'origin/master' into gallium-0.2Brian Paul2008-11-111-2/+4
|\| | | | | | | | | | | | | Conflicts: src/mesa/shader/prog_execute.c src/mesa/shader/slang/library/slang_vertex_builtin_gc.h
| * mesa: track initialization status of uniform variables. Plus, asst clean-ups.Brian Paul2008-11-101-2/+4
| |
| * mesa: glsl: grab latest fixes from gallium-0.1 branchBrian Paul2008-08-251-5/+28
| | | | | | | | | | | | | | 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.
| * mesa: Silence compiler warnings on Windows.Brian Paul2008-07-291-0/+1
| |
| * mesa: assorted glsl uniform/attribute fixesBrian Paul2008-07-291-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-291-1/+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
| |
| * fix incorrect sampler numbering/indexing.Brian Paul2008-05-201-7/+13
| | | | | | | | All samplers indexes were zero.
| * Updated GLSL uniform/sampler handling from gallium-0.1 branchBrian Paul2008-05-141-2/+5
| | | | | | | | | | | | | | | | | | | | 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
| * added _mesa_combine_parameter_lists()Brian Paul2008-05-141-0/+33
| | | | | | | | cherry-picked from gallium-0.1
| * small cleanupsAlan Hourihane2008-04-221-2/+1
| |
| * make sure state token values are fully initializedRoland Scheidegger2007-12-111-1/+1
| |
* | 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.