aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/shader/toy_legalize.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-04-12 02:26:46 +0800
committerChia-I Wu <[email protected]>2014-04-14 20:45:03 +0800
commitad39b991ce34d8af11589c78102873d8c28b1682 (patch)
treedfffe3c2ddc2dc0996c0c0013018b02ac0230af1 /src/gallium/drivers/ilo/shader/toy_legalize.c
parent36fb36aa36d8933fef04c1bdaed3ccc9b5108908 (diff)
ilo: add TOY_OPCODE_DO
We used to give BRW_OPCODE_DO a special meaning, while we should have used TOY_OPCODE_DO.
Diffstat (limited to 'src/gallium/drivers/ilo/shader/toy_legalize.c')
-rw-r--r--src/gallium/drivers/ilo/shader/toy_legalize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/shader/toy_legalize.c b/src/gallium/drivers/ilo/shader/toy_legalize.c
index 19aab4c7952..2339b7d3b8e 100644
--- a/src/gallium/drivers/ilo/shader/toy_legalize.c
+++ b/src/gallium/drivers/ilo/shader/toy_legalize.c
@@ -315,7 +315,7 @@ patch_while_jip(struct toy_compiler *tc, struct toy_inst *inst)
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--;
}
@@ -455,7 +455,7 @@ patch_break_continue_jip(struct toy_compiler *tc, struct toy_inst *inst)
/* 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;
}
@@ -474,7 +474,7 @@ patch_break_continue_jip(struct toy_compiler *tc, struct toy_inst *inst)
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;
}