virgl: Remove format desc null checks
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
90030469dd
commit
55a12036f6
|
@ -574,8 +574,6 @@ virgl_is_vertex_format_supported(struct pipe_screen *screen,
|
|||
int i;
|
||||
|
||||
format_desc = util_format_description(format);
|
||||
if (!format_desc)
|
||||
return false;
|
||||
|
||||
if (format == PIPE_FORMAT_R11G11B10_FLOAT) {
|
||||
int vformat = VIRGL_FORMAT_R11G11B10_FLOAT;
|
||||
|
@ -683,8 +681,6 @@ virgl_is_format_supported( struct pipe_screen *screen,
|
|||
target == PIPE_TEXTURE_CUBE_ARRAY);
|
||||
|
||||
format_desc = util_format_description(format);
|
||||
if (!format_desc)
|
||||
return false;
|
||||
|
||||
if (util_format_is_intensity(format))
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue