From 3b927567ac927316eb11901f50ee1573ead44fd2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 7 Jan 2024 20:54:51 -0400 Subject: [PATCH] Revert "asahi: don't canonicalize nans/flush denorms when copying" This reverts commit ab7fb3d40072612ffe4d073ff2882102ffcb8a1c. This breaks ./arb_copy_image-formats -auto --samples=4 since we need the blit path for compression transitions. The correct thing to do is cast the formats. Part-of: --- src/gallium/drivers/asahi/agx_blit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gallium/drivers/asahi/agx_blit.c b/src/gallium/drivers/asahi/agx_blit.c index ca1e9d24af8..548aafe0e6f 100644 --- a/src/gallium/drivers/asahi/agx_blit.c +++ b/src/gallium/drivers/asahi/agx_blit.c @@ -412,10 +412,6 @@ try_copy_via_blit(struct pipe_context *pctx, struct pipe_resource *dst, if (dst->target != src->target) return false; - /* TODO: float formats don't roundtrip, cast */ - if (util_format_is_float(dst->format) || util_format_is_float(src->format)) - return false; - struct pipe_blit_info info = { .dst = {