tgsi/scan: set maximum index for each constant buffer