mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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
1 changed files with 1 additions and 9 deletions
|
|
@ -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 uint8_t *pvr_get_format_swizzle(VkFormat vk_format)
|
||||||
{
|
{
|
||||||
const struct util_format_description *vf = vk_format_description(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;
|
||||||
return vf->swizzle;
|
|
||||||
|
|
||||||
assert(!"Unsupported format");
|
|
||||||
return fallback;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkFormatFeatureFlags
|
static VkFormatFeatureFlags
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue