radv: fix reserving enough space for emitting the SPM setup
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

4096 is an arbitrary but large enough number to emit everything needed.

Fixes: 22d73fc077 ("amd,radv,radeonsi: add ac_emit_spm_setup()")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38087>
This commit is contained in:
Samuel Pitoiset 2025-10-27 19:00:26 +01:00 committed by Marge Bot
parent 0dcb800a07
commit 14667eef53

View file

@ -72,7 +72,7 @@ radv_emit_spm_setup(struct radv_device *device, struct radv_cmd_stream *cs)
struct ac_spm *spm = &device->spm;
uint64_t va = radv_buffer_get_va(spm->bo);
radeon_check_space(device->ws, cs->b, 2048);
radeon_check_space(device->ws, cs->b, 4096);
ac_emit_spm_setup(cs->b, pdev->info.gfx_level, cs->hw_ip, spm, va);
}