panfrost: Remove bogus assert
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 14 Oct 2022 19:13:24 +0000 (15:13 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Nov 2022 16:52:11 +0000 (16:52 +0000)
Nothing enforces this except perhaps the implicit structure of shader keys.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19363>

src/gallium/drivers/panfrost/pan_context.c

index e3ecd44..cce278d 100644 (file)
@@ -500,10 +500,6 @@ panfrost_new_variant_locked(
                 if (variants->variant_space == 0)
                         variants->variant_space = 1;
 
-                /* Arbitrary limit to stop runaway programs from
-                 * creating an unbounded number of shader variants. */
-                assert(variants->variant_space < 1024);
-
                 unsigned msize = sizeof(struct panfrost_shader_state);
                 variants->variants = realloc(variants->variants,
                                              variants->variant_space * msize);