summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* rename slang_link2.c slang_link.cBrian2007-02-021-3/+3
|
* rename slang_link2.c slang_link.cBrian2007-02-021-0/+0
|
* rename slang_assemble_typeinfo.[ch] to slang_typeinfo.[ch]Brian2007-02-025-5/+5
|
* rename slang_assemble_typeinfo.[ch] to slang_typeinfo.[ch]Brian2007-02-022-0/+0
|
* remove more slang assembly-related codeBrian2007-02-025-13/+65
|
* remove more slang assembly-related files, codeeBrian2007-02-022-1678/+0
|
* removed obsolete shader assembly filesBrian2007-02-026-1243/+0
|
* remove more assembly-related codeBrian2007-02-027-294/+19
|
* remove slang_assemble*.c filesBrian2007-02-021-4/+0
|
* move some functions, disable some code in preparation for removing assembly codeBrian2007-02-023-5/+177
|
* fix emit_tex() breakageBrian2007-02-021-0/+2
|