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:
parent
b07b359428
commit
ad6553eae9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue