commit | c41f10eb9ebf82f9d37f83ec0a182215600327cd | [log] [tgz] |
---|---|---|
author | Asahi Lina <lina@asahilina.net> | Sun Feb 26 15:00:45 2023 +0900 |
committer | Marge Bot <emma+marge@anholt.net> | Thu Mar 16 20:42:01 2023 +0000 |
tree | edfee84f0ad57eefe3d7e7a080df3e0ccdd91f54 | |
parent | e6b565699fcc22a3f68377b80f03c17f5204c1da [diff] |
asahi: Make agx_flush_resource reallocate non-shareable resources It's not legal to share a resource that isn't PIPE_BIND_SHARED, but flush_resource needs to prepare a resource for potential sharing. Let's allocate a new resource and blit it over when this happens. See also: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13154 Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21620>