nir: add a pass to lower flat shading.