i965/sf: Use brw_set_default_predicate_control().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Jun 2014 05:46:57 +0000 (22:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 8 Jun 2014 04:30:03 +0000 (21:30 -0700)
This is a bit tidier than poking at p->current directly.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_sf_emit.c

index b526a5c..8e5d33b 100644 (file)
@@ -404,7 +404,7 @@ set_predicate_control_flag_value(struct brw_compile *p,
                                  struct brw_sf_compile *c,
                                  unsigned value)
 {
-   p->current->header.predicate_control = BRW_PREDICATE_NONE;
+   brw_set_default_predicate_control(p, BRW_PREDICATE_NONE);
 
    if (value != 0xff) {
       if (value != c->flag_value) {
@@ -412,7 +412,7 @@ set_predicate_control_flag_value(struct brw_compile *p,
          c->flag_value = value;
       }
 
-      p->current->header.predicate_control = BRW_PREDICATE_NORMAL;
+      brw_set_default_predicate_control(p, BRW_PREDICATE_NORMAL);
    }
 }