summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* add prog_debug.cBrian2007-02-091-0/+1
|
* 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.
* optimize conditional breaks/continuesBrian2007-02-082-23/+87
|
* cont at top of loop, little clean-upsBrian2007-02-081-5/+12
|
* remove some cruftBrian2007-02-081-4/+1
|
* fix broken BRA for return stmtsBrian2007-02-082-3/+4
|
* consolidate BRA with BRK, CONTBrian2007-02-081-7/+3
|
* change BranchTarget to GLintBrian2007-02-081-1/+1
|
* Use conditional break in for/do/while loops.Brian2007-02-082-62/+88
|
* Simplify code with eval_condition(). Implement conditional BRK.Brian2007-02-081-69/+56
|
* remove old loop break/cont stuffBrian2007-02-072-16/+4
|
* high vs. low level if/then/else code emitBrian2007-02-071-77/+112
|
* s/%f/%g/Brian2007-02-071-1/+1
|
* Remove old functions for generating BRA-based looping.Brian2007-02-071-176/+8
|
* Use IR_LOOP to represent do-while and for-loops.Brian2007-02-075-85/+128
| | | | Also, start moving high vs. low-level instruction selection into slang_emit.c
* BRK and CONT work the sameBrian2007-02-061-20/+4
|
* Implement CONT, improve BRK.Brian2007-02-064-18/+74
| | | | | | | IR_LOOP's BranchNode ptr is the head of a linked list of CONT and BRK nodes. After emitting loop, walk over the linked list, filling in the CONT/BRK instruction's BranchTarget field (location of the ENDLOOP instruction, or one past).
* replace IR_BEGIN_LOOP/IR_END_LOOP with IR_LOOPBrian2007-02-064-60/+58
|
* new_node[0123]() functionsBrian2007-02-061-47/+61
|
* redo IR_IF node, removing IR_ELSE, IR_ENDIFBrian2007-02-063-110/+75
|
* BRK instruction's BranchTarget field now used for efficiently breaking out ↵Brian2007-02-054-29/+123
| | | | | | | | of loops. BRK's BranchTarget field actually points to the top of the loop, not the bottom, since we don't know the later's location yet. In the interpreter, basically do an indirect jump to update the PC.
* Use IR node's BranchNode field for IF/ELSE/ENDIF instructions.Brian2007-02-054-67/+73
| | | | | | | This allows us to back-patch the IF/ELSE instruction's BranchTarget field to point to the location of the ELSE/ENDIF instructions. No longer have to search for ELSE/ENDIF in the interpreter. Also makes it trivial to translate IF/ELSE instructions into conditional/unconditional BRA instructions.
* minor formatting changesBrian2007-02-051-4/+4
|
* set UseHighLevelInstructions = false for nowBrian2007-02-051-1/+1
|
* Initial implementation of high-level flow-control instructions.Brian2007-02-055-13/+189
| | | | | | 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.
* indentation for program instructions (if/else, loops)Brian2007-02-052-13/+49
|
* Initial support of loop and subroutine instructions.Brian2007-02-057-11/+83
| | | | | New high-level flow-control instructions, both at IR level and GPU instructions for looping and subroutines.
* Merge SWvertex texcoord and varying fields into attrib[] array field.Brian2007-02-0513-565/+372
| | | | | Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
* Add literal_size field to slang_operation.Brian2007-02-036-10/+85
| | | | | | Used to track the number of components in a float/int/bool literal. Helps with some typechecking things. Fixes problems with calls such as "distance(v2, vec2(1.0, 2.0))"
* minor tweaks to distance() funcsBrian2007-02-032-262/+263
|
* remove unused slang_operation fieldsBrian2007-02-031-2/+0
|
* added FLUSH_VERTICES() in _mesa_use_program()Brian2007-02-031-0/+8
|
* Add _NEW_PROGRAM flag to _MESA_NEW_NEED_EYE_COORDS.Brian2007-02-031-0/+1
| | | | | This fixes a segfault in the texgen code that can occur after we've disabled a vertex program.
* Only glUniform1i() can be used to set sampler uniforms. Generate error ↵Brian2007-02-021-0/+14
| | | | otherwise.
* add vec4_texcube to AsmInfo[]Brian2007-02-021-0/+1
|
* add _slang_multiply_swizzles()Brian2007-02-021-0/+16
|
* clean-upsBrian2007-02-021-6/+6
|
* clean-upsBrian2007-02-021-11/+6
|
* clean-upsBrian2007-02-021-18/+2
|
* remove slang_builtin_vec4.gcBrian2007-02-022-63/+1
|