anv: check initial cmd_buffer is chainable
authorJuston Li <justonli@google.com>
Tue, 31 Jan 2023 23:57:24 +0000 (15:57 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Feb 2023 21:17:33 +0000 (21:17 +0000)
commit6f4b375c94868099cf413f50183270a68b8c6c3b
treee18451b39613079d3f3518b1c7288622c33f33d8
parent9c5df90ae57c4f4496b7d9eb229e4b722a677422
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>
src/intel/vulkan/anv_batch_chain.c