Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove old functions for generating BRA-based looping. | Brian | 2007-02-07 | 1 | -176/+8 |
| | |||||
* | Use IR_LOOP to represent do-while and for-loops. | Brian | 2007-02-07 | 5 | -85/+128 |
| | | | | Also, start moving high vs. low-level instruction selection into slang_emit.c | ||||
* | BRK and CONT work the same | Brian | 2007-02-06 | 1 | -20/+4 |
| | |||||
* | Implement CONT, improve BRK. | Brian | 2007-02-06 | 4 | -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_LOOP | Brian | 2007-02-06 | 4 | -60/+58 |
| | |||||
* | new_node[0123]() functions | Brian | 2007-02-06 | 1 | -47/+61 |
| | |||||
* | redo IR_IF node, removing IR_ELSE, IR_ENDIF | Brian | 2007-02-06 | 3 | -110/+75 |
| | |||||
* | BRK instruction's BranchTarget field now used for efficiently breaking out ↵ | Brian | 2007-02-05 | 4 | -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. | Brian | 2007-02-05 | 4 | -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 changes | Brian | 2007-02-05 | 1 | -4/+4 |
| | |||||
* | set UseHighLevelInstructions = false for now | Brian | 2007-02-05 | 1 | -1/+1 |
| | |||||
* | Initial implementation of high-level flow-control instructions. | Brian | 2007-02-05 | 5 | -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) | Brian | 2007-02-05 | 2 | -13/+49 |
| | |||||
* | Initial support of loop and subroutine instructions. | Brian | 2007-02-05 | 7 | -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. | Brian | 2007-02-05 | 13 | -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. | Brian | 2007-02-03 | 6 | -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() funcs | Brian | 2007-02-03 | 2 | -262/+263 |
| | |||||
* | remove unused slang_operation fields | Brian | 2007-02-03 | 1 | -2/+0 |
| | |||||
* | added FLUSH_VERTICES() in _mesa_use_program() | Brian | 2007-02-03 | 1 | -0/+8 |
| | |||||
* | Add _NEW_PROGRAM flag to _MESA_NEW_NEED_EYE_COORDS. | Brian | 2007-02-03 | 1 | -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 ↵ | Brian | 2007-02-02 | 1 | -0/+14 |
| | | | | otherwise. | ||||
* | add vec4_texcube to AsmInfo[] | Brian | 2007-02-02 | 1 | -0/+1 |
| | |||||
* | add _slang_multiply_swizzles() | Brian | 2007-02-02 | 1 | -0/+16 |
| | |||||
* | clean-ups | Brian | 2007-02-02 | 1 | -6/+6 |
| | |||||
* | clean-ups | Brian | 2007-02-02 | 1 | -11/+6 |
| | |||||
* | clean-ups | Brian | 2007-02-02 | 1 | -18/+2 |
| | |||||
* | remove slang_builtin_vec4.gc | Brian | 2007-02-02 | 2 | -63/+1 |
| | |||||
* | remove slang_builtin_vec4.gc | Brian | 2007-02-02 | 1 | -216/+0 |
| | |||||
* | remove slang_export.[ch] | Brian | 2007-02-02 | 2 | -569/+0 |
| | |||||
* | reformat, clean-up comments | Brian | 2007-02-02 | 1 | -44/+50 |
| | |||||
* | move _slang_locate_function() | Brian | 2007-02-02 | 3 | -54/+53 |
| | |||||
* | remove multibyte chars | Brian | 2007-02-02 | 1 | -2/+2 |
| | |||||
* | remove unused field | Brian | 2007-02-02 | 1 | -3/+0 |
| | |||||
* | remove slang_asm_string() | Brian | 2007-02-02 | 2 | -160/+0 |
| | |||||
* | s/SLANG_ASSEMBLE_TYPEINFO_H/SLANG_TYPEINFO_H/ | Brian | 2007-02-02 | 1 | -4/+2 |
| | |||||
* | s/slang_assembly_typeinfo/slang_typeinfo/ | Brian | 2007-02-02 | 5 | -45/+45 |
| | |||||
* | s/slang_assembly_name_space/slang_name_space/ | Brian | 2007-02-02 | 6 | -15/+15 |
| | |||||
* | remove slang_library_texsample.[ch] | Brian | 2007-02-02 | 1 | -1/+0 |
| | |||||
* | remove slang_library_texsample.[ch] | Brian | 2007-02-02 | 2 | -216/+0 |
| | |||||
* | rename slang_link2.c slang_link.c | Brian | 2007-02-02 | 1 | -3/+3 |
| | |||||
* | rename slang_link2.c slang_link.c | Brian | 2007-02-02 | 1 | -0/+0 |
| | |||||
* | rename slang_assemble_typeinfo.[ch] to slang_typeinfo.[ch] | Brian | 2007-02-02 | 5 | -5/+5 |
| | |||||
* | rename slang_assemble_typeinfo.[ch] to slang_typeinfo.[ch] | Brian | 2007-02-02 | 2 | -0/+0 |
| | |||||
* | remove more slang assembly-related code | Brian | 2007-02-02 | 5 | -13/+65 |
| | |||||
* | remove more slang assembly-related files, codee | Brian | 2007-02-02 | 2 | -1678/+0 |
| | |||||
* | removed obsolete shader assembly files | Brian | 2007-02-02 | 6 | -1243/+0 |
| | |||||
* | remove more assembly-related code | Brian | 2007-02-02 | 7 | -294/+19 |
| | |||||
* | remove slang_assemble*.c files | Brian | 2007-02-02 | 1 | -4/+0 |
| | |||||
* | move some functions, disable some code in preparation for removing assembly code | Brian | 2007-02-02 | 3 | -5/+177 |
| | |||||
* | fix emit_tex() breakage | Brian | 2007-02-02 | 1 | -0/+2 |
| |