[Mesa-dev] [PATCH 1/2] i965/sf: Use brw_set_default_predicate_control().
Kenneth Graunke
kenneth at whitecape.org
Fri Jun 6 00:23:19 PDT 2014
This is a bit tidier than poking at p->current directly.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_sf_emit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Piglit tested on Crestline and Haswell - no regressions.
I diffed assembly for two Piglit runs on Crestline - no changes.
diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c
index b526a5c..8e5d33b 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);
}
}
--
2.0.0
More information about the mesa-dev
mailing list