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:
parent
c65a303f53
commit
8bfb4657c8
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue