From: Nicolai Hähnle Date: Thu, 17 Nov 2016 20:53:35 +0000 (+0100) Subject: glsl/lower_output_reads: remove unused mem_ctx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e11290ef5ffcf1d792ad7409bf726dd556e4d87;p=mesa.git glsl/lower_output_reads: remove unused mem_ctx Reviewed-by: Edward O'Callaghan Reviewed-by: Marek Olšák --- diff --git a/src/compiler/glsl/lower_output_reads.cpp b/src/compiler/glsl/lower_output_reads.cpp index b0045f0c8fb..851078bf2d2 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