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: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-03-25 16:46:41 +01:00 committed by Alexandre Julliard
parent 177696a103
commit 46c50c03ce
1 changed files with 6 additions and 1 deletions

View File

@ -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)