asahi: Don't allow linear depth/stencil buffers
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 4 Mar 2023 18:16:54 +0000 (13:16 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Mar 2023 18:29:52 +0000 (18:29 +0000)
commite61d6540e63b7866812b89264e4329e1ad3a9664
tree2b804d7a46c4b45fa021d45f3e12f56afb545b30
parente61d022313a06e058e2585735c5d2daebe959d96
asahi: Don't allow linear depth/stencil buffers

We don't have a way to tell the ZLS hardware to use linear buffers, so if a
buffer could be used for depth/stencil, we have to twiddle. This isn't a problem
in practice, since depth/stencil buffers can't be shared across processes or
mapped directly as linear.

Fixes faults in depthstencil-render-miplevels, which was picking linear for one
buffer because of a STAGING bind flag. But that won't work :-)

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