Merge branch 'new-renderpass-clears' into 'master'

render/vulkan: Defer to renderpass clears when possible

See merge request wlroots/wlroots!3340
This commit is contained in:
Joshua Ashton 2022-10-30 16:52:57 +00:00
commit 9494eda286
2 changed files with 76 additions and 30 deletions

View file

@ -120,7 +120,8 @@ void vulkan_format_props_finish(struct wlr_vk_format_props *props);
struct wlr_vk_render_format_setup {
struct wl_list link;
VkFormat render_format; // used in renderpass
VkRenderPass render_pass;
VkRenderPass render_pass_load;
VkRenderPass render_pass_clear;
VkPipeline tex_pipe;
VkPipeline quad_pipe;
@ -184,6 +185,10 @@ struct wlr_vk_renderer {
struct wl_list render_buffers; // wlr_vk_render_buffer
bool in_render_pass;
bool pending_render_pass_clear;
VkClearValue render_pass_clear_color;
struct {
VkCommandBuffer cb;
bool recording;