diff options
author | Timothy Arceri <[email protected]> | 2019-01-02 16:00:12 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-01-03 11:47:56 +1100 |
commit | 5122fbc4bad8e139463f5a36432673b29ddf52c5 (patch) | |
tree | 7a3a452bf682da3ee2a4fbe37ef819a0452de775 /src/compiler | |
parent | 8d05ee2005e461379d884cb3974f9b845afe0a64 (diff) |
nir: simplify does_varying_match()
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_linking_helpers.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/compiler/nir/nir_linking_helpers.c b/src/compiler/nir/nir_linking_helpers.c index fa3ccaaa2da..f2e8ec94ad9 100644 --- a/src/compiler/nir/nir_linking_helpers.c +++ b/src/compiler/nir/nir_linking_helpers.c @@ -563,11 +563,8 @@ nir_link_xfb_varyings(nir_shader *producer, nir_shader *consumer) static bool does_varying_match(nir_variable *out_var, nir_variable *in_var) { - if (in_var->data.location == out_var->data.location && - in_var->data.location_frac == out_var->data.location_frac) - return true; - - return false; + return in_var->data.location == out_var->data.location && + in_var->data.location_frac == out_var->data.location_frac; } static nir_variable * |