summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_formats.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_formats.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_formats.c')
-rw-r--r--src/vulkan/anv_formats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c
index f5bae0ae0aa..944e05f1476 100644
--- a/src/vulkan/anv_formats.c
+++ b/src/vulkan/anv_formats.c
@@ -254,8 +254,7 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d
int gen;
VkFormatFeatureFlags flags;
- if (format == NULL)
- return VK_ERROR_INVALID_VALUE;
+ assert(format != NULL);
gen = physical_device->info->gen * 10;
if (physical_device->info->is_haswell)