mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
vulkan/wsi: drop unused common wsi helpers
Below are dropped: - wsi_common_get_image - wsi_common_bind_swapchain_image Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36095>
This commit is contained in:
parent
b2a880b85e
commit
c16e786c75
2 changed files with 0 additions and 28 deletions
|
|
@ -1120,14 +1120,6 @@ wsi_ReleaseSwapchainImagesEXT(VkDevice _device,
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
VkImage
|
||||
wsi_common_get_image(VkSwapchainKHR _swapchain, uint32_t index)
|
||||
{
|
||||
VK_FROM_HANDLE(wsi_swapchain, swapchain, _swapchain);
|
||||
assert(index < swapchain->image_count);
|
||||
return swapchain->get_wsi_image(swapchain, index)->image;
|
||||
}
|
||||
|
||||
VkDeviceMemory
|
||||
wsi_common_get_memory(VkSwapchainKHR _swapchain, uint32_t index)
|
||||
{
|
||||
|
|
@ -1716,18 +1708,6 @@ wsi_common_create_swapchain_image(const struct wsi_device *wsi,
|
|||
&chain->alloc, pImage);
|
||||
}
|
||||
|
||||
VkResult
|
||||
wsi_common_bind_swapchain_image(const struct wsi_device *wsi,
|
||||
VkImage vk_image,
|
||||
VkSwapchainKHR _swapchain,
|
||||
uint32_t image_idx)
|
||||
{
|
||||
VK_FROM_HANDLE(wsi_swapchain, chain, _swapchain);
|
||||
struct wsi_image *image = chain->get_wsi_image(chain, image_idx);
|
||||
|
||||
return wsi->BindImageMemory(chain->device, vk_image, image->memory, 0);
|
||||
}
|
||||
|
||||
VkResult
|
||||
wsi_swapchain_wait_for_present_semaphore(const struct wsi_swapchain *chain,
|
||||
uint64_t present_id, uint64_t timeout)
|
||||
|
|
|
|||
|
|
@ -327,9 +327,6 @@ wsi_device_setup_syncobj_fd(struct wsi_device *wsi_device,
|
|||
|
||||
ICD_DEFINE_NONDISP_HANDLE_CASTS(VkIcdSurfaceBase, VkSurfaceKHR)
|
||||
|
||||
VkImage
|
||||
wsi_common_get_image(VkSwapchainKHR _swapchain, uint32_t index);
|
||||
|
||||
VkDeviceMemory
|
||||
wsi_common_get_memory(VkSwapchainKHR _swapchain, uint32_t index);
|
||||
|
||||
|
|
@ -351,11 +348,6 @@ wsi_common_create_swapchain_image(const struct wsi_device *wsi,
|
|||
const VkImageCreateInfo *pCreateInfo,
|
||||
VkSwapchainKHR _swapchain,
|
||||
VkImage *pImage);
|
||||
VkResult
|
||||
wsi_common_bind_swapchain_image(const struct wsi_device *wsi,
|
||||
VkImage vk_image,
|
||||
VkSwapchainKHR _swapchain,
|
||||
uint32_t image_idx);
|
||||
|
||||
bool
|
||||
wsi_common_vk_instance_supports_present_wait(const struct vk_instance *instance);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue