drm/nouveau/gem: implement stub hooks for GEM object open/close
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
f6d4e62145
commit
639212d011
|
@ -426,6 +426,8 @@ static struct drm_driver driver = {
|
|||
|
||||
.gem_init_object = nouveau_gem_object_new,
|
||||
.gem_free_object = nouveau_gem_object_del,
|
||||
.gem_open_object = nouveau_gem_object_open,
|
||||
.gem_close_object = nouveau_gem_object_close,
|
||||
|
||||
.name = DRIVER_NAME,
|
||||
.desc = DRIVER_DESC,
|
||||
|
|
|
@ -1329,6 +1329,9 @@ extern int nouveau_gem_new(struct drm_device *, int size, int align,
|
|||
uint32_t tile_flags, struct nouveau_bo **);
|
||||
extern int nouveau_gem_object_new(struct drm_gem_object *);
|
||||
extern void nouveau_gem_object_del(struct drm_gem_object *);
|
||||
extern int nouveau_gem_object_open(struct drm_gem_object *, struct drm_file *);
|
||||
extern void nouveau_gem_object_close(struct drm_gem_object *,
|
||||
struct drm_file *);
|
||||
extern int nouveau_gem_ioctl_new(struct drm_device *, void *,
|
||||
struct drm_file *);
|
||||
extern int nouveau_gem_ioctl_pushbuf(struct drm_device *, void *,
|
||||
|
|
|
@ -59,6 +59,26 @@ nouveau_gem_object_del(struct drm_gem_object *gem)
|
|||
kfree(gem);
|
||||
}
|
||||
|
||||
int
|
||||
nouveau_gem_object_open(struct drm_gem_object *gem, struct drm_file *file_priv)
|
||||
{
|
||||
struct nouveau_fpriv *fpriv = nouveau_fpriv(file_priv);
|
||||
|
||||
if (!fpriv->vm)
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
nouveau_gem_object_close(struct drm_gem_object *gem, struct drm_file *file_priv)
|
||||
{
|
||||
struct nouveau_fpriv *fpriv = nouveau_fpriv(file_priv);
|
||||
|
||||
if (!fpriv->vm)
|
||||
return;
|
||||
}
|
||||
|
||||
int
|
||||
nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain,
|
||||
uint32_t tile_mode, uint32_t tile_flags,
|
||||
|
|
Loading…
Reference in New Issue