etnaviv: move nir compiler related stuff into .c file