From 4802168b940e88088ffb0a89351980915472b486 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 13 Dec 2022 20:06:50 -0500 Subject: [PATCH] panfrost: Remove RGTC emulation relic u_transfer_helper no longer emulates RGTC, so this code path is dead. RGTC emulation now happens in the state tracker so the formats will work out properly. (Similar to how other BCn formats are emulated in mesa/st.) Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 570eb8d..7b416e5 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -854,14 +854,6 @@ pan_alloc_staging(struct panfrost_context *ctx, struct panfrost_resource *rsc, static enum pipe_format pan_blit_format(enum pipe_format fmt) { - const struct util_format_description *desc; - desc = util_format_description(fmt); - - /* This must be an emulated format (using u_transfer_helper) as if it - * was real RGTC we wouldn't have used AFBC and needed a blit. */ - if (desc->layout == UTIL_FORMAT_LAYOUT_RGTC) - fmt = PIPE_FORMAT_R8G8B8A8_UNORM; - return fmt; } -- 2.7.4