mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
panvk: No-op zero-vertex draws
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15295>
This commit is contained in:
parent
3244100557
commit
417cf3d35e
1 changed files with 3 additions and 0 deletions
|
|
@ -889,6 +889,9 @@ panvk_per_arch(CmdDraw)(VkCommandBuffer commandBuffer,
|
|||
{
|
||||
VK_FROM_HANDLE(panvk_cmd_buffer, cmdbuf, commandBuffer);
|
||||
|
||||
if (instanceCount == 0 || vertexCount == 0)
|
||||
return;
|
||||
|
||||
struct panvk_batch *batch = cmdbuf->state.batch;
|
||||
struct panvk_cmd_bind_point_state *bind_point_state =
|
||||
panvk_cmd_get_bind_point_state(cmdbuf, GRAPHICS);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue