From 4244bea8591d13a0f03a329bcd21a57587a68230 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 11 Sep 2017 16:19:22 +1000 Subject: nir: add always_active_io to nir variable Will be used in nir link pass to decided if we can remove a varying or not. Reviewed-by: Kenneth Graunke Reviewed-by: Eduardo Lima Mitev --- src/compiler/nir/nir.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/compiler/nir') diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 8330e6d7ce7..fab2110f619 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -191,6 +191,16 @@ typedef struct nir_variable { unsigned patch:1; unsigned invariant:1; + /** + * When separate shader programs are enabled, only input/outputs between + * the stages of a multi-stage separate program can be safely removed + * from the shader interface. Other input/outputs must remains active. + * + * This is also used to make sure xfb varyings that are unused by the + * fragment shader are not removed. + */ + unsigned always_active_io:1; + /** * Interpolation mode for shader inputs / outputs * -- cgit v1.2.3