From d3a339a03e320c397696d3d0f49567670146a7a4 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sat, 19 Aug 2023 21:39:57 -0400 Subject: renderer: Drop buffer binding --- include/render/gles2.h | 4 ---- include/render/pixman.h | 3 --- include/render/vulkan.h | 2 -- include/render/wlr_renderer.h | 8 -------- 4 files changed, 17 deletions(-) (limited to 'include/render') diff --git a/include/render/gles2.h b/include/render/gles2.h index c4540a39..db301c6e 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -41,7 +41,6 @@ struct wlr_gles2_tex_shader { struct wlr_gles2_renderer { struct wlr_renderer wlr_renderer; - float projection[9]; struct wlr_egl *egl; int drm_fd; @@ -87,9 +86,6 @@ struct wlr_gles2_renderer { struct wl_list buffers; // wlr_gles2_buffer.link struct wl_list textures; // wlr_gles2_texture.link - - struct wlr_gles2_buffer *current_buffer; - uint32_t viewport_width, viewport_height; }; struct wlr_gles2_render_timer { diff --git a/include/render/pixman.h b/include/render/pixman.h index 24a27055..09842144 100644 --- a/include/render/pixman.h +++ b/include/render/pixman.h @@ -20,9 +20,6 @@ struct wlr_pixman_renderer { struct wl_list buffers; // wlr_pixman_buffer.link struct wl_list textures; // wlr_pixman_texture.link - struct wlr_pixman_buffer *current_buffer; - int32_t width, height; - struct wlr_drm_format_set drm_formats; }; diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 90a9c4e7..a518ee4a 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -252,8 +252,6 @@ struct wlr_vk_renderer { VkSemaphore timeline_semaphore; uint64_t timeline_point; - struct wlr_vk_render_buffer *current_render_buffer; - size_t last_pool_size; struct wl_list descriptor_pools; // wlr_vk_descriptor_pool.link struct wl_list render_format_setups; // wlr_vk_render_format_setup.link diff --git a/include/render/wlr_renderer.h b/include/render/wlr_renderer.h index c55b3ac8..a8777bc0 100644 --- a/include/render/wlr_renderer.h +++ b/include/render/wlr_renderer.h @@ -7,14 +7,6 @@ * Automatically select and create a renderer suitable for the DRM FD. */ struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd); -/** - * Bind a buffer to the renderer. - * - * All subsequent rendering operations will operate on the supplied buffer. - * After rendering operations are done, the caller must unbind a buffer by - * calling renderer_bind_buffer with a NULL buffer. - */ -bool renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer); /** * Get the supported render formats. Buffers allocated with a format from this * list may be attached via wlr_renderer_begin_with_buffer. -- cgit v1.2.3