From: Timothy Arceri Date: Wed, 2 Jan 2019 05:00:11 +0000 (+1100) Subject: nir: make use of does_varying_match() helper X-Git-Tag: upstream/19.0.0~781 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d05ee2005e461379d884cb3974f9b845afe0a64;p=platform%2Fupstream%2Fmesa.git nir: make use of does_varying_match() helper Reviewed-by: Alejandro PiƱeiro --- diff --git a/src/compiler/nir/nir_linking_helpers.c b/src/compiler/nir/nir_linking_helpers.c index ecd1599..fa3ccaa 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);