zink: allow direct memory mapping for any COHERENT+CACHED buffer
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 24 Oct 2022 15:58:13 +0000 (11:58 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 25 Oct 2022 02:06:23 +0000 (02:06 +0000)
commita3552048c7e7b8afebfc99caac6d555439ddf2bc
tree9ebcd616752dd6091fda11eecbfa9b9e8389648f
parent71ee1dd597e7a5ca6c7847e1110cfc49a4974201
zink: allow direct memory mapping for any COHERENT+CACHED buffer

some drivers may provide this in heaps that get used by non-staging resources,
so avoid extra copies in that case

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19281>
src/gallium/drivers/zink/zink_bo.h
src/gallium/drivers/zink/zink_resource.c