aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_gem.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-03 02:18:26 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-06-23 01:59:02 -0400
commit639212d01157266d9ee0b904fbc9f4a556e1c711 (patch)
tree85dfb1e0bb5aa09b5512470764f8da8da08feb53 /drivers/gpu/drm/nouveau/nouveau_gem.c
parentf6d4e62145b597c6249c1dc9c1c3ecd66ba165f0 (diff)
drm/nouveau/gem: implement stub hooks for GEM object open/close
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_gem.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gem.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
index b4218d719770..da3c8bbd9d8f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -60,6 +60,26 @@ nouveau_gem_object_del(struct drm_gem_object *gem)
60} 60}
61 61
62int 62int
63nouveau_gem_object_open(struct drm_gem_object *gem, struct drm_file *file_priv)
64{
65 struct nouveau_fpriv *fpriv = nouveau_fpriv(file_priv);
66
67 if (!fpriv->vm)
68 return 0;
69
70 return 0;
71}
72
73void
74nouveau_gem_object_close(struct drm_gem_object *gem, struct drm_file *file_priv)
75{
76 struct nouveau_fpriv *fpriv = nouveau_fpriv(file_priv);
77
78 if (!fpriv->vm)
79 return;
80}
81
82int
63nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain, 83nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain,
64 uint32_t tile_mode, uint32_t tile_flags, 84 uint32_t tile_mode, uint32_t tile_flags,
65 struct nouveau_bo **pnvbo) 85 struct nouveau_bo **pnvbo)