aL placeholder until loops are implemented.
This commit is contained in:
parent
51a8002629
commit
083f936bbc
|
@ -282,6 +282,8 @@ void main() {
|
||||||
EmitSource(" bool p0 = false;\n");
|
EmitSource(" bool p0 = false;\n");
|
||||||
// Address register when using absolute addressing.
|
// Address register when using absolute addressing.
|
||||||
EmitSource(" int a0 = 0;\n");
|
EmitSource(" int a0 = 0;\n");
|
||||||
|
// TODO(benvanik): remove when loops are implemented.
|
||||||
|
EmitSource(" int aL = 0;\n"); // Hack!
|
||||||
// Temps for source register values.
|
// Temps for source register values.
|
||||||
EmitSource(" vec4 src0;\n");
|
EmitSource(" vec4 src0;\n");
|
||||||
EmitSource(" vec4 src1;\n");
|
EmitSource(" vec4 src1;\n");
|
||||||
|
|
|
@ -162,6 +162,8 @@ void ParsedLoopStartInstruction::Disassemble(StringBuffer* out) const {
|
||||||
void ParsedLoopEndInstruction::Disassemble(StringBuffer* out) const {
|
void ParsedLoopEndInstruction::Disassemble(StringBuffer* out) const {
|
||||||
if (is_predicated_break) {
|
if (is_predicated_break) {
|
||||||
out->Append(predicate_condition ? " (p0) " : "(!p0) ");
|
out->Append(predicate_condition ? " (p0) " : "(!p0) ");
|
||||||
|
} else {
|
||||||
|
out->Append(" ");
|
||||||
}
|
}
|
||||||
out->AppendFormat("endloop i%u, L%u", loop_constant_index, loop_body_address);
|
out->AppendFormat("endloop i%u, L%u", loop_constant_index, loop_body_address);
|
||||||
out->Append('\n');
|
out->Append('\n');
|
||||||
|
|
Loading…
Reference in New Issue