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:
parent
55a12036f6
commit
7c79399597
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue