From 39f919707afe5185733206f6f22a09b8f19a4937 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 22 Apr 2024 13:05:32 +0200 Subject: [PATCH] panfrost: remove nonsensical assert This checks against all valid targets, which is kinda confusing to read. Let's just drop this. Reviewed-by: Boris Brezillon Part-of: --- src/gallium/drivers/panfrost/pan_screen.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index fc691420232..a7892610d8c 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -551,12 +551,6 @@ panfrost_is_format_supported(struct pipe_screen *screen, { struct panfrost_device *dev = pan_device(screen); - assert(target == PIPE_BUFFER || target == PIPE_TEXTURE_1D || - target == PIPE_TEXTURE_1D_ARRAY || target == PIPE_TEXTURE_2D || - target == PIPE_TEXTURE_2D_ARRAY || target == PIPE_TEXTURE_RECT || - target == PIPE_TEXTURE_3D || target == PIPE_TEXTURE_CUBE || - target == PIPE_TEXTURE_CUBE_ARRAY); - /* MSAA 2x gets rounded up to 4x. MSAA 8x/16x only supported on v5+. * TODO: debug MSAA 8x/16x */