Mesa (master): mesa: remove gratuitous stores I added in remove_instructions.

Eric Anholt anholt at kemper.freedesktop.org
Tue Dec 29 02:53:01 UTC 2009


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Dec 22 14:43:11 2009 -0800

mesa: remove gratuitous stores I added in remove_instructions.

---

 src/mesa/shader/prog_optimize.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/shader/prog_optimize.c b/src/mesa/shader/prog_optimize.c
index 4fe3512..83d119e 100644
--- a/src/mesa/shader/prog_optimize.c
+++ b/src/mesa/shader/prog_optimize.c
@@ -111,7 +111,6 @@ remove_instructions(struct gl_program *prog, const GLboolean *removeFlags)
    if (removeCount > 0) {
       GLint removeStart = removeEnd - removeCount + 1;
       _mesa_delete_instructions(prog, removeStart, removeCount);
-      removeStart = removeCount = 0; /* reset removal info */
    }
    return totalRemoved;
 }




More information about the mesa-commit mailing list