diff options
authorFrank Binns2015-01-14 08:07:51 -0600
committerEmil Velikov2015-01-23 17:02:27 -0600
commit0c5aaeef51233aec89ee1f43f03d457f278f8fa0 (patch)
tree86b8efa91f0f479a73933e5f04c6008d9a074f47 /xf86drm.h
parentad8bbfd3c74466f088be8088d2d0524bed392b71 (diff)
Add new drmOpenRender function
Add a new function, drmOpenRender, that can be used to open render nodes. This can be used in the same way that drmOpenControl is used to open control nodes. Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'xf86drm.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/xf86drm.h b/xf86drm.h
index c024cc44..bfd0670b 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -79,6 +79,7 @@ extern "C" {
79#define DRM_DIR_NAME "/dev/dri" 79#define DRM_DIR_NAME "/dev/dri"
80#define DRM_DEV_NAME "%s/card%d" 80#define DRM_DEV_NAME "%s/card%d"
81#define DRM_CONTROL_DEV_NAME "%s/controlD%d" 81#define DRM_CONTROL_DEV_NAME "%s/controlD%d"
82#define DRM_RENDER_DEV_NAME "%s/renderD%d"
82#define DRM_PROC_NAME "/proc/dri/" /* For backward Linux compatibility */ 83#define DRM_PROC_NAME "/proc/dri/" /* For backward Linux compatibility */
83 84
84#define DRM_ERR_NO_DEVICE (-1001) 85#define DRM_ERR_NO_DEVICE (-1001)
@@ -552,6 +553,7 @@ do { register unsigned int __old __asm("o0"); \
552extern int drmAvailable(void); 553extern int drmAvailable(void);
553extern int drmOpen(const char *name, const char *busid); 554extern int drmOpen(const char *name, const char *busid);
554extern int drmOpenControl(int minor); 555extern int drmOpenControl(int minor);
556extern int drmOpenRender(int minor);
555extern int drmClose(int fd); 557extern int drmClose(int fd);
556extern drmVersionPtr drmGetVersion(int fd); 558extern drmVersionPtr drmGetVersion(int fd);
557extern drmVersionPtr drmGetLibVersion(int fd); 559extern drmVersionPtr drmGetLibVersion(int fd);