diff --git a/src/imagination/vulkan/pvr_formats.c b/src/imagination/vulkan/pvr_formats.c index 7e557cdcad9..5d5a6d982d9 100644 --- a/src/imagination/vulkan/pvr_formats.c +++ b/src/imagination/vulkan/pvr_formats.c @@ -743,7 +743,8 @@ pvr_get_image_format_properties(struct pvr_physical_device *pdevice, break; default: - UNREACHABLE("Invalid image type."); + result = vk_error(pdevice, VK_ERROR_FORMAT_NOT_SUPPORTED); + goto err_unsupported_format; } /* The spec says maxMipLevels may be 1 when tiling is VK_IMAGE_TILING_LINEAR