Mesa (master): glsl: Remove unused mem_ctx field from ir_array_splitting_visitor.

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Apr 19 02:11:32 UTC 2012


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Apr 18 19:10:03 2012 -0700

glsl: Remove unused mem_ctx field from ir_array_splitting_visitor.

Vinson reported that we failed to initialize this, which would lead to
all kinds of crashes if we actually used it.  Since we don't use it,
we may as well just delete the broken code.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/glsl/opt_array_splitting.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp
index f11b516..5cf448b 100644
--- a/src/glsl/opt_array_splitting.cpp
+++ b/src/glsl/opt_array_splitting.cpp
@@ -236,7 +236,6 @@ public:
    variable_entry *get_splitting_entry(ir_variable *var);
 
    exec_list *variable_list;
-   void *mem_ctx;
 };
 
 variable_entry *




More information about the mesa-commit mailing list