OSDN Git Service

freedreno: add fd_pipe refcounting
authorRob Clark <robclark@freedesktop.org>
Wed, 9 May 2018 11:40:29 +0000 (07:40 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 9 May 2018 11:40:29 +0000 (07:40 -0400)
commitc5a656818492d3f772f2236cd5cbb407616cd188
treea2ac20f8b58d537c0b993f9a231223526a5ea7b3
parent1ac3ecde2f2c9afd7110389eccc6860daa6627ca
freedreno: add fd_pipe refcounting

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).

Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno/freedreno-symbol-check
freedreno/freedreno_drmif.h
freedreno/freedreno_pipe.c
freedreno/freedreno_priv.h