summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-08-08 22:05:29 +0200
committerMarek Olšák <[email protected]>2016-08-08 23:24:20 +0200
commit1ebf3c4b6741a3a3a9d46048abe3996cb9a86334 (patch)
tree686da1797a3a08c90e42266e5e9e6b6dc43b28f7
parent3723e9826f3662ed8ff160f8f24a9b7ee2617db9 (diff)
Revert "glsl: don't try to lower non-gl builtins as if they were gl_FragData"
This reverts commit a37e46323c7e18bec4160f2f66847c10b7041dc1. It broke the game Overlord such that it hung a GCN GNU. While I don't know how the hang happened because of its randomness and gfx corruption precedes it, many of the shaders contain this: out vec4 FragData[gl_MaxDrawBuffers];
-rw-r--r--src/compiler/glsl/opt_dead_builtin_varyings.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/glsl/opt_dead_builtin_varyings.cpp b/src/compiler/glsl/opt_dead_builtin_varyings.cpp
index 900a09697bb..33648d72cbf 100644
--- a/src/compiler/glsl/opt_dead_builtin_varyings.cpp
+++ b/src/compiler/glsl/opt_dead_builtin_varyings.cpp
@@ -85,8 +85,7 @@ public:
{
ir_variable *var = ir->variable_referenced();
- if (!var || var->data.mode != this->mode || !var->type->is_array() ||
- !is_gl_identifier(var->name))
+ if (!var || var->data.mode != this->mode || !var->type->is_array())
return visit_continue;
/* Only match gl_FragData[], not gl_SecondaryFragDataEXT[] */