From: Kenneth Graunke Date: Sun, 25 May 2014 08:08:55 +0000 (-0700) Subject: i965/sf: Drop unnecessary push/pop in copy_z_inv_w. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=471bff4c626d6a378e56e21e0c7e5e54ac523b23;p=mesa.git 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 --- 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); }