freedreno/drm: Add optimized path for freeing many BOs
authorRob Clark <robdclark@chromium.org>
Thu, 17 Nov 2022 21:53:07 +0000 (13:53 -0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 19 Nov 2022 16:32:25 +0000 (16:32 +0000)
commite5a60e1df27fb13ee4ffd952ac868b55bde54090
treeabe8e74528aac7a0b0a7bacc7185e61e6cff5833
parentd7511ad784ce0fc6a5060de2d7c969a1300a0fb9
freedreno/drm: Add optimized path for freeing many BOs

Submits tend to hold references to a lot of BOs, which get unref'd when
the submit is destroyed/retired.  For now, all this does is reduce lock
aquire/release, but the next commit will build on it.

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