From 471bff4c626d6a378e56e21e0c7e5e54ac523b23 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 25 May 2014 01:08:55 -0700 Subject: [PATCH] i965/sf: Drop unnecessary push/pop in copy_z_inv_w. brw_MOV doesn't alter the default instruction state, so this does nothing. Signed-off-by: Kenneth Graunke Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_sf_emit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c index 501453681ff..50aa5c38387 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_emit.c +++ b/src/mesa/drivers/dri/i965/brw_sf_emit.c @@ -312,14 +312,10 @@ static void copy_z_inv_w( struct brw_sf_compile *c ) struct brw_compile *p = &c->func; GLuint i; - brw_push_insn_state(p); - /* Copy both scalars with a single MOV: */ for (i = 0; i < c->nr_verts; i++) brw_MOV(p, vec2(suboffset(c->vert[i], 2)), vec2(c->z[i])); - - brw_pop_insn_state(p); } -- 2.30.2