llvmpipe: 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
c23c8f18ca
commit
0dbec9c059
|
@ -667,8 +667,6 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
|||
const struct util_format_description *format_desc;
|
||||
|
||||
format_desc = util_format_description(format);
|
||||
if (!format_desc)
|
||||
return false;
|
||||
|
||||
assert(target == PIPE_BUFFER ||
|
||||
target == PIPE_TEXTURE_1D ||
|
||||
|
|
|
@ -670,7 +670,6 @@ generate_fs_loop(struct gallivm_state *gallivm,
|
|||
if (key->depth.enabled ||
|
||||
key->stencil[0].enabled) {
|
||||
zs_format_desc = util_format_description(key->zsbuf_format);
|
||||
assert(zs_format_desc);
|
||||
|
||||
if (shader->info.base.properties[TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL])
|
||||
depth_mode = EARLY_DEPTH_TEST | EARLY_DEPTH_WRITE;
|
||||
|
|
|
@ -375,9 +375,6 @@ test_all(unsigned verbose, FILE *fp)
|
|||
const struct util_format_description *format_desc;
|
||||
|
||||
format_desc = util_format_description(format);
|
||||
if (!format_desc) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO: test more
|
||||
|
|
Loading…
Reference in New Issue