vulkan: Don't merge too many drawing commands
authorBenjamin Otte <otte@redhat.com>
Thu, 13 Jul 2023 10:30:29 +0000 (12:30 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Jul 2023 11:16:43 +0000 (13:16 +0200)
commit6eea08ff99440aeb050f109dfdd150d46d719558
treedeaa835c2218e556d79e2deb10b9eece02031481
parent372dcba9c9301863ff08cf7193cecdb79630940b
vulkan: Don't merge too many drawing commands

If a command takes too long to execute, Vulkan drivers will think they
are inflooping and abort what they were doing.

For the simple color shader with smallish nodes, this happens around
10M instances, as tested with the output of
  ./tests/rendernode-create-tests 10000000 colors.node

So just limit it to way lower, so that we barely never hit it, ut still
pick a big number so this optimization stays noticable.
gsk/vulkan/gskvulkanop.c