diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 15265cfd597..57f4927538c 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -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 || diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index c9b6ad047ed..c30d9015ca8 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -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; diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c index f1b485a13c8..5b3c9627078 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_format.c +++ b/src/gallium/drivers/llvmpipe/lp_test_format.c @@ -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