It basically allocates registers local to a function in a nir_locals map, then emits all its control-flow blocks.
59006d3 i965/nir/vec4: Add shader function implementation
src/mesa/drivers/dri/i965/brw_vec4.h | 1 +
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 11 ++++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
Upstream: cgit.freedesktop.org