i965: emit fb write on RET for now (until we get END back)
authorZack Rusin <zack@tungstengraphics.com>
Wed, 19 Dec 2007 12:08:13 +0000 (07:08 -0500)
committerZack Rusin <zack@tungstengraphics.com>
Wed, 19 Dec 2007 12:11:16 +0000 (07:11 -0500)
src/mesa/pipe/i965simple/brw_wm_glsl.c

index 37d5b216b262764f411173d560360e191191a821..f4b5c13c069897a0d940c2b25073587e1ee0c3ff 100644 (file)
@@ -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: