freedreno/drm: Drop pipe ref to device
authorRob Clark <robdclark@chromium.org>
Sat, 10 Dec 2022 20:39:40 +0000 (12:39 -0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 19:14:12 +0000 (19:14 +0000)
commitdb0f273cfb48d1229e2ca16dac661b484b486264
tree2beb9de6a4993e717a442ac9e1faaa0c7666a869
parentc196e13e1f0b501ed5e5ace38af631f6d6da37ba
freedreno/drm: Drop pipe ref to device

The context and screen already holds refs to the device.  But since
fd_bo_fence holds a ref to the pipe, anyone anywhere leaking a single
bo with unwaited fences could cause the device to leak indirectly.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20263>
src/freedreno/drm/freedreno_pipe.c