summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-11-17 21:53:35 +0100
committerNicolai Hähnle <[email protected]>2016-11-21 08:21:52 +0100
commit0e11290ef5ffcf1d792ad7409bf726dd556e4d87 (patch)
tree7c14de932fd34f83047cb6900d15d43447f284f3 /src/compiler/glsl
parenta3b98edf6f29aecc33d15a3df0d81a340ea3ebe5 (diff)
glsl/lower_output_reads: remove unused mem_ctx
Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/lower_output_reads.cpp4
1 files changed, 0 insertions, 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