i965/sf: Drop useless push/pop state from flag register mashing code.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 25 May 2014 08:08:51 +0000 (01:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 27 May 2014 20:46:01 +0000 (13:46 -0700)
There's no point in pushing and popping the default state; the code
between the two stack operations doesn't alter anything.

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

index 95bffc4..e854a79 100644 (file)
@@ -98,10 +98,8 @@ void brw_set_predicate_control_flag_value( struct brw_compile *p, unsigned value
 
    if (value != 0xff) {
       if (value != p->flag_value) {
-        brw_push_insn_state(p);
         brw_MOV(p, brw_flag_reg(0, 0), brw_imm_uw(value));
         p->flag_value = value;
-        brw_pop_insn_state(p);
       }
 
       p->current->header.predicate_control = BRW_PREDICATE_NORMAL;