From 8d05ee2005e461379d884cb3974f9b845afe0a64 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 2 Jan 2019 16:00:11 +1100 Subject: [PATCH] nir: make use of does_varying_match() helper MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Alejandro Piñeiro --- 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 ecd15998f49..fa3ccaaa2da 100644 --- a/src/compiler/nir/nir_linking_helpers.c +++ b/src/compiler/nir/nir_linking_helpers.c @@ -633,8 +633,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.30.2