From ad6553eae9e58f779c1baa28e157189ebc7c56ab Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Tue, 12 Jul 2022 15:14:24 +0200 Subject: [PATCH] r300: Remove format desc null check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Konstantin Seurer Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/r300/r300_texture.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index f47be75..df7d1c8 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -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) -- 2.7.4