case BRW_OPCODE_ENDIF:
if_depth--;
break;
- case BRW_OPCODE_DO:
+ case TOY_OPCODE_DO:
do_depth++;
break;
case BRW_OPCODE_WHILE:
case BRW_OPCODE_PLN: return "pln";
case BRW_OPCODE_MAD: return "mad";
case BRW_OPCODE_NOP: return "nop";
+ case TOY_OPCODE_DO: return "do";
/* TGSI */
case TOY_OPCODE_TGSI_IN: return "tgsi.in";
case TOY_OPCODE_TGSI_CONST: return "tgsi.const";
/* 0..127 are reserved for BRW_OPCODE_x */
TOY_OPCODE_LAST_HW = 127,
+ TOY_OPCODE_DO,
+
/* TGSI register functions */
TOY_OPCODE_TGSI_IN,
TOY_OPCODE_TGSI_CONST,
LIST_FOR_EACH_ENTRY_FROM_REV(inst2, inst->list.prev,
&tc->instructions, list) {
if (inst2->marker) {
- if (inst2->opcode == BRW_OPCODE_DO) {
+ if (inst2->opcode == TOY_OPCODE_DO) {
if (nest_level) {
nest_level--;
}
/* search forward */
LIST_FOR_EACH_ENTRY_FROM(inst2, inst->list.next, &tc->instructions, list) {
if (inst2->marker) {
- if (inst2->opcode == BRW_OPCODE_DO)
+ if (inst2->opcode == TOY_OPCODE_DO)
nest_level++;
continue;
}
inst3 = inst2;
LIST_FOR_EACH_ENTRY_FROM(inst2, &inst3->list, &tc->instructions, list) {
if (inst2->marker) {
- if (inst2->opcode == BRW_OPCODE_DO)
+ if (inst2->opcode == TOY_OPCODE_DO)
nest_level++;
continue;
}
struct toy_inst *inst2;
int loop_level = 1;
- assert(inst->opcode == BRW_OPCODE_DO);
+ assert(inst->opcode == TOY_OPCODE_DO);
do_pc = pc;
while_pc = pc + 1;
LIST_FOR_EACH_ENTRY_FROM(inst2, tc->iter_next,
&tc->instructions, list) {
if (inst2->marker) {
- assert(inst->opcode == BRW_OPCODE_DO);
+ assert(inst->opcode == TOY_OPCODE_DO);
loop_level++;
continue;
}
{
struct toy_inst *inst;
- inst = tc_add0(tc, BRW_OPCODE_DO);
+ inst = tc_add0(tc, TOY_OPCODE_DO);
/* this is just a marker */
inst->marker = true;
}