summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2019-01-02 16:00:11 +1100
committerTimothy Arceri <tarceri@itsqueeze.com>2019-01-03 11:47:56 +1100
commit8d05ee2005e461379d884cb3974f9b845afe0a64 (patch)
treec381bad11ecf6feff1c103635fcf2ec0f9b82a62
parent0016166d19586fb8b328d88795b3239e30927293 (diff)
nir: make use of does_varying_match() helper
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
-rw-r--r--src/compiler/nir/nir_linking_helpers.c3
1 files changed, 1 insertions, 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);