The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

comp/vk_client: Improve error messages.

As we use u_logging here, new lines are redundant. Also showing the
VkError code is handy.

+2 -2
+2 -2
src/xrt/compositor/client/comp_vk_client.c
··· 95 95 vk->vkQueueSubmit(vk->queue, 1, &submitInfo, VK_NULL_HANDLE); 96 96 os_mutex_unlock(&vk->queue_mutex); 97 97 if (ret != VK_SUCCESS) { 98 - VK_ERROR(vk, "Error: Could not submit to queue.\n"); 98 + VK_ERROR(vk, "Could not submit to queue: %d", ret); 99 99 return XRT_ERROR_FAILED_TO_SUBMIT_VULKAN_COMMANDS; 100 100 } 101 101 return XRT_SUCCESS; ··· 130 130 vk->vkQueueSubmit(vk->queue, 1, &submitInfo, VK_NULL_HANDLE); 131 131 os_mutex_unlock(&vk->queue_mutex); 132 132 if (ret != VK_SUCCESS) { 133 - VK_ERROR(vk, "Error: Could not submit to queue.\n"); 133 + VK_ERROR(vk, "Could not submit to queue: %d", ret); 134 134 return XRT_ERROR_FAILED_TO_SUBMIT_VULKAN_COMMANDS; 135 135 } 136 136