[PATCH] dix: make inputInfo.all_devices and all_master_devices real devices (#50641)

2012-07-05 Thread Peter Hutterer
These devices are used as placeholders for devices in passive grabs and replaced with the real device once the grab activates. The current static allocation means they don't have devPrivates allocated. If SELinux is enabled and a client registers a passive grab on XIAll(Master)Devices, this causes

Re: [PATCH] Replace padlength tables with inline functions from misc.h

2012-07-05 Thread Peter Hutterer
On Mon, Jul 02, 2012 at 08:30:49PM -0700, Alan Coopersmith wrote: Adds new function padding_for_int32() and uses existing pad_to_int32() depending on required results. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- On 07/ 2/12 10:58 AM, Keith Packard wrote: (also, we

Re: [PATCH] list.h: don't crash when removing an element from a NULL list

2012-07-05 Thread Keith Packard
Peter Hutterer peter.hutte...@who-t.net writes: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Keith, please merge this directly if you're happy with it. It looks fine, but I don't see any place that this actually matters in current code? (the more I see of these twisty list

Re: [PATCH] list.h: don't crash when removing an element from a NULL list

2012-07-05 Thread Peter Hutterer
On Wed, Jul 04, 2012 at 11:32:38PM -0700, Keith Packard wrote: Peter Hutterer peter.hutte...@who-t.net writes: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Keith, please merge this directly if you're happy with it. It looks fine, but I don't see any place that this

[PATCH] randr: add provider object (v9)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com A provider object represents a GPU or virtual device that provides rendering or output services to the X server. This protocol allow controlling provider objects for output and offload slave devices. v1.1: fix typo add missing define v2: rename nProperties

[PATCH 02/36] PRIVATES HACK: fix crash on hotplug for nosw

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com --- dix/privates.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/privates.c b/dix/privates.c index 0948325..2b8af27 100644 --- a/dix/privates.c +++ b/dix/privates.c @@ -348,7 +348,7 @@ dixRegisterPrivateKey(DevPrivateKey key,

[PATCH 01/36] Use screen-specific privates for exa pixmap and gc privates

2012-07-05 Thread Dave Airlie
From: Keith Packard kei...@keithp.com Signed-off-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com --- exa/exa.c | 10 -- exa/exa_priv.h | 12 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/exa/exa.c b/exa/exa.c index

[PATCH 04/36] screen: split out screen init code. (v2)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is a precursor for reusing this code to init gpu screens. v2: fixup int check as per Keith's review. Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com --- dix/dispatch.c | 44

[PATCH 05/36] dix: introduce gpu screens. (v4)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This patch introduces gpu screens into screenInfo. It adds interfaces for adding and removing gpu screens, along with adding private fixup, block handler support, and scratch pixmap init. GPU screens have a myNum that is offset by GPU_SCREEN_OFFSET (256),

[PATCH 06/36] xf86: cleanup helper code to use a pointer. (v1.1)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is in preparation for gpu screens in here, just use a pScrn pointer to point at the new screen. suggested by Keith. v1.1: fix spacing as suggested by Aaron. Reviewed-by: Keith Packard kei...@keithp.com Reviewed-by: Aaron Plattner aplatt...@nvidia.com

[PATCH 07/36] xfree86: add DDX gpu screen support. (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds the structures and interfaces required for adding/deleteing gpu screens at the DDX level. The platform probe can pass a new flag to the driver, so they can call xf86AllocateScreen and pass back the new gpu screen flag. It also calls the gpu

[PATCH 09/36] xfree86: add platform bus hotplug support (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This provides add/remove support for platform devices at xfree86 ddx level. v2: cleanup properly if no driver found. v3: load the modesetting driver before checking driver list. Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 10/36] xfree86: add autoAddGPU option (v2)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This option is to stop the X server adding non-primary devices as gpu screens. v2: fix per Keith's suggestion. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/common/xf86Config.c | 15 ++- hw/xfree86/common/xf86Globals.c

[PATCH 08/36] xserver/config: add udev/drm hotplug callbacks. (v2)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds callbacks into the ddx for udev gpu hotplug. v2: fix some strncmp returns. Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com --- config/udev.c | 42 ++

[PATCH 12/36] xfree86: add framework for provider support in ddx. (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the framework for DDX provider support. v2: as per keithp's suggestion remove the xf86 provider object and just store it in the toplevel object. v3: update for new protocol Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 13/36] dix: add unattached list for attaching screens to initially. (v1.1)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This list is meant for attaching unbound gpu screens to initially, before the client side rebinds them. v1.1: add another assert in the add path. Signed-off-by: Dave Airlie airl...@redhat.com --- dix/dispatch.c | 20

[PATCH 14/36] dix: attach unbound screens to protocol screen 0

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is the default attachment, unbound gpu screens get attached to the 0 protocol screen. detach on hotunplug. Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/common/xf86Init.c |3 +++

[PATCH 15/36] randr: expose unattached providers to the clients.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This provides the unattached provider list to the clients. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/rrprovider.c |8 1 file changed, 8 insertions(+) diff --git a/randr/rrprovider.c b/randr/rrprovider.c index b787b94..0a801d4

[PATCH 16/36] xf86dga: handle DGAAvailable for gpu screens. (v2)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com v2: Split out DGAAvailable into two interfaces, one for calls from protocol decoding and one for internal usage, after discussion with ajax and keithp. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/common/xf86DGA.c | 15

[PATCH 17/36] dix: add ability to link output slave gpus to the current gpu (v1.1)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Just add the interfaces to attach/detach output slaves, and a linked list to keep track of them. Hook up the randr providers list to include these slaves. v1.1: add another assert to the add path. Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 18/36] dix: pixmap sharing infrastructure (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is a hooks for pixmap sharing and tracking. The pixmap sharing ones get an integer handle for the pixmap and use a handle to be the backing for a pixmap. The tracker interface is to be used when a GPU needs to track pixmaps to be updated for another

[PATCH 19/36] exa: pixmap sharing infrastructure (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds exa interfaces for mixed exa so drivers can share and set shared pixmaps up correctly. v2: update for passing slave screen. v3: update for void * Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 20/36] randr: add initial scanout pixmap support (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com When randr notices a crtc configuration request for a slave device, it checks if the slave allocated pixmap exists and is suitable, if not it allocates a new shared pixmap from the master, shares it to the slave, and starts the master tracking damage to it, to

[PATCH 23/36] randr: fix tellchanged to work with slave scanouts

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Tell changed need to tell only for the master pixmap, however it gets called from various places for slave screens, so convert to telling clients about changes on the master screen. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/randr.c | 26

[PATCH 21/36] xf86: add initial scanout pixmap support

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Add the simple passthrough interface for drivers to use, so they can set scanout pixmaps. Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.h|5 +

[PATCH 24/36] randr: check the screen size bounds against the master

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com The master contains the complete screen size bounds, so check the width/height against it. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/rrcrtc.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/randr/rrcrtc.c

[PATCH 25/36] dix/pixmap: track dirty pixmaps in server. (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds two functions for drivers to use directly to keep a linked list of slave pixmaps to do damage tracking on and keep updated. It also adds a helper function that drivers may optionally call to do a simple copy area damage update. v2: use damage.h not

[PATCH 26/36] xf86/crtc: add new interface to detach slave crtcs

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This will detach any scanout pixmaps attached to slave crtcs. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.c | 20 hw/xfree86/modes/xf86Crtc.h |3 +++ 2 files changed, 23 insertions(+) diff --git

[PATCH 29/36] xf86: add output source setting callback

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds support for the randr callback for setting the output source for a device. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.c|6 +- hw/xfree86/modes/xf86RandR12.c | 35 +++ 2

[PATCH 27/36] randr: hook up output slave to screen resources return

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com When the client asks for the screen resources list, it will now get a list of crtc/outputs for the master + all attached slaves, this will let randr configure all attached slave devices properly. Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 28/36] randr: add output source setup

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the output sources to the associated list and adds the protocol handler for the randr SetProviderOutputSource. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/randrstr.h |8 randr/rrdispatch.c |2 +- randr/rrprovider.c |

[PATCH 30/36] xf86/cursor: fallback to sw cursor if we have slaves present.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Current USB devices have no hw rendered cursors, so we need the master GPU to render the cursor, so whenever we plug in a slave device, fallback to sw rendered cursors. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/ramdac/xf86Cursor.c |2

[PATCH 31/36] dix/xf86: initial offload slave tracking (v1.1)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com add the linked list and provider hooks. v1.1: add another assert in the add path. Signed-off-by: Dave Airlie airl...@redhat.com --- dix/dispatch.c | 19 +++ include/screenint.h |6 ++ include/scrnintstr.h |3 +++

[PATCH 22/36] randr: fixup constrain to work with slave screens.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Current code constrains the cursor to the crtcs on the master device, for slave outputs to work we have to include their crtcs in the constrain calculations. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/rrcrtc.c | 57

[PATCH 33/36] xf86: store scanout pixmap in the xf86 struct as well.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is so we can tell the scanout pixmap has changed between calls to the crtc set function. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.h|6 +- hw/xfree86/modes/xf86RandR12.c |4 2 files changed, 9

[PATCH 34/36] xf86: add callback for offloak sink setting support.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds support for setting the offload sink to the xf86 ddx. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.c|5 - hw/xfree86/modes/xf86RandR12.c | 27 +++ 2 files changed, 31

[PATCH 32/36] randr: add hooks for offload sink provider protocol

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the protocol handler and associated providers handling for the offload slaves, it allows two providers to be connected as offload sink/source. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/randrstr.h | 10 ++

[PATCH 36/36] dri2: add initial prime support. (v1.2)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the initial prime support for dri2 offload. The main thing is when we get a connection from a prime client, we stored the information and mark all drawables from that client as prime. We then create all buffers for that drawable on the prime device

Re: [v2] [PATCH 1/1] XSELinux: When SELinux is enabled the xserver seg faults

2012-07-05 Thread Richard Haines
Ok - I'll send an updated XSELinux patch [V3] as that will fix the crash plus a separate patch for the dix grab. I don't know the code that well but there are probably other places that may need checking. Richard --- On Thu, 5/7/12, Peter Hutterer peter.hutte...@who-t.net wrote: thanks for

[V3] [PATCH 1/1] XSELinux: When SELinux is enabled the xserver seg faults

2012-07-05 Thread Richard Haines
This patch was created using xorg-server-1.12.2 source. When using Fedora 17 with xorg-server-1.12.2 and SELinux is enabled ('setsebool xserver_object_manager on') the xserver will not load. The Xlog file has a seg fault pointing to XACE/SELinux. Bug 50641 was raised

[PATCH 1/1] dix: Check whether grab allowed by security provider

2012-07-05 Thread Richard Haines
This patch was created using xorg-server-1.12.2 source. Call XACE to verify if grab access is allowed. Signed-off-by: Richard Haines richard_c_hai...@btinternet.com --- dix/events.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dix/events.c b/dix/events.c index

Re: [PATCH] list.h: don't crash when removing an element from a NULL list

2012-07-05 Thread Keith Packard
Peter Hutterer peter.hutte...@who-t.net writes: no, but the selinux fix will need it (partially out of laziness, partially to make the code nicer). Ok. I'll merged it in then. (the more I see of these twisty list macros, the more I prefer open-coded lists though; wow this is hard to

Re: [PATCH 1/9] glx: Don't request prototypes for GL extension functions

2012-07-05 Thread Keith Packard
Ian Romanick i...@freedesktop.org writes: From: Ian Romanick ian.d.roman...@intel.com The server does not want GL extension prototypes. It never links with anything that could possibly provide implementations of these functions. It *is* the provide, and it does not provde these symbols.

Re: [PATCH] list.h: don't crash when removing an element from a NULL list

2012-07-05 Thread Keith Packard
Peter Hutterer peter.hutte...@who-t.net writes: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Keith, please merge this directly if you're happy with it. Merged. 8aa6d49..1679932 master - master -- keith.pack...@intel.com pgpEneA48ChhX.pgp Description: PGP signature

Re: [PATCH] dri2: add initial prime support. (v1.2)

2012-07-05 Thread Mario Kleiner
On 03.07.2012, at 20:47, Dave Airlie wrote: On Tue, Jul 3, 2012 at 7:39 PM, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: On 03.07.2012, at 16:22, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com This adds the initial prime support for dri2 offload. The main thing is when

Re: [PATCH 0/9] GLX features and minor cleanups

2012-07-05 Thread Keith Packard
Ian Romanick i...@freedesktop.org writes: Patches 1 through 5 have previously been posted. The only change to patch 1 is the commit message. I'm merging this stuff with Dave Airlie's R-b added (acked on IRC). We will need to have glproto released with a new version so that the X server build

Bug 45623: tested patch available (was:Extending the merge window until monday)

2012-07-05 Thread Torsten Kaiser
Could somebody consider committing the patch from https://bugs.freedesktop.org/show_bug.cgi?id=45623 to the xserver tree? I posted it a month ago the list, but got no reaction. See: http://lists.freedesktop.org/archives/xorg-devel/2012-June/031660.html And Jeremy Huddleston suggest in the bug,

[PATCH 03/29] xfree86: add framework for provider support in ddx. (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the framework for DDX provider support. v2: as per keithp's suggestion remove the xf86 provider object and just store it in the toplevel object. v3: update for new protocol Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 01/29] configure: bump randrproto min requirements to 1.4.0

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Needed to build latest randr stuff. Signed-off-by: Dave Airlie airl...@redhat.com --- configure.ac |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d1358a2..2442bac 100644 --- a/configure.ac +++

[PATCH 06/29] randr: expose unattached providers to the clients.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This provides the unattached provider list to the clients. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/rrprovider.c |8 1 file changed, 8 insertions(+) diff --git a/randr/rrprovider.c b/randr/rrprovider.c index b787b94..0a801d4

[PATCH 05/29] dix: attach unbound screens to protocol screen 0

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is the default attachment, unbound gpu screens get attached to the 0 protocol screen. detach on hotunplug. Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/common/xf86Init.c |3 +++

[PATCH 08/29] dix: add ability to link output slave gpus to the current gpu (v1.1)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Just add the interfaces to attach/detach output slaves, and a linked list to keep track of them. Hook up the randr providers list to include these slaves. v1.1: add another assert to the add path. Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 07/29] xf86dga: handle DGAAvailable for gpu screens. (v2)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com v2: Split out DGAAvailable into two interfaces, one for calls from protocol decoding and one for internal usage, after discussion with ajax and keithp. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/common/xf86DGA.c | 15

[PATCH 10/29] exa: pixmap sharing infrastructure (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds exa interfaces for mixed exa so drivers can share and set shared pixmaps up correctly. v2: update for passing slave screen. v3: update for void * Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 02/29] randr: add provider object and provider property support (v6)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the initial provider object and provider property support to the randr dix code. v2: destroy provider in screen close v2.1: fix whitespace v3: update for latest rev of protocol + renumber after 1.4 tearout. v4: fix logic issue, thanks Samsagax on

[PATCH 12/29] xf86: add initial scanout pixmap support

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Add the simple passthrough interface for drivers to use, so they can set scanout pixmaps. Reviewed-by: Keith Packard kei...@keithp.com Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.h|5 +

[PATCH 14/29] randr: fix tellchanged to work with slave scanouts

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Tell changed need to tell only for the master pixmap, however it gets called from various places for slave screens, so convert to telling clients about changes on the master screen. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/randr.c | 26

[PATCH 15/29] randr: check the screen size bounds against the master

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com The master contains the complete screen size bounds, so check the width/height against it. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/rrcrtc.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/randr/rrcrtc.c

[PATCH 16/29] dix/pixmap: track dirty pixmaps in server. (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds two functions for drivers to use directly to keep a linked list of slave pixmaps to do damage tracking on and keep updated. It also adds a helper function that drivers may optionally call to do a simple copy area damage update. v2: use damage.h not

[PATCH 13/29] randr: fixup constrain to work with slave screens.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Current code constrains the cursor to the crtcs on the master device, for slave outputs to work we have to include their crtcs in the constrain calculations. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/rrcrtc.c | 57

[PATCH 17/29] xf86/crtc: add new interface to detach slave crtcs

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This will detach any scanout pixmaps attached to slave crtcs. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.c | 20 hw/xfree86/modes/xf86Crtc.h |3 +++ 2 files changed, 23 insertions(+) diff --git

[PATCH 18/29] randr: hook up output slave to screen resources return

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com When the client asks for the screen resources list, it will now get a list of crtc/outputs for the master + all attached slaves, this will let randr configure all attached slave devices properly. Signed-off-by: Dave Airlie airl...@redhat.com ---

[PATCH 21/29] xf86/cursor: fallback to sw cursor if we have slaves present.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Current USB devices have no hw rendered cursors, so we need the master GPU to render the cursor, so whenever we plug in a slave device, fallback to sw rendered cursors. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/ramdac/xf86Cursor.c |2

[PATCH 11/29] randr: add initial scanout pixmap support (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com When randr notices a crtc configuration request for a slave device, it checks if the slave allocated pixmap exists and is suitable, if not it allocates a new shared pixmap from the master, shares it to the slave, and starts the master tracking damage to it, to

[PATCH 20/29] xf86: add output source setting callback

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds support for the randr callback for setting the output source for a device. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.c|6 +- hw/xfree86/modes/xf86RandR12.c | 35 +++ 2

[PATCH 19/29] randr: add output source setup

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the output sources to the associated list and adds the protocol handler for the randr SetProviderOutputSource. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/randrstr.h |8 randr/rrdispatch.c |2 +- randr/rrprovider.c |

[PATCH 24/29] xf86: store scanout pixmap in the xf86 struct as well.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is so we can tell the scanout pixmap has changed between calls to the crtc set function. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.h|6 +- hw/xfree86/modes/xf86RandR12.c |4 2 files changed, 9

[PATCH 22/29] dix/xf86: initial offload slave tracking (v1.1)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com add the linked list and provider hooks. v1.1: add another assert in the add path. Signed-off-by: Dave Airlie airl...@redhat.com --- dix/dispatch.c | 19 +++ include/screenint.h |6 ++ include/scrnintstr.h |3 +++

[PATCH 23/29] randr: add hooks for offload sink provider protocol

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the protocol handler and associated providers handling for the offload slaves, it allows two providers to be connected as offload sink/source. Signed-off-by: Dave Airlie airl...@redhat.com --- randr/randrstr.h | 10 ++

[PATCH 25/29] xf86: add callback for offloak sink setting support.

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds support for setting the offload sink to the xf86 ddx. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.c|5 - hw/xfree86/modes/xf86RandR12.c | 27 +++ 2 files changed, 31

[PATCH 26/29] dix/randr: add a hook into screen to replace scanout pixmap

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com For DRI2 in some offload cases we need to set a new pixmap on the crtc, this hook allows dri2 to call into randr to do the necessary work to set a pixmap as the scanout pixmap for the crtc the drawable is currently on. This is really only to be used for

[PATCH 28/29] xf86: make sure rotate calcs are done on the right screen boundaries

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fixes a segfault where this code believes we are outside the screen boundaries on a slave device, but we aren't. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Rotate.c |6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 29/29] xf86crtc: detach scanout pixmap before randr tries

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this stops us trying to use the master after we've detached later. Signed-off-by: Dave Airlie airl...@redhat.com --- hw/xfree86/modes/xf86Crtc.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git

[PATCH 04/29] dix: add unattached list for attaching screens to initially. (v1.1)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This list is meant for attaching unbound gpu screens to initially, before the client side rebinds them. v1.1: add another assert in the add path. Signed-off-by: Dave Airlie airl...@redhat.com --- dix/dispatch.c | 20

Re: [PATCH 09/36] xfree86: add platform bus hotplug support (v3)

2012-07-05 Thread Keith Packard
Dave Airlie airl...@gmail.com writes: + +for (layout = xf86ConfigLayout.screens; layout-screen != NULL; + layout++) { +xf86GPUScreens[i]-confScreen = layout-screen; +break; +} This loop is insane. Otherwise, this is all Reviewed-by: Keith Packard

Re: [PATCH 10/36] xfree86: add autoAddGPU option (v2)

2012-07-05 Thread Keith Packard
Dave Airlie airl...@gmail.com writes: From: Dave Airlie airl...@redhat.com This option is to stop the X server adding non-primary devices as gpu screens. v2: fix per Keith's suggestion. Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgp5oxD3CJ2yJ.pgp

[PATCH 09/29] dix: pixmap sharing infrastructure (v3)

2012-07-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is a hooks for pixmap sharing and tracking. The pixmap sharing ones get an integer handle for the pixmap and use a handle to be the backing for a pixmap. The tracker interface is to be used when a GPU needs to track pixmaps to be updated for another

Re: [PATCH xorg-gtest 05/16] xserver: move testing startup to the XServer object

2012-07-05 Thread Chase Douglas
On 07/03/2012 10:34 PM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 10:30:28AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net It makes sense to move the startup to the XServer object, but the environment

Re: [PATCH 1/3] Add screen-specific privates.

2012-07-05 Thread Keith Packard
Keith Packard kei...@keithp.com writes: Screen-specific privates areas are only allocated for objects related to the target screen; objects allocated for other screens will not have the private space reserved. This saves memory in these objects while also allowing hot-plug screens to have

Re: [PATCH xorg-gtest 06/16] xserver: move Terminate and Kill handling here

2012-07-05 Thread Chase Douglas
On 07/03/2012 10:42 PM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 10:33:50AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- include/xorg/gtest/xorg-gtest-xserver.h | 13

Re: [PATCH xorg-gtest 09/16] environment: remove default settings

2012-07-05 Thread Chase Douglas
On 07/04/2012 04:36 AM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 10:53:28AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: Keep those in the server only, not the environment. And only override the build-in ones when they've been set by main. Signed-off-by:

Re: [PATCH xorg-gtest 16/16] Add Device::GetDeviceNode() to return device node path from an evemu device

2012-07-05 Thread Chase Douglas
On 07/03/2012 11:03 PM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 11:40:25AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: evemu doesn't export this information and even evemu-device just trawls through the file system to print this info. So do the same here,

[PATCH xorg-gtest 1/2] Switch from utouch-evemu to evemu

2012-07-05 Thread Chase Douglas
The upstream project has been renamed. Signed-off-by: Chase Douglas chase.doug...@canonical.com --- aclocal/xorg-gtest.m4 |6 +++--- configure.ac |6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aclocal/xorg-gtest.m4 b/aclocal/xorg-gtest.m4 index

Re: [PATCH xorg-gtest 05/16] xserver: move testing startup to the XServer object

2012-07-05 Thread Peter Hutterer
On Thu, Jul 05, 2012 at 01:46:42PM -0700, Chase Douglas wrote: On 07/03/2012 10:34 PM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 10:30:28AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net It makes sense to

Re: [PATCH xorg-gtest 16/16] Add Device::GetDeviceNode() to return device node path from an evemu device

2012-07-05 Thread Peter Hutterer
On Thu, Jul 05, 2012 at 02:19:33PM -0700, Chase Douglas wrote: On 07/03/2012 11:03 PM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 11:40:25AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: evemu doesn't export this information and even evemu-device just trawls

Re: [PATCH xorg-server] Fix xf86EdidModes.c: array subscript is above array bounds

2012-07-05 Thread Keith Packard
Torsten Kaiser just.for.l...@googlemail.com writes: With this optimization level gcc notices, that the loop in function DDCModesFromEstIII() would go until i=5 and j=1 which would result in m = (5 * 8) + (7 - 1) = 46, but the array EstIIIModes[] only contains 44 elements. I'd like Adam's

Re: [PATCH xorg-gtest 2/2] Upgrade dox/Doxyfile

2012-07-05 Thread Peter Hutterer
On Thu, Jul 05, 2012 at 03:40:59PM -0700, Chase Douglas wrote: Upgraded by running doxygen -u. Most of the changes involve stripping whitespace at the end of lines. Some new options were added, all left at the default values. Three obsolete options were removed. Signed-off-by: Chase Douglas

Re: [PATCH xorg-gtest 1/2] Switch from utouch-evemu to evemu

2012-07-05 Thread Peter Hutterer
On Thu, Jul 05, 2012 at 03:40:58PM -0700, Chase Douglas wrote: The upstream project has been renamed. Signed-off-by: Chase Douglas chase.doug...@canonical.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net Cheers, Peter --- aclocal/xorg-gtest.m4 |6 +++--- configure.ac

Re: [PATCH xorg-server] Fix xf86EdidModes.c: array subscript is above array bounds

2012-07-05 Thread Peter Hutterer
On Thu, Jul 05, 2012 at 04:37:39PM -0700, Keith Packard wrote: Torsten Kaiser just.for.l...@googlemail.com writes: With this optimization level gcc notices, that the loop in function DDCModesFromEstIII() would go until i=5 and j=1 which would result in m = (5 * 8) + (7 - 1) = 46, but the

Re: [PATCH xorg-gtest 06/16] xserver: move Terminate and Kill handling here

2012-07-05 Thread Peter Hutterer
On Thu, Jul 05, 2012 at 02:09:13PM -0700, Chase Douglas wrote: On 07/03/2012 10:42 PM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 10:33:50AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net ---

[PATCH] glx: Fix checking GL version

2012-07-05 Thread Bartosz Brachaczek
Signed-off-by: Bartosz Brachaczek b.brachac...@gmail.com --- Hi, I looked at Ian's patch out of curiosity and spotted this typo. Not sure if I am supposed to send a full-blown patch for this, but I didn't have a better idea. glx/glxdri2.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [PATCH xorg-gtest 09/16] environment: remove default settings

2012-07-05 Thread Peter Hutterer
On Thu, Jul 05, 2012 at 02:17:30PM -0700, Chase Douglas wrote: On 07/04/2012 04:36 AM, Peter Hutterer wrote: On Tue, Jul 03, 2012 at 10:53:28AM -0700, Chase Douglas wrote: On 07/02/2012 11:44 PM, Peter Hutterer wrote: Keep those in the server only, not the environment. And only override the

Re: [PATCH xorg-gtest 1/2] Switch from utouch-evemu to evemu

2012-07-05 Thread Peter Hutterer
On Fri, Jul 06, 2012 at 10:24:22AM +1000, Peter Hutterer wrote: On Thu, Jul 05, 2012 at 03:40:58PM -0700, Chase Douglas wrote: The upstream project has been renamed. Signed-off-by: Chase Douglas chase.doug...@canonical.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net having

Re: [PATCH 05/36] dix: introduce gpu screens. (v4)

2012-07-05 Thread Fernando Carrijo
Dave Airlie airl...@gmail.com wrote: +int +AddGPUScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ , + int /*argc */ , + char ** /*argv */ + ), + int argc, char **argv) +{ +int i; +