Mesa (master): glsl: avoid treating fb fetches as output reads to be lowered
Ilia Mirkin
imirkin at kemper.freedesktop.org
Tue Jan 17 02:16:08 UTC 2017
Module: Mesa
Branch: master
Commit: 2dd4cdeb4ee7b93d57d317175e3e3483dbf82aaf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2dd4cdeb4ee7b93d57d317175e3e3483dbf82aaf
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Jan 1 23:00:46 2017 -0500
glsl: avoid treating fb fetches as output reads to be lowered
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/compiler/glsl/lower_output_reads.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/lower_output_reads.cpp b/src/compiler/glsl/lower_output_reads.cpp
index 851078b..bd3accb 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);
More information about the mesa-commit
mailing list