Commit 46c50c03 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Trace wined3d_swapchain_vk_blit() failures.

These are expected failures in some circumstances, but we'd still like to know about them when they happen. Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 177696a1
......@@ -1063,7 +1063,10 @@ static VkResult wined3d_swapchain_vk_blit(struct wined3d_swapchain_vk *swapchain
wined3d_context_vk_wait_command_buffer(context_vk, swapchain_vk->vk_semaphores[present_idx].command_buffer_id);
if ((vr = VK_CALL(vkAcquireNextImageKHR(device_vk->vk_device, swapchain_vk->vk_swapchain, UINT64_MAX,
swapchain_vk->vk_semaphores[present_idx].available, VK_NULL_HANDLE, &image_idx))) < 0)
{
WARN("Failed to acquire image, vr %s.\n", wined3d_debug_vkresult(vr));
return vr;
}
if (dst_rect->right > swapchain_vk->width || dst_rect->bottom > swapchain_vk->height)
{
......@@ -1154,7 +1157,9 @@ static VkResult wined3d_swapchain_vk_blit(struct wined3d_swapchain_vk *swapchain
present_desc.pSwapchains = &swapchain_vk->vk_swapchain;
present_desc.pImageIndices = &image_idx;
present_desc.pResults = NULL;
return VK_CALL(vkQueuePresentKHR(device_vk->vk_queue, &present_desc));
if ((vr = VK_CALL(vkQueuePresentKHR(device_vk->vk_queue, &present_desc))))
WARN("Present returned vr %s.\n", wined3d_debug_vkresult(vr));
return vr;
}
static void wined3d_swapchain_vk_rotate(struct wined3d_swapchain *swapchain, struct wined3d_context_vk *context_vk)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment