diff --git a/src/util/format/u_format.c b/src/util/format/u_format.c index 481e3e0a457..bd989c33f4e 100644 --- a/src/util/format/u_format.c +++ b/src/util/format/u_format.c @@ -100,11 +100,6 @@ util_format_is_float(enum pipe_format format) const struct util_format_description *desc = util_format_description(format); int i; - assert(desc); - if (!desc) { - return FALSE; - } - i = util_format_get_first_non_void_channel(format); if (i < 0) { return FALSE; @@ -340,8 +335,6 @@ util_get_depth_format_mrd(const struct util_format_description *desc) double mrd = 1.0 / ((1 << 24) - 1); unsigned depth_channel; - assert(desc); - /* * Some depth formats do not store the depth component in the first * channel, detect the format and adjust the depth channel. Get the diff --git a/src/util/tests/format/u_format_compatible_test.c b/src/util/tests/format/u_format_compatible_test.c index 6d3ce5efa8a..46266a6af7f 100644 --- a/src/util/tests/format/u_format_compatible_test.c +++ b/src/util/tests/format/u_format_compatible_test.c @@ -41,16 +41,10 @@ test_all(void) for (src_format = 1; src_format < PIPE_FORMAT_COUNT; ++src_format) { const struct util_format_description *src_format_desc; src_format_desc = util_format_description(src_format); - if (!src_format_desc) { - continue; - } for (dst_format = 1; dst_format < PIPE_FORMAT_COUNT; ++dst_format) { const struct util_format_description *dst_format_desc; dst_format_desc = util_format_description(dst_format); - if (!dst_format_desc) { - continue; - } if (dst_format == src_format) { continue;