zink: Do not submit cmdbufs that lack work
I believe more command buffers can be eliminated, specifically those that do unneeded barriers (vkCmdPipelineBarrier). But this patch eliminates the large majority of unneeded command buffers in the workload I analyzed.
On an apitrace of Unturned on Intel RaptorLake, this MR reduced the number of VkCommandBuffer submissions from ~17k to ~12k (reduction 0.71x).
See: #10813 (closed)
Edited by Lina Versace