radv/amdgpu: Use correct NOP packets when unchaining a CS

GFX6 doesn't support single-dword PKT3 NOP packets,
so they shouldn't be used when unchaining a CS.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37121>
This commit is contained in:
Timur Kristóf 2025-08-29 12:25:07 +02:00 committed by Marge Bot
parent 132a61c6b7
commit 3056279d09

View file

@ -570,12 +570,13 @@ radv_amdgpu_cs_unchain(struct radeon_cmdbuf *cs)
return;
assert(cs->cdw <= cs->max_dw + 4);
const uint32_t nop_packet = get_nop_packet(acs);
acs->chained_to = NULL;
cs->buf[cs->cdw - 4] = PKT3_NOP_PAD;
cs->buf[cs->cdw - 3] = PKT3_NOP_PAD;
cs->buf[cs->cdw - 2] = PKT3_NOP_PAD;
cs->buf[cs->cdw - 1] = PKT3_NOP_PAD;
cs->buf[cs->cdw - 4] = nop_packet;
cs->buf[cs->cdw - 3] = nop_packet;
cs->buf[cs->cdw - 2] = nop_packet;
cs->buf[cs->cdw - 1] = nop_packet;
}
static bool