freedreno/drm: Add FD_BO_SHARED hint
authorRob Clark <robdclark@chromium.org>
Sun, 6 Feb 2022 17:22:59 +0000 (09:22 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 02:03:30 +0000 (02:03 +0000)
commit115518ec3531ba2329384e275d631dbbc1e3ba64
tree3a9e4a4837067135e3cc5384ef64b251a58d8b7a
parentf846181fe533da11598a1dfa38ff3c0241fcf20c
freedreno/drm: Add FD_BO_SHARED hint

With the virtio backend we will need to pass an extra flag when
allocating buffers that will be shared cross-device (such as with
virtio-wl for passing between host and guest)

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14900>
src/freedreno/drm/freedreno_drmif.h
src/gallium/drivers/freedreno/freedreno_resource.c