freedreno: add fd_pipe refcounting

Graphics / Mesa 3D Graphics Library / libdrm - Rob Clark [] - 9 May 2018 11:40 EDT

In mesa/gallium, a pipe_fence can outlive the pipe_context it was created from. But to wait on the fence we need to know the submit-queue (ie. the fd_pipe).

The most straightforward way to fix this is to add reference counting to the fd_pipe and let the fence hold a reference to the pipe (rather than hanging on to the context, which might have been destroyed before the fence).

c5a65681 freedreno: add fd_pipe refcounting
freedreno/freedreno-symbol-check | 1 +
freedreno/freedreno_drmif.h | 1 +
freedreno/freedreno_pipe.c | 9 +++++++++
freedreno/freedreno_priv.h | 1 +
4 files changed, 12 insertions(+)


  • Share