ac/nir: compute correct number of user SGPRs on GFX9