summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_varyings.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-09-12 13:18:29 +1000
committerTimothy Arceri <[email protected]>2017-09-26 22:37:02 +1000
commit3529f8213ff566d788b7984536abf359fcd89524 (patch)
tree3c66e2bb812caf02bf18f97d463b95a59bf55ef0 /src/compiler/glsl/link_varyings.cpp
parent4244bea8591d13a0f03a329bcd21a57587a68230 (diff)
glsl: mark xfb varyings as always active
This will be used by the nir linking pass so that we don't remove otherwise unused varyings. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.cpp')
-rw-r--r--src/compiler/glsl/link_varyings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp
index 528506fd0eb..656bf79ca9d 100644
--- a/src/compiler/glsl/link_varyings.cpp
+++ b/src/compiler/glsl/link_varyings.cpp
@@ -2268,6 +2268,9 @@ assign_varying_locations(struct gl_context *ctx,
return false;
}
+ /* Mark xfb varyings as always active */
+ matched_candidate->toplevel_var->data.always_active_io = 1;
+
if (matched_candidate->toplevel_var->data.is_unmatched_generic_inout) {
matched_candidate->toplevel_var->data.is_xfb_only = 1;
matches.record(matched_candidate->toplevel_var, NULL);