diff options
author | Chad Versace <[email protected]> | 2015-10-07 11:36:51 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-10-07 11:36:51 -0700 |
commit | f9c948ed00787c56bac265dc934049ed67a1cd61 (patch) | |
tree | b694c5f3884d421cddcd4e6c996d1783121f22a6 /src/vulkan/anv_query.c | |
parent | 8dee32e71f0ccbdf2b9404fe553a83da8bea79dc (diff) |
vk/0.170.2: Update VkResult
Version 0.170.2 removes most of the error enums. In many cases, I had to
replace an error with a less accurate (or even incorrect) one.
In other cases, the error path is replaced with an assertion.
Diffstat (limited to 'src/vulkan/anv_query.c')
-rw-r--r-- | src/vulkan/anv_query.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vulkan/anv_query.c b/src/vulkan/anv_query.c index 9464531b8c5..68535b40cac 100644 --- a/src/vulkan/anv_query.c +++ b/src/vulkan/anv_query.c @@ -120,8 +120,11 @@ 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_errorf(VK_ERROR_UNKNOWN, "gem_wait failed %m"); + if (ret == -1) { + /* We don't know the real error. */ + return vk_errorf(VK_ERROR_OUT_OF_DEVICE_MEMORY, + "gem_wait failed %m"); + } } for (uint32_t i = 0; i < queryCount; i++) { |