radeon_llvm_dispose(&ctx.radeon_bld);
+ /* Add the scratch offset to input SGPRs. */
+ if (shader->config.scratch_bytes_per_wave)
+ shader->info.num_input_sgprs += 1; /* scratch byte offset */
+
/* Calculate the number of fragment input VGPRs. */
if (ctx.type == TGSI_PROCESSOR_FRAGMENT) {
shader->info.num_input_vgprs = 0;
{
unsigned min_sgprs = shader->info.num_input_sgprs + 2; /* VCC */
- if (shader->config.scratch_bytes_per_wave)
- min_sgprs += 1; /* scratch wave offset */
-
shader->config.num_sgprs = MAX2(shader->config.num_sgprs, min_sgprs);
}