diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2015-08-26 04:03:38 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2015-09-03 11:53:08 -0700 |
commit | c4b30e7885f1d47e57753db49d232669d87a88e5 (patch) | |
tree | da3699b7618cab688392ec8b4e194cf2ad6d14b0 /src/vulkan/anv_query.c | |
parent | 2e346c882ddbea68db6dc0b6a05a9e9186624c04 (diff) |
vk: Add new vk_errorf that takes a format string
This allows us to annotate error cases in debug builds.
Signed-off-by: Kristian Høgsberg Kristensen <[email protected]>
Diffstat (limited to 'src/vulkan/anv_query.c')
-rw-r--r-- | src/vulkan/anv_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_query.c b/src/vulkan/anv_query.c index 3785560dc3b..4ef9d8c4b0c 100644 --- a/src/vulkan/anv_query.c +++ b/src/vulkan/anv_query.c @@ -123,7 +123,7 @@ VkResult anv_GetQueryPoolResults( if (flags & VK_QUERY_RESULT_WAIT_BIT) { ret = anv_gem_wait(device, pool->bo.gem_handle, &timeout); if (ret == -1) - return vk_error(VK_ERROR_UNKNOWN); + return vk_errorf(VK_ERROR_UNKNOWN, "gem_wait failed %m"); } for (uint32_t i = 0; i < queryCount; i++) { |