summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* _mesa_ExecuteProgramNV is now a no-opBrian2007-02-221-2/+1
|
* added CallStack, StackDepthBrian2007-02-221-0/+3
|
* remove unneeded #includes, misc clean-upBrian2007-02-221-21/+13
|
* reorg/clean-up/indentBrian2007-02-221-413/+471
|
* start implementing conditions, branchingBrian2007-02-222-2/+123
|
* get rid of some unused slang_variable fieldsBrian2007-02-224-12/+3
|
* Replace slang_allocate_storage() with simpler _slang_attach_storage()Brian2007-02-221-73/+31
|
* updated debug codeBrian2007-02-221-210/+18
|
* Undo some STATE_POINT/FOG changes. Max length of state token array is now 5.Brian2007-02-226-64/+46
|
* merge fix: add STATE_FOG_PARAMS_OPTIMIZED, STATE_SPOT_DIR_NORMALIZEDBrian2007-02-221-0/+2
|
* fix negative indentation problemBrian2007-02-221-2/+1
|
* Merge branch 'origin' into glsl-compiler-1Brian2007-02-222-57/+33
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * optimize per-pixel fog programRoland Scheidegger2007-02-092-50/+31
| | | | | | | | | | | | | | 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)
| * optimize generated vertex programs a bitRoland Scheidegger2007-02-093-1/+33
| | | | | | | | | | | | | | | | 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...
| * fixes for C++ warnings/errorsBrian2007-01-233-4/+4
| |
| * mesa: Update _Current along Current on fragment program bound.Jerome Glisse2007-01-151-0/+2
| | | | | | | | | | | | | | 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.
| * mesa: Update _Current ptr along Current when a new vertex program is bind.Jerome Glisse2007-01-141-1/+3
| | | | | | | | | | | | | | | | | | 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.
| * Replace __extension__ with LONGSTRING.Brian2006-12-141-1/+1
| |
* | disable debugBrian2007-02-211-1/+1
| |
* | remove unneeded #includesBrian2007-02-211-5/+0
| |
* | fix copy&paste errorsBrian2007-02-211-4/+5
| |
* | more minor changes to STATE_ indexingBrian2007-02-213-46/+69
| |
* | remove dead codeBrian2007-02-211-18/+2
| |
* | Reimplement the _slang_alloc_statevar() function.Brian2007-02-212-335/+274
| | | | | | | | | | | | After several tries at making a table-based system for examining pre-defined uniforms to find statevar indexes, give up and do it the simple way (lots of strcmp() calls). Not terribly elegant, but perfectly functional.
* | adjustments to STATE_ token layout/format so token[1] is always the array indexBrian2007-02-216-111/+151
| |
* | checkpoint overhaul of pre-defined uniform codeBrian2007-02-214-12/+217
| |
* | clean-up, move IR_ELEMENT codeBrian2007-02-201-30/+36
| |
* | alloc IR_FIELD's Storage in codegen, like IR_ELEMENTBrian2007-02-202-4/+9
| |
* | work on struct/array handlingBrian2007-02-201-14/+17
| |
* | forgot to return length in parse_array_len()Brian2007-02-201-0/+2
| |
* | implement support for pre-defined uniform structs (state vars)Brian2007-02-204-64/+327
| |
* | added SWIZZLE_XXXX, SWIZZLE_YYYY, etcBrian2007-02-201-0/+5
| |
* | Merge branch 'glsl-compiler-1' of ↵Brian2007-02-2029-1601/+2070
|\ \ | | | | | | | | | git+ssh://[email protected]/git/mesa/mesa into glsl-compiler-1
| * | s/PROG_PRINT_ARB/PROG_PRINT_DEBUG/Brian2007-02-171-1/+1
| | |
| * | Lots of changes to prog_print.c code.Brian2007-02-172-43/+333
| | | | | | | | | | | | Mainly, allow printing programs in either ARB, NV or "debug" formats.
| * | remove dead codeBrian2007-02-161-21/+0
| | |
| * | s/_slang_link2/_slang_link/Brian2007-02-163-9/+9
| | |
| * | change all enum tokens to uppercaseBrian2007-02-1616-817/+819
| | |
| * | abort upon errors (temporary)Brian2007-02-161-1/+4
| | |
| * | added a commentBrian2007-02-161-0/+3
| | |
| * | Allow int->float argument conversion in _slang_locate_function().Brian2007-02-161-7/+37
| | |
| * | implement IR_I_TO_FBrian2007-02-161-1/+6
| | |
| * | remove dead codeBrian2007-02-131-3/+3
| | |
| * | move GL_MESA_program_debug funcs to prog_debug.cBrian2007-02-092-261/+6
| | |
| * | Move experimental GL_MESA_program_debug functions into new file.Brian2007-02-092-0/+309
| | |
| * | comments, etcBrian2007-02-091-3/+19
| | |
| * | re-enable free'ing of IR treesBrian2007-02-091-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
| | |
| * | Check for constant-valued while/do loop conditions.Brian2007-02-081-8/+58
| | | | | | | | | | | | | | | | | | | | | Allows us to: 1. avoid generating constant-valued BRK test for while(1).. 2. discard entire loop for while(0). 3. detection infinite loops at compile-time.