asahi: gracefully handle allocating linear images
authorKarol Herbst <git@karolherbst.de>
Fri, 1 Sep 2023 09:52:50 +0000 (11:52 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 18:50:33 +0000 (18:50 +0000)
commit3bc09aaf1ab142292ba7fe669dec1443e55f4e41
tree769db2da7be7a585cb5e83fb60984aaf253f7141
parent01aa487c4077a516cdd5e77e2c00da2ab8145c6e
asahi: gracefully handle allocating linear images

Frontends might try to allocate linear textures or images, we  should
gracefully return NULL so frontends can do fallback paths.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25052>
src/gallium/drivers/asahi/agx_pipe.c