Mesa (master): i965: Remove dead assignment

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Mar 14 20:04:04 UTC 2011


Module: Mesa
Branch: master
Commit: e0cbb154f2cb62e3ae0354dc4f14185dbad2bef2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0cbb154f2cb62e3ae0354dc4f14185dbad2bef2

Author: Chad Versace <chad.versace at intel.com>
Date:   Sat Mar 12 17:49:35 2011 -0800

i965: Remove dead assignment

The assignment on line 368, `tex_swizzles[i] = SWIZZLE_NOOP`, is rendered
dead by the reassignment on line 392.

Signed-off-by: Chad Versace <chad.versace at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_wm.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index ee8212f..390b3d6 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -364,8 +364,6 @@ static void brw_wm_populate_key( struct brw_context *brw,
 	    SWIZZLE_NIL
 	 };
 
-	 key->tex_swizzles[i] = SWIZZLE_NOOP;
-
 	 /* GL_DEPTH_TEXTURE_MODE is normally handled through
 	  * brw_wm_surface_state, but it applies to shadow compares as
 	  * well and our shadow compares always return the result in




More information about the mesa-commit mailing list