From: Zhenyu Wang Date: Wed, 10 Nov 2010 13:09:45 +0000 (-0500) Subject: i965: fix dest type of 'endif' on sandybridge X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9249af17b857e8d9a359b4cd04e9393aca517e9c;p=mesa.git i965: fix dest type of 'endif' on sandybridge That should also be immediate value for type W. --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 9cb99a2b999..9cb941dacfd 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)); }