commit | c3d96897de647bd5f6d4802c108a3f65a307d61b | [log] [tgz] |
---|---|---|
author | Keith Packard <keithp@keithp.com> | Fri Nov 22 05:31:01 2013 -0800 |
committer | Keith Packard <keithp@keithp.com> | Tue Nov 26 21:45:40 2013 -0800 |
tree | 2ee4277900b76fcaf328ebaf5ab6aed1f320172a | |
parent | c8a437f4c76527b3c8385699ccee07f35fe3f166 [diff] |
intel: Track known prime buffers for re-use If the application sends us a file descriptor pointing at a prime buffer that we've already got, we have to re-use the same bo_gem structure or chaos will result. Track the set of all known prime objects and look to see if the kernel has returned one of those for a new file descriptor. Also checks for prime buffers in the flink case. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>