i965: Drop unnecessary brw_set_conditionalmod() before brw_CMP().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 28 May 2014 07:02:18 +0000 (00:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Jun 2014 22:09:26 +0000 (15:09 -0700)
brw_CMP already takes a conditional modifier as a parameter, and sets it
accordingly.  brw_set_conditionalmod() also makes everything after the
next instruction predicated, but we don't need that: we always emit an
IF instruction after load_clip_distance(), and that's already
predicated.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_clip_tri.c

index 9edfa2e176cd5623b282c63a04dba7544c9c00cc..289f4ccd82a76b759f08dff0a1587be66f7aad7f 100644 (file)
@@ -252,7 +252,6 @@ load_clip_distance(struct brw_clip_compile *c, struct brw_indirect vtx,
    }
    brw_ENDIF(p);
 
-   brw_set_conditionalmod(p, cond);
    brw_CMP(p, brw_null_reg(), cond, vec1(dst), brw_imm_f(0.0f));
 }