mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
render/vulkan: use stage buffers for read_pixels
No need to roll our own cache machinery here, stage buffers already do it (and more) for us. Should improve performance when multiple screens with a different resolution are captured. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3525
This commit is contained in:
parent
3ed69b4946
commit
7328cad84b
2 changed files with 37 additions and 90 deletions
|
|
@ -207,14 +207,6 @@ struct wlr_vk_renderer {
|
|||
uint64_t last_timeline_point;
|
||||
struct wl_list buffers; // wlr_vk_shared_buffer.link
|
||||
} stage;
|
||||
|
||||
struct {
|
||||
bool initialized;
|
||||
uint32_t drm_format;
|
||||
uint32_t width, height;
|
||||
VkImage dst_image;
|
||||
VkDeviceMemory dst_img_memory;
|
||||
} read_pixels_cache;
|
||||
};
|
||||
|
||||
// Creates a vulkan renderer for the given device.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue