projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d05ee2
)
nir: simplify does_varying_match()
author
Timothy Arceri
<tarceri@itsqueeze.com>
Wed, 2 Jan 2019 05:00:12 +0000
(16:00 +1100)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Thu, 3 Jan 2019 00:47:56 +0000
(11:47 +1100)
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/nir/nir_linking_helpers.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_linking_helpers.c
b/src/compiler/nir/nir_linking_helpers.c
index fa3ccaaa2da4a9d2707510110ad0092509d86abf..f2e8ec94ad966625521dc220b6b414d22f15ba9b 100644
(file)
--- 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 *