freedreno/drm: pipe should hold reference to device
authorRob Clark <robdclark@chromium.org>
Thu, 22 Apr 2021 23:17:17 +0000 (16:17 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 28 Apr 2021 15:36:42 +0000 (15:36 +0000)
commit2c9e8db28d3572db7aedf89dc693dd8987d357ab
treefd99ff254ab2f034435da268778f5a3ff15b6950
parentad9654a4c153c6dbe93ce9b8459837a9c008a138
freedreno/drm: pipe should hold reference to device

A more direct solution would be for bo's to have a reference to the
device.  But bo's are ref/unrefd more frequently.

This avoids async submits unrefing a bo after the device handle-
table is freed.

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