radeonsi/gfx11: don't count the non-existent scratch_byte_offset SGPR

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16328>
This commit is contained in:
Marek Olšák 2022-04-28 08:38:49 -04:00 committed by Marge Bot
parent c65a303f53
commit 8bfb4657c8
1 changed files with 2 additions and 1 deletions

View File

@ -1825,7 +1825,8 @@ bool si_compile_shader(struct si_screen *sscreen, struct ac_llvm_compiler *compi
}
/* Add the scratch offset to input SGPRs. */
if (shader->config.scratch_bytes_per_wave && !si_is_merged_shader(shader))
if (sel->screen->info.chip_class < GFX11 &&
shader->config.scratch_bytes_per_wave && !si_is_merged_shader(shader))
shader->info.num_input_sgprs += 1; /* scratch byte offset */
/* Calculate the number of fragment input VGPRs. */