On Fri, Jun 1, 2018 at 2:04 AM, Keith Packard keithp@keithp.com wrote:
Eric Anholt eric@anholt.net writes:
Just wait for all tasks to complete when any object is freed? That's going to be bad for performance. Or are you saying that you already have the connection between the task and its objects (and, if so, why aren't you just doing refcounting correctly through that path?)
How about wait on close of the DRM device?
Yeah, that's what this patch for: get preclose back and do task wait in it before free buffers. I still think this is best way in my case (and may be other drivers).