wlroots/render/vulkan
Kenny Levinsen 439258a43b render/vulkan: Intersect clip region once
We are spending quite significant CPU time walking through the clip
rects, taking a pixman box, converting it to a wlr box, intersecting it
and ultimately converting it back to a pixman box before adding it to
the rect union.

Just intersect the clip region once ahead of time, and use pixman boxes
the entire way. This also makes it easy to bail early if nothing
intersects.

Gives a small 97.95% reduction in CPU time for the Vulkan renderer in
the grid/clip200/1024 benchmark.

Signed-off-by: Kenny Levinsen <kl@kl.wtf>
2026-05-01 12:50:04 +00:00
..
shaders treewide: fix typos 2026-02-28 04:26:47 -03:00
meson.build render/vulkan: use renamed glslang binary by default 2023-07-27 16:06:49 +08:00
pass.c render/vulkan: Intersect clip region once 2026-05-01 12:50:04 +00:00
pixel_format.c vulkan: make use of new pixel_format_is_ycbcr function 2026-02-06 13:53:46 +00:00
renderer.c render/vulkan: New staging buffer implementation 2026-05-01 12:50:04 +00:00
texture.c render/vulkan: New staging buffer implementation 2026-05-01 12:50:04 +00:00
util.c render/vulkan: compile against vulkan 1.2 header 2026-03-24 12:33:12 -04:00
vulkan.c vulkan: Add support for render timer using timestamp queries 2026-04-09 15:13:49 +02:00