summaryrefslogtreecommitdiff
path: root/src/mesa/shader/prog_print.c
AgeCommit message (Collapse)Author
2007-02-07s/%f/%g/Brian
2007-02-06Implement CONT, improve BRK.Brian
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).
2007-02-05BRK instruction's BranchTarget field now used for efficiently breaking out ↵Brian
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.
2007-02-05Use IR node's BranchNode field for IF/ELSE/ENDIF instructions.Brian
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.
2007-02-05minor formatting changesBrian
2007-02-05indentation for program instructions (if/else, loops)Brian
2007-01-31Overhaul handling of writemasks/swizzling. This fixes two problem cases:Brian
vec2 v; v.x = v.y = 1.0; // chained assignment vec4 v; v.zx = vec2(a,b); // swizzled writemask
2007-01-20Initial implementation of OPCODE_IF/ELSE/ENDIF instructions.Brian
2007-01-05added PROGRAM_SAMPLERBrian
2007-01-04minor formatting fixBrian
2006-12-20added _mesa_print_parameter_list()Brian
2006-12-18Check for inst->CondUpdate, print .C suffix.Brian
2006-12-16print BRA instructionsBrian
2006-12-15fix double-printing of comment infoBrian
2006-12-14remove unneded includesBrian
2006-12-14Move some code from prog_print.c to prog_instruction.cBrian
2006-12-14Split the program.[ch] files into several new files.Brian