i965/cs: Rework cs_emit to take a nir_shader and a brw_compiler