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 <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Rob Clark
2018-06-15 16:12:23 -04:00
parent e3bbc1eaf4
commit 228457234c

View File

@@ -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)
{