freedreno: Re-work fd_submit fence interface
authorRob Clark <robdclark@chromium.org>
Mon, 19 Apr 2021 20:03:21 +0000 (13:03 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 28 Apr 2021 15:36:42 +0000 (15:36 +0000)
commitaafcd8aacb8feda179017ba9064272ff6573a78e
tree0bb538f6af3ed1f92974c6291c19d0c51814fd8f
parentd531c8d22a52fa08209069c70dbaf6650682a24e
freedreno: Re-work fd_submit fence interface

Move everything into a struct assocated with the pipe_fence_handle, so
that the drm layer can fill in the seqn/fd fences directly.

This will give us a comvenient place to insert a util_queue_fence in the
next commit.

While we're at it, extract the uint32_t fence (previously called
'timestamp' in place, a kgsl legacy) into a struct that encapsulates
both the kernel fence and the userspace fence.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10444>
16 files changed:
src/freedreno/computerator/main.c
src/freedreno/drm/freedreno_drmif.h
src/freedreno/drm/freedreno_pipe.c
src/freedreno/drm/freedreno_priv.h
src/freedreno/drm/freedreno_ringbuffer.c
src/freedreno/drm/freedreno_ringbuffer.h
src/freedreno/drm/msm_pipe.c
src/freedreno/drm/msm_ringbuffer.c
src/freedreno/drm/msm_ringbuffer_sp.c
src/freedreno/perfcntrs/fdperf.c
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_fence.c
src/gallium/drivers/freedreno/freedreno_fence.h
src/gallium/drivers/freedreno/freedreno_gmem.c