Mesa (master): i965: Clean up double initialization of dst_flags from a rebase resolve.

Eric Anholt anholt at kemper.freedesktop.org
Sat Dec 26 11:18:58 PST 2009


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Dec 22 17:18:03 2009 -0800

i965: Clean up double initialization of dst_flags from a rebase resolve.

Caught by clang.

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
index f294387..4364652 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
@@ -1877,10 +1877,6 @@ static void brw_wm_emit_glsl(struct brw_context *brw, struct brw_wm_compile *c)
 	else
 	    brw_set_conditionalmod(p, BRW_CONDITIONAL_NONE);
 
-	dst_flags = inst->DstReg.WriteMask;
-	if (inst->SaturateMode == SATURATE_ZERO_ONE)
-	    dst_flags |= SATURATE;
-
 	switch (inst->Opcode) {
 	    case WM_PIXELXY:
 		emit_pixel_xy(c, dst, dst_flags);



More information about the mesa-commit mailing list