mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
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:
parent
132a61c6b7
commit
3056279d09
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue