[Mesa-dev] [PATCH 3/3] nir: simplify does_varying_match()
Timothy Arceri
tarceri at itsqueeze.com
Wed Jan 2 05:00:12 UTC 2019
---
src/compiler/nir/nir_linking_helpers.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/compiler/nir/nir_linking_helpers.c b/src/compiler/nir/nir_linking_helpers.c
index 97816ccc58..be6b9dd85c 100644
--- a/src/compiler/nir/nir_linking_helpers.c
+++ b/src/compiler/nir/nir_linking_helpers.c
@@ -702,11 +702,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 *
--
2.20.1
More information about the mesa-dev
mailing list