From 0e11290ef5ffcf1d792ad7409bf726dd556e4d87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 17 Nov 2016 21:53:35 +0100 Subject: [PATCH] glsl/lower_output_reads: remove unused mem_ctx MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Edward O'Callaghan Reviewed-by: Marek Olšák --- 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 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 -- 2.30.2