vulkan: Don't try that hard to use clear
authorBenjamin Otte <otte@redhat.com>
Wed, 12 Jul 2023 09:38:32 +0000 (11:38 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Jul 2023 11:16:43 +0000 (13:16 +0200)
commit0edd7547c1e095ede1e1f8c45dc93291b4913c33
tree95f9cfe2ca8d16d03fbe16c8b3968345ec3bd1bf
parentce042f7ba1af3f7c3ff125311c4eb82ea2e6b13c
vulkan: Don't try that hard to use clear

For small regions, the optimization doesn't matter that much, so we
don't need to do lots of work on the CPU.

In particular, this should catch icons and their backgrounds (32x32),
but I was generous in selecting the number.

Gets my discrete AMD on widget-factory back to the 1900fps it had before
this optimization while making the driver clock the GPU's shader at
1.7GHz instead of the 2.1GHz it used before.
gsk/vulkan/gskvulkanrenderpass.c