summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-12-19 07:08:13 -0500
committerZack Rusin <zack@tungstengraphics.com>2007-12-19 07:11:16 -0500
commitbc1fc7d6739476748c902a79dcf1676b0ddc17fd (patch)
treef43d171e2f341bcd1651183fe50f17816e44e949
parenta0ce71b51dd7aac4e219a023bae6fc9771d64c03 (diff)
i965: emit fb write on RET for now (until we get END back)
-rw-r--r--src/mesa/pipe/i965simple/brw_wm_glsl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/i965simple/brw_wm_glsl.c b/src/mesa/pipe/i965simple/brw_wm_glsl.c
index 37d5b216b2..f4b5c13c06 100644
--- a/src/mesa/pipe/i965simple/brw_wm_glsl.c
+++ b/src/mesa/pipe/i965simple/brw_wm_glsl.c
@@ -935,6 +935,7 @@ static void brw_wm_emit_instruction( struct brw_wm_compile *c,
break;
case TGSI_OPCODE_RET:
+#if 0
brw_push_insn_state(p);
brw_set_mask_control(p, BRW_MASK_DISABLE);
brw_ADD(p,
@@ -944,6 +945,9 @@ static void brw_wm_emit_instruction( struct brw_wm_compile *c,
brw_MOV(p, brw_ip_reg(), deref_1ud(c->stack_index, 0));
brw_set_access_mode(p, BRW_ALIGN_16);
brw_pop_insn_state(p);
+#else
+ emit_fb_write(c, inst);
+#endif
break;
case TGSI_OPCODE_LOOP: