diff options
author | Timothy Arceri <[email protected]> | 2019-01-02 16:00:11 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-01-03 11:47:56 +1100 |
commit | 8d05ee2005e461379d884cb3974f9b845afe0a64 (patch) | |
tree | c381bad11ecf6feff1c103635fcf2ec0f9b82a62 | |
parent | 0016166d19586fb8b328d88795b3239e30927293 (diff) |
nir: make use of does_varying_match() helper
Reviewed-by: Alejandro PiƱeiro <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_linking_helpers.c | 3 |
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); |