[Mesa-dev] [PATCH 2/3] nir: make use of does_varying_match() helper
Timothy Arceri
tarceri at itsqueeze.com
Wed Jan 2 05:00:11 UTC 2019
---
src/compiler/nir/nir_linking_helpers.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/compiler/nir/nir_linking_helpers.c b/src/compiler/nir/nir_linking_helpers.c
index abbd7e1f5c..97816ccc58 100644
--- a/src/compiler/nir/nir_linking_helpers.c
+++ b/src/compiler/nir/nir_linking_helpers.c
@@ -772,8 +772,7 @@ replace_constant_input(nir_shader *shader, nir_intrinsic_instr *store_intr)
nir_variable *in_var = nir_deref_instr_get_variable(in_deref);
- if (in_var->data.location != out_var->data.location ||
- in_var->data.location_frac != out_var->data.location_frac)
+ if (!does_varying_match(out_var, in_var))
continue;
b.cursor = nir_before_instr(instr);
--
2.20.1
More information about the mesa-dev
mailing list