Mesa (master): nir: simplify does_varying_match()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 3 00:48:18 UTC 2019
Module: Mesa
Branch: master
Commit: 5122fbc4bad8e139463f5a36432673b29ddf52c5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5122fbc4bad8e139463f5a36432673b29ddf52c5
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Wed Jan 2 16:00:12 2019 +1100
nir: simplify does_varying_match()
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
---
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 fa3ccaaa2d..f2e8ec94ad 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 *
More information about the mesa-commit
mailing list