summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* remove slang_builtin_vec4.gcBrian2007-02-021-216/+0
|
* remove slang_export.[ch]Brian2007-02-022-569/+0
|
* reformat, clean-up commentsBrian2007-02-021-44/+50
|
* move _slang_locate_function()Brian2007-02-023-54/+53
|
* remove multibyte charsBrian2007-02-021-2/+2
|
* remove unused fieldBrian2007-02-021-3/+0
|
* remove slang_asm_string()Brian2007-02-022-160/+0
|
* s/SLANG_ASSEMBLE_TYPEINFO_H/SLANG_TYPEINFO_H/Brian2007-02-021-4/+2
|
* s/slang_assembly_typeinfo/slang_typeinfo/Brian2007-02-025-45/+45
|
* s/slang_assembly_name_space/slang_name_space/Brian2007-02-026-15/+15
|
* remove slang_library_texsample.[ch]Brian2007-02-021-1/+0
|
* remove slang_library_texsample.[ch]Brian2007-02-022-216/+0
|