r600g: precalculate semantic indices for SPI setup