From 88ede65be8026cc3649f5241ebf3a7b8f1269c31 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 16 Feb 2021 23:02:11 -0500 Subject: [PATCH] panfrost: Remove useless check Already checked in format_supported (only difference being cube map arrays but the extension isn't advertised yet anyway due to missing geometry shaders.) Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 990ed28a..4aaa15e 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -716,21 +716,6 @@ panfrost_resource_create_with_modifier(struct pipe_screen *screen, { struct panfrost_device *dev = pan_device(screen); - /* Make sure we're familiar */ - switch (template->target) { - case PIPE_BUFFER: - case PIPE_TEXTURE_1D: - case PIPE_TEXTURE_2D: - case PIPE_TEXTURE_3D: - case PIPE_TEXTURE_CUBE: - case PIPE_TEXTURE_RECT: - case PIPE_TEXTURE_1D_ARRAY: - case PIPE_TEXTURE_2D_ARRAY: - break; - default: - unreachable("Unknown texture target\n"); - } - if (dev->ro && (template->bind & (PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | PIPE_BIND_SHARED))) return panfrost_create_scanout_res(screen, template, modifier); -- 2.7.4