mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
vulkan/wsi/headless: drop redundant chain struct members
Reviewed-by: Janne Grunau <j@jannau.net> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36658>
This commit is contained in:
parent
24cb071d47
commit
5b1104476f
1 changed files with 4 additions and 17 deletions
|
|
@ -240,22 +240,13 @@ wsi_headless_surface_get_present_rectangles(VkIcdSurfaceBase *surface,
|
|||
}
|
||||
|
||||
struct wsi_headless_image {
|
||||
struct wsi_image base;
|
||||
bool busy;
|
||||
struct wsi_image base;
|
||||
bool busy;
|
||||
};
|
||||
|
||||
struct wsi_headless_swapchain {
|
||||
struct wsi_swapchain base;
|
||||
|
||||
VkExtent2D extent;
|
||||
VkFormat vk_format;
|
||||
|
||||
struct u_vector modifiers;
|
||||
|
||||
VkPresentModeKHR present_mode;
|
||||
bool fifo_ready;
|
||||
|
||||
struct wsi_headless_image images[0];
|
||||
struct wsi_swapchain base;
|
||||
struct wsi_headless_image images[0];
|
||||
};
|
||||
VK_DEFINE_NONDISP_HANDLE_CASTS(wsi_headless_swapchain, base.base, VkSwapchainKHR,
|
||||
VK_OBJECT_TYPE_SWAPCHAIN_KHR)
|
||||
|
|
@ -331,8 +322,6 @@ wsi_headless_swapchain_destroy(struct wsi_swapchain *wsi_chain,
|
|||
wsi_destroy_image(&chain->base, &chain->images[i].base);
|
||||
}
|
||||
|
||||
u_vector_finish(&chain->modifiers);
|
||||
|
||||
wsi_swapchain_finish(&chain->base);
|
||||
|
||||
vk_free(pAllocator, chain);
|
||||
|
|
@ -502,8 +491,6 @@ wsi_headless_surface_create_swapchain(VkIcdSurfaceBase *icd_surface,
|
|||
chain->base.queue_present = wsi_headless_swapchain_queue_present;
|
||||
chain->base.present_mode = wsi_swapchain_get_present_mode(wsi_device, pCreateInfo);
|
||||
chain->base.image_count = num_images;
|
||||
chain->extent = pCreateInfo->imageExtent;
|
||||
chain->vk_format = pCreateInfo->imageFormat;
|
||||
chain->base.image_info.create_mem = wsi_create_null_image_mem;
|
||||
chain->base.image_info.finish_create = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue