Mesa (master): llvmpipe: remove redundant tgsi_dup_tokens() call

Brian Paul brianp at kemper.freedesktop.org
Thu Sep 9 16:06:56 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Sep  9 10:03:46 2010 -0600

llvmpipe: remove redundant tgsi_dup_tokens() call

We were calling this twice so the first allocation was orphaned/leaked.

---

 src/gallium/drivers/llvmpipe/lp_state_fs.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 8f3976c..e17bfb4 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -901,9 +901,6 @@ llvmpipe_create_fs_state(struct pipe_context *pipe,
       debug_printf("\n");
    }
 
-   /* Keep a copy of the tokens in shader->base.tokens */
-   shader->base.tokens = tgsi_dup_tokens(templ->tokens);
-
    return shader;
 }
 




More information about the mesa-commit mailing list