asahi: generalize compression check

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34585>
This commit is contained in:
Alyssa Rosenzweig 2025-02-25 12:03:17 -05:00 committed by Marge Bot
parent 72f3dcc8da
commit 0dca602aff

View file

@ -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;