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 <kenneth@whitecape.org> Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
@@ -2268,6 +2268,9 @@ assign_varying_locations(struct gl_context *ctx,
|
|||||||
return false;
|
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) {
|
if (matched_candidate->toplevel_var->data.is_unmatched_generic_inout) {
|
||||||
matched_candidate->toplevel_var->data.is_xfb_only = 1;
|
matched_candidate->toplevel_var->data.is_xfb_only = 1;
|
||||||
matches.record(matched_candidate->toplevel_var, NULL);
|
matches.record(matched_candidate->toplevel_var, NULL);
|
||||||
|
Reference in New Issue
Block a user