Mesa (master): i965/sf: Drop unnecessary push/pop in copy_z_inv_w.
Kenneth Graunke
kwg at kemper.freedesktop.org
Tue May 27 21:22:17 UTC 2014
Module: Mesa
Branch: master
Commit: 471bff4c626d6a378e56e21e0c7e5e54ac523b23
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=471bff4c626d6a378e56e21e0c7e5e54ac523b23
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun May 25 01:08:55 2014 -0700
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 <kenneth at whitecape.org>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
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 5014536..50aa5c3 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);
}
More information about the mesa-commit
mailing list