[Mesa-dev] [PATCH 09/10] i965/sf: Drop unnecessary push/pop in copy_z_inv_w.
Kenneth Graunke
kenneth at whitecape.org
Sun May 25 01:08:55 PDT 2014
brw_MOV doesn't alter the default instruction state, so this does
nothing.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
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 109a4d5..a30586f 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);
}
--
1.9.2
More information about the mesa-dev
mailing list