diff options
Diffstat (limited to 'src/vulkan/anv_formats.c')
-rw-r--r-- | src/vulkan/anv_formats.c | 3 |
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) |