v3dv: Remove format desc null asserts
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Tue, 12 Jul 2022 12:19:52 +0000 (14:19 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Jul 2022 12:48:01 +0000 (12:48 +0000)
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17490>

src/broadcom/vulkan/v3dv_formats.c

index e2ae016..1940e21 100644 (file)
@@ -180,7 +180,6 @@ image_format_features(struct v3dv_physical_device *pdevice,
 
    const struct util_format_description *desc =
       vk_format_description(vk_format);
-   assert(desc);
 
    if (tiling != VK_IMAGE_TILING_LINEAR) {
       if (desc->layout == UTIL_FORMAT_LAYOUT_PLAIN && desc->is_array) {
@@ -226,7 +225,6 @@ buffer_format_features(VkFormat vk_format, const struct v3dv_format *v3dv_format
 
    const struct util_format_description *desc =
       vk_format_description(vk_format);
-   assert(desc);
 
    VkFormatFeatureFlags2 flags = 0;
    if (desc->layout == UTIL_FORMAT_LAYOUT_PLAIN &&