pvr: Remove format desc null check

Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17490>
This commit is contained in:
Konstantin Seurer 2022-07-12 15:34:19 +02:00 committed by Marge Bot
parent 55a12036f6
commit 7c79399597
1 changed files with 1 additions and 9 deletions

View File

@ -117,16 +117,8 @@ pvr_get_image_format_features(const struct pvr_format *pvr_format,
const uint8_t *pvr_get_format_swizzle(VkFormat vk_format)
{
const struct util_format_description *vf = vk_format_description(vk_format);
static const uint8_t fallback[] = { PIPE_SWIZZLE_X,
PIPE_SWIZZLE_Y,
PIPE_SWIZZLE_Z,
PIPE_SWIZZLE_W };
if (vf)
return vf->swizzle;
assert(!"Unsupported format");
return fallback;
return vf->swizzle;
}
static VkFormatFeatureFlags