diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-06-03 02:18:26 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-23 01:59:02 -0400 |
commit | 639212d01157266d9ee0b904fbc9f4a556e1c711 (patch) | |
tree | 85dfb1e0bb5aa09b5512470764f8da8da08feb53 /drivers/gpu/drm/nouveau/nouveau_gem.c | |
parent | f6d4e62145b597c6249c1dc9c1c3ecd66ba165f0 (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.c | 20 |
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 | ||
62 | int | 62 | int |
63 | nouveau_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 | |||
73 | void | ||
74 | nouveau_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 | |||
82 | int | ||
63 | nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain, | 83 | nouveau_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) |