radeonsi/nir: fix counting shader inputs & outputs