aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vp_build.c
Commit message (Collapse)AuthorAgeFilesLines
* s/Tungsten Graphics/VMware/José Fonseca2014-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change. This was the sed script I used: $ cat tg2vmw.sed # Run as: # # git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed # # Rename copyrights s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./ s/TUNGSTEN GRAPHICS/VMWARE/g # Rename emails s/[email protected]/[email protected]/ s/[email protected]/[email protected]/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\[email protected]/[email protected]/g s/keithw\[email protected]/[email protected]/g s/[email protected]/[email protected]/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/[email protected]/[email protected]/ # Remove dead links s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g # C string src/gallium/state_trackers/vega/api_misc.c s/"Tungsten Graphics, Inc"/"VMware, Inc"/ Reviewed-by: Brian Paul <[email protected]>
* mesa: remove outdated version lines in commentsRico Schüller2013-06-051-1/+0
| | | | Signed-off-by: Brian Paul <[email protected]>
* tnl: Clean up header file inclusion in t_vp_build.h.Vinson Lee2010-12-301-1/+1
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-1/+1
|
* mesa: include main/dd.h in t_vb_points.c and t_vp_build.cBrian Paul2009-03-031-0/+1
| | | | | For some reason makedepend doesn't seem to find the dependency on this header in these two files. Directly including the header is a work-around.
* mesa: move fixed function vertex program builder from tnl to core mesaKeith Whitwell2008-09-211-1566/+5
| | | | | | Also unify caching of fragment and vertex programs in shader/prog_cache.c` Brought across from gallium-0.2
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-3/+3
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* mesa: bump MAX_INSN to 350Brian Paul2008-08-281-1/+1
|
* [t_vp_build] Fix refcounting-related memory leakNicolai Haehnle2008-06-021-3/+3
| | | | | | | This memory leak is identical to the earlier one in texenvprogram. Fixed by not creating an additional reference to new programs in cache_item. On top of that, remove some duplicated state setting.
* fix merge collisionBrian Paul2008-05-161-3/+1
|
* free(key) in _tnl_UpdateFixedFunctionProgram()Shunichi Fuji2008-05-161-0/+3
|
* Fix memory leak in _tnl_UpdateFixedFunctionProgramShunichi Fuji2008-05-161-0/+2
|
* fix refcounting bugs in tnl/tex program cachesBrian Paul2008-05-071-25/+26
|
* implement full reference counting for vertex/fragment programsBrian2008-05-061-1/+2
| | | | | Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test.
* t_vp_build: fix temporary register allocation to minimise the allocationsHans de Goede2008-01-021-8/+11
|
* properly init dst reg's CondMask/Swizzle fieldsBrian2007-10-231-3/+3
|
* fix fog, rescale_normals bugs (from gallium branch)Brian2007-10-151-3/+5
|
* Fix problem introduced in previous commit in which a state variable ↵Brian2007-08-311-8/+23
| | | | | | | (uniform) is written to. (see bug 12239) Also, added some assertions to the emit_arg() and emit_dst() functions to catch this kind of error in the future.
* i965: Calculate the positional light in homogeneous coordinates.Xiang, Haihao2007-08-311-0/+5
| | | | fix bug#11009
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-5/+5
| | | | of -I flags.
* fog: fix potential issues with generated vp using fogRoland Scheidegger2007-05-221-8/+15
| | | | | Change the generated vertex programs (tnl/brw) to follow the same logic as the tnl fog wrt using absolute value, and sync them up a bit (untested).
* Fix in t_vp_build: Missed necessary updates sometimesNicolai Haehnle2007-04-021-1/+2
| | | | | | | | | _mesa_update_state doesn't always reset VertexProgram._Current to NULL. This caused us to skip a necessary update of the fixed function vertex program sometimes. Change the logic such that we check for updates whenever the _Current program is either NULL or the program generated by t_vp_build.
* merge of glsl-compiler-1 branchBrian2007-03-261-48/+48
|\
| * merge from masterBrian2007-03-211-7/+16
| |\
| * | s/GLint/gl_state_index/, length is now 5 not 6Brian2007-02-231-32/+29
| | |
| * | Undo some STATE_POINT/FOG changes. Max length of state token array is now 5.Brian2007-02-221-2/+2
| | |
| * | Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-31/+31
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/main/state.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/programopt.c src/mesa/shader/slang/slang_execute.c src/mesa/sources src/mesa/swrast/s_arbshader.c src/mesa/swrast/s_context.c src/mesa/swrast/s_span.c src/mesa/swrast/s_zoom.c src/mesa/tnl/t_context.c src/mesa/tnl/t_save_api.c src/mesa/tnl/t_vb_arbprogram.c src/mesa/tnl/t_vp_build.c src/mesa/tnl/t_vtx_eval.c
| * | | more minor changes to STATE_ indexingBrian2007-02-211-3/+3
| | | |
| * | | adjustments to STATE_ token layout/format so token[1] is always the array indexBrian2007-02-211-15/+15
| | | |
| * | | Lots of changes to prog_print.c code.Brian2007-02-171-1/+1
| | | | | | | | | | | | | | | | Mainly, allow printing programs in either ARB, NV or "debug" formats.
| * | | Initial implementation of high-level flow-control instructions.Brian2007-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | IF/ELSE/ENDIF and BEGIN_LOOP/END_LOOP/BREAK instructions seem to work. Disabled by default though until better tested. Implemented IR_NOT, but needs optimization.
| * | | remove some parenthesisBrian2007-01-241-1/+1
| | | |
| * | | use FRAG_BIT_TEX()Brian2007-01-241-1/+1
| | | |
| * | | updated includesBrian2006-12-151-2/+5
| | | |
| * | | Checkpoint work for new GLSL compiler back-end.Brian2006-12-131-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Among changes: Remove ctx->FragmentProgram._Active Remove _UseTexEnvProgram Move _MaintainTnlProgram, _MaintainTexEnvProgram, _TexEnvProgram and _TnlProgram fields. Remove/disable old GLSL interpreter code.
* | | | use _mesa_alloc_instructions()Brian2007-03-221-3/+2
| |_|/ |/| |
* | | sync up t_vp_build.c brw_vs_tnl.c a bitRoland Scheidegger2007-03-131-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | Bring over the optimizations for fog and normalized spot dir from t_vp_build.c to brw_vs_tnl.c. Likewise, port a fix for point size calc from brw_vs_tnl.c to t_vp_build.c (use ABS(eyez) instead of -eyez). Leave the now differing point size calcs alone though, not sure what's better (it's basically MOV, ABS, MUL, DP3 vs. ABS, MAD, MAD).
* | | fix for bug#10196Xiang, Haihao2007-03-111-1/+8
| |/ |/| | | | | | | Compute half if LOCAL_VIEWER is enabled and the light is a directional source.
* | fix stupid bug in the optimized per-vertex fog generation codeRoland Scheidegger2007-02-141-1/+2
| |
* | optimize generated vertex programs a bitRoland Scheidegger2007-02-091-31/+30
|/ | | | | | | | Use new internal state to avoid per-vertex normalization of static spot direction vector. Use internal state for simpler per-vertex fog computations (MAD instead of SUB/MUL for linear fog, EX2 instead of POW for EXP/EXP2 fog). Simplify point size calc (2 MADs instead of MOV, MUL, MUL, DP3), and while there fix it up (RSQ instead of RCP). All untested...
* Add a size parameter to _mesa_add_unnamed_constant() andBrian Paul2006-11-151-2/+2
| | | | | _mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4). Always 4 for now...
* Fixup more PROGRAM_UNDEFINED problems.Alan Hourihane2006-08-101-2/+2
|
* Some structure renaming. Prefix vertex/fragment-related structs withBrian Paul2006-07-201-8/+8
| | | | "gl_" to match other structs.
* fix broken negateAapo Tahkola2006-06-181-1/+1
|
* prevent run_arb_vertex_program from running tnl programs unless ↵Aapo Tahkola2006-06-061-0/+10
| | | | ctx->_MaintainTnlProgram is set
* Add const qualifiers in a number of places.Brian Paul2006-05-231-2/+2
|
* Release temporaryKeith Whitwell2006-05-051-0/+2
|
* Put color index attribute into the 6th attribute slot.Brian Paul2006-04-251-1/+1
| | | | | | Update a lot of loops, conditionals to use the _TNL_FIRST/LAST_* values instead of specific vertex attributes. Remove the EdgeFlagv function from the GLvertexformat struct.
* silence minor warningsBrian Paul2006-04-131-4/+4
|
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-061-4/+4
|