From ce8a0340c70fa3f181e0b0725322b29f36166fa3 Mon Sep 17 00:00:00 2001 From: Ari Hirvonen Date: Mon, 15 Jun 2015 15:26:37 +0900 Subject: drm/nouveau: add GEM_SET_TILING staging ioctl Add new NOUVEAU_GEM_SET_TILING ioctl to set correct tiling mode for imported dma-bufs. This ioctl is staging for now and enabled with the "staging_tiling" module option. Signed-off-by: Ari Hirvonen [acourbot@nvidia.com: carry upstream, many fixes] Signed-off-by: Alexandre Courbot --- drm/nouveau/nouveau_gem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drm/nouveau/nouveau_gem.h') diff --git a/drm/nouveau/nouveau_gem.h b/drm/nouveau/nouveau_gem.h index e4049faca..56e741d98 100644 --- a/drm/nouveau/nouveau_gem.h +++ b/drm/nouveau/nouveau_gem.h @@ -23,6 +23,8 @@ 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_set_tiling(struct drm_device *, void *, + 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 *, -- cgit v1.2.1