r300: 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:14:24 +02:00 committed by Marge Bot
parent b07b359428
commit ad6553eae9
1 changed files with 0 additions and 2 deletions

View File

@ -80,8 +80,6 @@ static unsigned r300_get_endian_swap(enum pipe_format format)
return R300_SURF_NO_SWAP;
desc = util_format_description(format);
if (!desc)
return R300_SURF_NO_SWAP;
/* Compressed formats should be in the little endian format. */
if (desc->block.width != 1 || desc->block.height != 1)