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

Author: Nicolai Hähnle <nicolai.haeh...@amd.com>
Date:   Thu Nov 17 21:53:35 2016 +0100

glsl/lower_output_reads: remove unused mem_ctx

Reviewed-by: Edward O'Callaghan <funfunc...@folklore1984.net>
Reviewed-by: Marek Olšák <marek.ol...@amd.com>

---

 src/compiler/glsl/lower_output_reads.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/compiler/glsl/lower_output_reads.cpp 
b/src/compiler/glsl/lower_output_reads.cpp
index b0045f0..851078b 100644
--- a/src/compiler/glsl/lower_output_reads.cpp
+++ b/src/compiler/glsl/lower_output_reads.cpp
@@ -47,8 +47,6 @@ protected:
     */
    hash_table *replacements;
 
-   void *mem_ctx;
-
    unsigned stage;
 public:
    output_read_remover(unsigned stage);
@@ -80,7 +78,6 @@ hash_table_var_hash(const void *key)
 output_read_remover::output_read_remover(unsigned stage)
 {
    this->stage = stage;
-   mem_ctx = ralloc_context(NULL);
    replacements = _mesa_hash_table_create(NULL, hash_table_var_hash,
                                           _mesa_key_pointer_equal);
 }
@@ -88,7 +85,6 @@ output_read_remover::output_read_remover(unsigned stage)
 output_read_remover::~output_read_remover()
 {
    _mesa_hash_table_destroy(replacements, NULL);
-   ralloc_free(mem_ctx);
 }
 
 ir_visitor_status

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to