agx: Remove format desc null check
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.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
74fe2c805f
commit
b52215ae56
|
@ -1012,8 +1012,6 @@ agx_is_format_supported(struct pipe_screen* pscreen,
|
|||
unsigned storage_sample_count,
|
||||
unsigned usage)
|
||||
{
|
||||
const struct util_format_description *format_desc;
|
||||
|
||||
assert(target == PIPE_BUFFER ||
|
||||
target == PIPE_TEXTURE_1D ||
|
||||
target == PIPE_TEXTURE_1D_ARRAY ||
|
||||
|
@ -1024,11 +1022,6 @@ agx_is_format_supported(struct pipe_screen* pscreen,
|
|||
target == PIPE_TEXTURE_CUBE ||
|
||||
target == PIPE_TEXTURE_CUBE_ARRAY);
|
||||
|
||||
format_desc = util_format_description(format);
|
||||
|
||||
if (!format_desc)
|
||||
return false;
|
||||
|
||||
if (sample_count > 1)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue