mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 14:10:09 +01:00
radv: don't submit empty command buffers on encoder ring.
the vcn enc/unified rings don't do nop packets, and hang with 0 sized cmd buffers. This just stops submitting 0 sized cmd buffers to the hw. Fixes hangs with dEQP-VK.video.decode.h264_i on navi3x Cc: mesa-stable Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25932>
This commit is contained in:
parent
d32f2ee7b6
commit
f33683e4da
1 changed files with 5 additions and 2 deletions
|
|
@ -1643,8 +1643,11 @@ radv_queue_submit_normal(struct radv_queue *queue, struct vk_queue_submit *submi
|
|||
}
|
||||
|
||||
queue->device->ws->cs_unchain(cmd_buffer->cs);
|
||||
if (!chainable || !queue->device->ws->cs_chain(chainable, cmd_buffer->cs, queue->state.uses_shadow_regs))
|
||||
cs_array[num_submitted_cs++] = cmd_buffer->cs;
|
||||
if (!chainable || !queue->device->ws->cs_chain(chainable, cmd_buffer->cs, queue->state.uses_shadow_regs)) {
|
||||
/* don't submit empty command buffers to the kernel. */
|
||||
if (radv_queue_ring(queue) != AMD_IP_VCN_ENC || cmd_buffer->cs->cdw != 0)
|
||||
cs_array[num_submitted_cs++] = cmd_buffer->cs;
|
||||
}
|
||||
|
||||
chainable = can_chain_next ? cmd_buffer->cs : NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue