commit | c5a656818492d3f772f2236cd5cbb407616cd188 | [log] [tgz] |
---|---|---|
author | Rob Clark <robclark@freedesktop.org> | Wed May 09 07:40:29 2018 -0400 |
committer | Rob Clark <robclark@freedesktop.org> | Wed May 09 07:40:29 2018 -0400 |
tree | a2ac20f8b58d537c0b993f9a231223526a5ea7b3 | |
parent | 1ac3ecde2f2c9afd7110389eccc6860daa6627ca [diff] |
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>