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>
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) {
c->flag_value = value;
}
- p->current->header.predicate_control = BRW_PREDICATE_NORMAL;
+ brw_set_default_predicate_control(p, BRW_PREDICATE_NORMAL);
}
}