summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-06-10 21:04:13 -0700
committerJason Ekstrand <[email protected]>2015-06-10 21:04:13 -0700
commitc8b62d109b9c4efc7bd493d220d959a16a456e5c (patch)
treedad2466766ce926a580f6939762d6bdffb242dad
parent7153b56abc18f1a305cc368eaaace20b6df80766 (diff)
vk: Add a couple vk_error calls
-rw-r--r--src/vulkan/device.c2
-rw-r--r--src/vulkan/formats.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 8cb5b3f8c93..3df707429e1 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -1221,7 +1221,7 @@ VkResult anv_GetObjectInfo(
return VK_SUCCESS;
default:
- return VK_UNSUPPORTED;
+ return vk_error(VK_UNSUPPORTED);
}
}
diff --git a/src/vulkan/formats.c b/src/vulkan/formats.c
index c5e52c47b5f..e915156c1be 100644
--- a/src/vulkan/formats.c
+++ b/src/vulkan/formats.c
@@ -302,6 +302,6 @@ VkResult anv_GetFormatInfo(
return VK_SUCCESS;
default:
- return VK_ERROR_INVALID_VALUE;
+ return vk_error(VK_ERROR_INVALID_VALUE);
}
}