From 0dca602aff269b3bfcddc2e825ec4fdee4bbfdc0 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 25 Feb 2025 12:03:17 -0500 Subject: [PATCH] asahi: generalize compression check Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 76d0c9f79ba..39532de49bf 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -503,7 +503,7 @@ agx_resource_create_with_modifiers(struct pipe_screen *screen, * inferring the shader image flag. Do so to avoid reallocation in case the * resource is later used as an image. */ - if (nresource->modifier != DRM_FORMAT_MOD_APPLE_GPU_TILED_COMPRESSED && + if (!ail_is_drm_modifier_compressed(nresource->modifier) && templ->depth0 == 1) { nresource->base.bind |= PIPE_BIND_SHADER_IMAGE;