[PATCH] dri2: add support for render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- src/gallium/state_trackers/egl/x11/x11_screen.c | 2 +- src/glx/dri2.c | 6 +- src/glx/dri2.h | 3 ++- src/glx/dri2_glx.c | 20 +++

[PATCH] add support for render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- configure.ac | 2 +- src/nouveau_dri2.c | 11 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ff9c337..61dfb01 100644 --- a/configure.ac +++ b/configure.ac @@ -67,7 +67,7 @@ XO

[PATCH] dri2: add support for render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- glx/glxdri2.c | 3 ++- hw/xfree86/dri2/dri2.c| 11 ++- hw/xfree86/dri2/dri2.h| 8 ++-- hw/xfree86/dri2/dri2ext.c | 8 ++-- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/glx/glxdri2.c b/gl

[PATCH] dri2proto: add device_requires_auth in xDRI2ConnectReply to support render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- dri2proto.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dri2proto.h b/dri2proto.h index 128b807..4d11ba7 100644 --- a/dri2proto.h +++ b/dri2proto.h @@ -35,7 +35,7 @@ #define DRI2_NAME "DRI2

[PATCH 5/5] configure.ac: bump version to 2.4.41 for release

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- configure.ac | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 0c19929..df56066 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ AC_PREREQ([2.63]) AC_INIT([libdrm], -

[PATCH 4/5] nouveau: bump version to 2.4.34 for release

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- nouveau/libdrm_nouveau.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nouveau/libdrm_nouveau.pc.in b/nouveau/libdrm_nouveau.pc.in index 6170613..f3b99cf 100644 --- a/nouveau/libdrm_nouveau.pc.in +++ b/nouveau/libdrm_n

[PATCH 3/5] nouveau: Allow opening a specific type of drm device

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- nouveau/nouveau.c | 11 +-- nouveau/nouveau.h | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c index 940d933..1402852 100644 --- a/nouveau/nouveau.c +++ b/nouveau/nouveau.c @

[PATCH 2/5] drm: generate the path of a different device type for the same drm device

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- .gitignore | 1 + tests/Makefile.am| 1 + tests/same_device_but_type.c | 52 xf86drm.c| 44 + xf86drm.h

[PATCH 1/5] drm: allow opening the drm device by type (control, render or render_only)

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Signed-off-by: Martin Peres --- tests/name_from_fd.c | 19 ++ xf86drm.c| 105 --- xf86drm.h| 7 3 files changed, 100 insertions(+), 31 deletions(-) diff --git a/tests/name_from_fd.c b/tes

[PATCH 4/4] drm/nouveau: Support render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Martin Peres Enable support for drm render nodes for nouveau by flagging the ioctls that are safe and just needed for rendering. Signed-off-by: Martin Peres --- drivers/gpu/drm/nouveau/nouveau_drm.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --

[PATCH 3/4] drm/i915: Support render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Kristian H?gsberg Enable support for drm render nodes for i915 by flagging the ioctls that are safe and just needed for rendering. Signed-off-by: Kristian H?gsberg --- drivers/gpu/drm/i915/i915_dma.c | 36 ++-- drivers/gpu/drm/i915/i915_drv.c | 3 ++- 2 f

[PATCH 2/4] drm: Add support for render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Kristian H?gsberg This patch introduces a new kind of drm device node: the render node. A render node exposes a safe subset of the legacy drm device ioctls and can only be used for rendering. The legacy node supports modesetting, DRI1 and global buffer sharing, while the render node only s

[PATCH 1/4] drm: Fix DRM_MINOR limits for control and render nodes

2012-12-17 Thread martin.pe...@free.fr
From: Kristian H?gsberg We got the minor number base right, but limit is too big and causes the minor numer ranges for the control and render nodes to overlap. v2: fix a off-by-one overlap as suggested by ihadzic at research.bell-labs.com Signed-off-by: Martin Peres --- drivers/gpu/drm/drm_st