Module: Mesa
Branch: master
Commit: 9249af17b857e8d9a359b4cd04e9393aca517e9c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9249af17b857e8d9a359b4cd04e9393aca517e9c

Author: Zhenyu Wang <[email protected]>
Date:   Wed Nov 10 08:09:45 2010 -0500

i965: fix dest type of 'endif' on sandybridge

That should also be immediate value for type W.

---

 src/mesa/drivers/dri/i965/brw_eu_emit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c 
b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 9cb99a2..9cb941d 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -969,7 +969,7 @@ void brw_ENDIF(struct brw_compile *p,
         brw_set_src0(insn, retype(brw_vec4_grf(0,0), BRW_REGISTER_TYPE_UD));
         brw_set_src1(insn, brw_imm_d(0x0));
       } else {
-        brw_set_dest(insn, retype(brw_vec4_grf(0,0), BRW_REGISTER_TYPE_W));
+        brw_set_dest(insn, brw_imm_w(0));
         brw_set_src0(insn, retype(brw_null_reg(), BRW_REGISTER_TYPE_D));
         brw_set_src1(insn, retype(brw_null_reg(), BRW_REGISTER_TYPE_D));
       }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to