asahi: Streamline modifier selection
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 6 Feb 2022 14:58:02 +0000 (09:58 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Feb 2022 23:48:32 +0000 (23:48 +0000)
commit570004175f45aa65ee27f09f7cbcbf763711efc6
tree3461e442a61effad3d93824cfbdbf988972cd2e5
parent2d6233d04f81d0fbee349a5d9856964e8a891be5
asahi: Streamline modifier selection

We can only use linear for 2D images, not even 2D arrays. Even for 2D
images, we only want to use linear if:

* We are required to use linear due to window system requirements.
* The texture is streaming.

Otherwise, we want to use tiled textures. (Or better, compressed, but we
don't support that yet.)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>
src/gallium/drivers/asahi/agx_pipe.c