[Mesa-dev] [PATCH v2 1/7] glsl: avoid treating fb fetches as output reads to be lowered
Ilia Mirkin
imirkin at alum.mit.edu
Sat Jan 14 21:28:37 UTC 2017
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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);
--
2.10.2
More information about the mesa-dev
mailing list