projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3bbc1e
)
nir: add comment for loop_unroll pass
author
Rob Clark
<robdclark@gmail.com>
Fri, 15 Jun 2018 20:12:23 +0000
(16:12 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Tue, 19 Jun 2018 17:02:28 +0000
(13:02 -0400)
Save the next person from digging through the code to figure out what
the indirect_mask parameter actually does.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_opt_loop_unroll.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_opt_loop_unroll.c
b/src/compiler/nir/nir_opt_loop_unroll.c
index ff27c06cc017182719a467f2744a2808ed378637..04caa7c346dec9e44f1558bfd1282bce07a25b4f 100644
(file)
--- a/
src/compiler/nir/nir_opt_loop_unroll.c
+++ b/
src/compiler/nir/nir_opt_loop_unroll.c
@@
-578,6
+578,10
@@
nir_opt_loop_unroll_impl(nir_function_impl *impl,
return progress;
}
+/**
+ * indirect_mask specifies which type of indirectly accessed variables
+ * should force loop unrolling.
+ */
bool
nir_opt_loop_unroll(nir_shader *shader, nir_variable_mode indirect_mask)
{