summaryrefslogtreecommitdiff
path: root/freedreno/freedreno_drmif.h
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2013-05-15 13:18:02 -0400
committerRob Clark <robclark@freedesktop.org>2013-05-15 15:34:15 -0400
commit0b89e2730c41466e8d9c04c469679ba23d052ec9 (patch)
tree723d251c1394c596b8fbce9ce4c4ec9bfdd402d8 /freedreno/freedreno_drmif.h
parent63aeae123848d0bfbc0a35102cb9717cf496eab6 (diff)
freedreno: add handle and name tracking
Due to the evil userspace buffer tracking we have to do, and hacks for creating GEM buffer from fbdev/scanout, "evil-twin" fd_bo objects are problematic. So introduce hashtable tracking of bo's and dev's, to avoid getting duplicate fd_bo ptrs for the same underlying gem object, in particular when importing via flink name. Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno/freedreno_drmif.h')
-rw-r--r--freedreno/freedreno_drmif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/freedreno/freedreno_drmif.h b/freedreno/freedreno_drmif.h
index ba99afde..54b900e7 100644
--- a/freedreno/freedreno_drmif.h
+++ b/freedreno/freedreno_drmif.h
@@ -68,6 +68,7 @@ enum fd_param_id {
*/
struct fd_device * fd_device_new(int fd);
+struct fd_device * fd_device_ref(struct fd_device *dev);
void fd_device_del(struct fd_device *dev);