freedreno/drm: Extract out "softpin" submit/ringbuffer base class
authorRob Clark <robdclark@chromium.org>
Tue, 15 Mar 2022 00:14:59 +0000 (17:14 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 02:03:30 +0000 (02:03 +0000)
commitea339137b0cef22385b9076921f7325e82776674
tree05b88fbcab9bc4afa637d1a402884cacdb24c7a3
parent72a427244f545b9f2713b3f0aed23d04cb953727
freedreno/drm: Extract out "softpin" submit/ringbuffer base class

We are going to want basically the identical thing, other than
flush_submit_list, for virtio backend.  Now that we've moved various
other dependencies into the base classes, extract out an abstract base
class for submit/ringbuffer.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14900>
src/freedreno/drm/freedreno_ringbuffer_sp.c [new file with mode: 0644]
src/freedreno/drm/freedreno_ringbuffer_sp.h [new file with mode: 0644]
src/freedreno/drm/freedreno_ringbuffer_sp_reloc.h [moved from src/freedreno/drm/msm/msm_ringbuffer_sp.h with 62% similarity]
src/freedreno/drm/meson.build
src/freedreno/drm/msm/msm_pipe.c
src/freedreno/drm/msm/msm_priv.h
src/freedreno/drm/msm/msm_ringbuffer_sp.c