mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
anv: check initial cmd_buffer is chainable
Submitting a batch with the first command buffer with the simultaneous bit set followed by a command buffer without the bit set gets past the check and triggers this assert attempting to chain them: ../src/intel/vulkan/anv_batch_chain.c:1147: anv_cmd_buffer_chain_command_buffers: Assertion `num_cmd_buffers == 1' failed. Signed-off-by: Juston Li <justonli@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21056>
This commit is contained in:
parent
9c5df90ae5
commit
6f4b375c94
1 changed files with 1 additions and 0 deletions
|
|
@ -1266,6 +1266,7 @@ anv_queue_submit_locked(struct anv_queue *queue,
|
|||
uint32_t next = n + 1;
|
||||
/* Can we chain the last buffer into the next one? */
|
||||
if (next < end &&
|
||||
anv_cmd_buffer_is_chainable(cmd_buffers[n]) &&
|
||||
anv_cmd_buffer_is_chainable(cmd_buffers[next]) &&
|
||||
can_chain_query_pools
|
||||
(cmd_buffers[next]->perf_query_pool, perf_query_pool)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue