freedreno/drm: Add fd_bo_upload()
authorRob Clark <robdclark@chromium.org>
Wed, 9 Feb 2022 19:02:21 +0000 (11:02 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 02:03:30 +0000 (02:03 +0000)
commit9bcc98325602a47e30fcac7016c60748f2ba0c19
tree4af83ac14ddad5886b00e4cf78169983b1231551
parent115518ec3531ba2329384e275d631dbbc1e3ba64
freedreno/drm: Add fd_bo_upload()

There are some buffers that we mmap just to write to them a single time.
Add the possibility of the drm backend to provide an alternate upload
path to avoid these mmap's.

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