mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render/vulkan: fix and add missing wl_list comments
In wlroots we add comments near struct wl_list members to indicate which type it's linked to. The Vulkan renderer had some comments with mistakes, and some members without a comment.
This commit is contained in:
parent
9a5cc36818
commit
ea68506b73
1 changed files with 15 additions and 13 deletions
|
@ -111,7 +111,7 @@ void vulkan_format_props_finish(struct wlr_vk_format_props *props);
|
||||||
// For each format we want to render, we need a separate renderpass
|
// For each format we want to render, we need a separate renderpass
|
||||||
// and therefore also separate pipelines.
|
// and therefore also separate pipelines.
|
||||||
struct wlr_vk_render_format_setup {
|
struct wlr_vk_render_format_setup {
|
||||||
struct wl_list link;
|
struct wl_list link; // wlr_vk_renderer.render_format_setups
|
||||||
VkFormat render_format; // used in renderpass
|
VkFormat render_format; // used in renderpass
|
||||||
VkRenderPass render_pass;
|
VkRenderPass render_pass;
|
||||||
|
|
||||||
|
@ -168,19 +168,21 @@ struct wlr_vk_renderer {
|
||||||
float projection[9];
|
float projection[9];
|
||||||
|
|
||||||
size_t last_pool_size;
|
size_t last_pool_size;
|
||||||
struct wl_list descriptor_pools; // type wlr_vk_descriptor_pool
|
struct wl_list descriptor_pools; // wlr_vk_descriptor_pool.link
|
||||||
struct wl_list render_format_setups;
|
struct wl_list render_format_setups; // wlr_vk_render_format_setup.link
|
||||||
|
|
||||||
struct wl_list textures; // wlr_gles2_texture.link
|
struct wl_list textures; // wlr_vk_texture.link
|
||||||
struct wl_list destroy_textures; // wlr_vk_texture to destroy after frame
|
// Textures to destroy after frame
|
||||||
struct wl_list foreign_textures; // wlr_vk_texture to return to foreign queue
|
struct wl_list destroy_textures; // wlr_vk_texture.destroy_link
|
||||||
|
// Textures to return to foreign queue
|
||||||
|
struct wl_list foreign_textures; // wlr_vk_texture.foreign_link
|
||||||
|
|
||||||
struct wl_list render_buffers; // wlr_vk_render_buffer
|
struct wl_list render_buffers; // wlr_vk_render_buffer.link
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
VkCommandBuffer cb;
|
VkCommandBuffer cb;
|
||||||
bool recording;
|
bool recording;
|
||||||
struct wl_list buffers; // type wlr_vk_shared_buffer
|
struct wl_list buffers; // wlr_vk_shared_buffer.link
|
||||||
} stage;
|
} stage;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
@ -237,9 +239,9 @@ struct wlr_vk_texture {
|
||||||
bool dmabuf_imported;
|
bool dmabuf_imported;
|
||||||
bool owned; // if dmabuf_imported: whether we have ownership of the image
|
bool owned; // if dmabuf_imported: whether we have ownership of the image
|
||||||
bool transitioned; // if dma_imported: whether we transitioned it away from preinit
|
bool transitioned; // if dma_imported: whether we transitioned it away from preinit
|
||||||
struct wl_list foreign_link;
|
struct wl_list foreign_link; // wlr_vk_renderer.foreign_textures
|
||||||
struct wl_list destroy_link;
|
struct wl_list destroy_link; // wlr_vk_renderer.destroy_textures
|
||||||
struct wl_list link; // wlr_gles2_renderer.textures
|
struct wl_list link; // wlr_vk_renderer.textures
|
||||||
|
|
||||||
// If imported from a wlr_buffer
|
// If imported from a wlr_buffer
|
||||||
struct wlr_buffer *buffer;
|
struct wlr_buffer *buffer;
|
||||||
|
@ -258,7 +260,7 @@ void vulkan_texture_destroy(struct wlr_vk_texture *texture);
|
||||||
struct wlr_vk_descriptor_pool {
|
struct wlr_vk_descriptor_pool {
|
||||||
VkDescriptorPool pool;
|
VkDescriptorPool pool;
|
||||||
uint32_t free; // number of textures that can be allocated
|
uint32_t free; // number of textures that can be allocated
|
||||||
struct wl_list link;
|
struct wl_list link; // wlr_vk_renderer.descriptor_pools
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wlr_vk_allocation {
|
struct wlr_vk_allocation {
|
||||||
|
@ -269,7 +271,7 @@ struct wlr_vk_allocation {
|
||||||
// List of suballocated staging buffers.
|
// List of suballocated staging buffers.
|
||||||
// Used to upload to/read from device local images.
|
// Used to upload to/read from device local images.
|
||||||
struct wlr_vk_shared_buffer {
|
struct wlr_vk_shared_buffer {
|
||||||
struct wl_list link;
|
struct wl_list link; // wlr_vk_renderer.stage.buffers
|
||||||
VkBuffer buffer;
|
VkBuffer buffer;
|
||||||
VkDeviceMemory memory;
|
VkDeviceMemory memory;
|
||||||
VkDeviceSize buf_size;
|
VkDeviceSize buf_size;
|
||||||
|
|
Loading…
Reference in a new issue