diff options
author | Rob Clark <[email protected]> | 2018-06-15 16:12:23 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-06-19 13:02:28 -0400 |
commit | 228457234c2b986d8acc88f2419e861c391b18e1 (patch) | |
tree | ddb2748599e9700dfb1846a9b12a4f3fb9cf99e9 /src/compiler | |
parent | e3bbc1eaf4258f9113340544cd99ceed26b10458 (diff) |
nir: add comment for loop_unroll pass
Save the next person from digging through the code to figure out what
the indirect_mask parameter actually does.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_opt_loop_unroll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_loop_unroll.c b/src/compiler/nir/nir_opt_loop_unroll.c index ff27c06cc01..04caa7c346d 100644 --- 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) { |