This partially reverts 8b30114d. Fixes: 8b30114d "radeonsi/nir: call nir_serialize only once per shader"