summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_util.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-10-07 11:36:51 -0700
committerChad Versace <[email protected]>2015-10-07 11:36:51 -0700
commitf9c948ed00787c56bac265dc934049ed67a1cd61 (patch)
treeb694c5f3884d421cddcd4e6c996d1783121f22a6 /src/vulkan/anv_util.c
parent8dee32e71f0ccbdf2b9404fe553a83da8bea79dc (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_util.c')
-rw-r--r--src/vulkan/anv_util.c35
1 files changed, 8 insertions, 27 deletions
diff --git a/src/vulkan/anv_util.c b/src/vulkan/anv_util.c
index 4c8fadcc805..628e399cb3e 100644
--- a/src/vulkan/anv_util.c
+++ b/src/vulkan/anv_util.c
@@ -92,39 +92,20 @@ __vk_errorf(VkResult error, const char *file, int line, const char *format, ...)
const char *error_str;
switch ((int32_t)error) {
- ERROR_CASE(VK_ERROR_UNKNOWN)
- ERROR_CASE(VK_ERROR_UNAVAILABLE)
- ERROR_CASE(VK_ERROR_INITIALIZATION_FAILED)
+
+ /* Core errors */
ERROR_CASE(VK_ERROR_OUT_OF_HOST_MEMORY)
ERROR_CASE(VK_ERROR_OUT_OF_DEVICE_MEMORY)
- ERROR_CASE(VK_ERROR_DEVICE_ALREADY_CREATED)
+ ERROR_CASE(VK_ERROR_INITIALIZATION_FAILED)
ERROR_CASE(VK_ERROR_DEVICE_LOST)
- ERROR_CASE(VK_ERROR_INVALID_POINTER)
- ERROR_CASE(VK_ERROR_INVALID_VALUE)
- ERROR_CASE(VK_ERROR_INVALID_HANDLE)
- ERROR_CASE(VK_ERROR_INVALID_ORDINAL)
- ERROR_CASE(VK_ERROR_INVALID_MEMORY_SIZE)
- ERROR_CASE(VK_ERROR_INVALID_EXTENSION)
- ERROR_CASE(VK_ERROR_INVALID_FLAGS)
- ERROR_CASE(VK_ERROR_INVALID_ALIGNMENT)
- ERROR_CASE(VK_ERROR_INVALID_FORMAT)
- ERROR_CASE(VK_ERROR_INVALID_IMAGE)
- ERROR_CASE(VK_ERROR_INVALID_DESCRIPTOR_SET_DATA)
- ERROR_CASE(VK_ERROR_INVALID_QUEUE_TYPE)
- ERROR_CASE(VK_ERROR_UNSUPPORTED_SHADER_IL_VERSION)
- ERROR_CASE(VK_ERROR_BAD_SHADER_CODE)
- ERROR_CASE(VK_ERROR_BAD_PIPELINE_DATA)
- ERROR_CASE(VK_ERROR_NOT_MAPPABLE)
ERROR_CASE(VK_ERROR_MEMORY_MAP_FAILED)
- ERROR_CASE(VK_ERROR_MEMORY_UNMAP_FAILED)
- ERROR_CASE(VK_ERROR_INCOMPATIBLE_DEVICE)
+ ERROR_CASE(VK_ERROR_LAYER_NOT_PRESENT)
+ ERROR_CASE(VK_ERROR_EXTENSION_NOT_PRESENT)
ERROR_CASE(VK_ERROR_INCOMPATIBLE_DRIVER)
- ERROR_CASE(VK_ERROR_INCOMPLETE_COMMAND_BUFFER)
- ERROR_CASE(VK_ERROR_BUILDING_COMMAND_BUFFER)
- ERROR_CASE(VK_ERROR_MEMORY_NOT_BOUND)
- ERROR_CASE(VK_ERROR_INCOMPATIBLE_QUEUE)
- ERROR_CASE(VK_ERROR_INVALID_LAYER)
+
+ /* Extension errors */
ERROR_CASE(VK_ERROR_OUT_OF_DATE_WSI)
+
default:
assert(!"Unknown error");
error_str = "unknown error";