summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-06-05 22:46:57 -0700
committerKenneth Graunke <[email protected]>2014-06-07 21:30:03 -0700
commit8a314a784c5e3c43d745aa27d7d518e83a2e81db (patch)
tree3044faea877c7c03f785cf7f9dae9aa49db23fbe /src/mesa/drivers/dri/i965
parentbd7dd3ed06ea9e88a9f6e18f45338bd99fde86f1 (diff)
i965/sf: Use brw_set_default_predicate_control().
This is a bit tidier than poking at p->current directly. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_sf_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c
index b526a5c149d..8e5d33bff99 100644
--- a/src/mesa/drivers/dri/i965/brw_sf_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_sf_emit.c
@@ -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);
}
}