From: Ilia Mirkin Date: Mon, 2 Jan 2017 04:00:46 +0000 (-0500) Subject: glsl: avoid treating fb fetches as output reads to be lowered X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2dd4cdeb4ee7b93d57d317175e3e3483dbf82aaf;p=mesa.git glsl: avoid treating fb fetches as output reads to be lowered Signed-off-by: Ilia Mirkin Reviewed-by: Nicolai Hähnle --- diff --git a/src/compiler/glsl/lower_output_reads.cpp b/src/compiler/glsl/lower_output_reads.cpp index 851078bf2d2..bd3accb3dda 100644 --- a/src/compiler/glsl/lower_output_reads.cpp +++ b/src/compiler/glsl/lower_output_reads.cpp @@ -90,7 +90,7 @@ output_read_remover::~output_read_remover() ir_visitor_status output_read_remover::visit(ir_dereference_variable *ir) { - if (ir->var->data.mode != ir_var_shader_out) + if (ir->var->data.mode != ir_var_shader_out || ir->var->data.fb_fetch_output) return visit_continue; hash_entry *entry = _mesa_hash_table_search(replacements, ir->var);