summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2007-02-09optimize per-pixel fog programRoland Scheidegger
use the same internal state as for vertex fog. From the old implemenentation, this changes a SUB+MUL into a MAD for linear fog, and saves a MUL for EXP/EXP2, plus saves a (constant) parameter. While here, fix the broken (forgotten) swizzling. (untested)
2007-02-09optimize generated vertex programs a bitRoland Scheidegger
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...
2007-01-23fixes for C++ warnings/errorsBrian
2007-01-15mesa: Update _Current along Current on fragment program bound.Jerome Glisse
Same as a previously committed patch for vertex program, we update fragment program ptr _Current along the Current one so that _Current can't end up pointing to a no more valid program.
2007-01-14mesa: Update _Current ptr along Current when a new vertex program is bind.Jerome Glisse
On new vertex program bind only the Current ptr where updated to point to the new program; this could lead to _Current pointing to and out of date or even a no more existing program which in turn could lead to a segfault in some driver. To avoid this _Current ptr is updated along Current if _Current where previously pointing to the same program.
2006-12-14Replace __extension__ with LONGSTRING.Brian
2006-11-29call Driver.ProgramStringNotify if a ati_fragment_shader changes and pick up ↵Roland Scheidegger
the change in the r200 driver accordingly.
2006-11-28indent, comments, etcBrian Paul
2006-11-27commentsBrian Paul
2006-11-24call slang_variable_construct() inside slang_variable_scope_grow()Brian Paul
2006-11-24new slang_variable_scope_grow() functionBrian Paul
2006-11-23const correctness, clean-upsBrian Paul
2006-11-23indentBrian Paul
2006-11-23fix several program-related bugs (bug 9136)Brian Paul
2006-11-23s/ource/source/Brian Paul
2006-11-23move commentsBrian Paul
2006-11-23indentBrian Paul
2006-11-23clean-up, commentsBrian Paul
2006-11-22indentBrian Paul
2006-11-22const correctnessBrian Paul
2006-11-22new commentsBrian Paul
2006-11-22clean-up, commentsBrian Paul
2006-11-22reindentBrian Paul
2006-11-22fix commentsBrian Paul
2006-11-21list header files in sources files (Dan Nicholson)Brian Paul
2006-11-20 Committing in .Jouk Jansen
Solve small definition problem for OpenVMS Modified Files: Mesa/src/mesa/shader/descrip.mms
2006-11-18move fix-up code into new slang_fixup_save() functionBrian Paul
2006-11-18commentsBrian Paul
2006-11-18reindentBrian Paul
2006-11-17reindent, doxygen-style commentsBrian Paul
2006-11-17Comment and indent the atom functions.Michal Krol
2006-11-17add STATE_INTERNAL_DRIVER, etc (Rune Petersen)Brian Paul
2006-11-16revert prev check-inBrian Paul
2006-11-16Add a lot of const qualifiers for const-correctness.Brian Paul
New comments, misc clean-ups.
2006-11-16reindentBrian Paul
2006-11-16Initial implementation work for CAL, RET, and BRA instructions for fragmentBrian Paul
programs.
2006-11-16disable yesterday's _mesa_add_named_constant() change for nowBrian Paul
2006-11-16reindent, clean-upBrian Paul
2006-11-15Add a size parameter to _mesa_add_unnamed_constant() andBrian Paul
_mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4). Always 4 for now...
2006-11-15Add new _mesa_lookup_parameter_constant() to search for a GLfloat4 constantBrian Paul
in a parameter list. Use it in _mesa_add_named_constant() and _mesa_add_unnamed_constant() to avoid duplication of identical constants.
2006-11-15reindent, add some commentsBrian Paul
2006-11-15reindentBrian Paul
2006-11-15indent, commentsBrian Paul
2006-11-15s/int/GLboolean/Brian Paul
2006-11-15improved error mesagesBrian Paul
2006-11-15fix casts to silence warningsBrian Paul
2006-11-15#define LONGSTRING __extension__ in imports.h and use it to silence gccBrian Paul
warnings about long string literals.
2006-11-15Comments for operations.Brian Paul
2006-11-05reindentBrian Paul
2006-11-04Fix for glGetVertexAttribfvNV, bug 8883Brian Paul