[PATCH 1/7] xf86: cursor code got mangled by indenting

2012-06-25 Thread Dave Airlie
From: Dave Airlie This fixes some really ugly code that got mangled by the indenting. Signed-off-by: Dave Airlie --- hw/xfree86/ramdac/xf86Cursor.c | 31 +++ 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/hw/xfree86/ramdac/xf86Cursor.c b/hw

[PATCH 5/7] xf86: cleanup helper code to use a pointer.

2012-06-25 Thread Dave Airlie
From: Dave Airlie This is in preparation for gpu screens in here, just use a pScrn pointer to point at the new screen. Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86Helper.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/xfree86/common

[PATCH 3/7] screen: split out screen init code. (v2)

2012-06-25 Thread Dave Airlie
From: Dave Airlie This is a precursor for reusing this code to init gpu screens. v2: fixup int check as per Keith's review. Signed-off-by: Dave Airlie --- dix/dispatch.c | 44 +++- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git

[PATCH 4/7] dix: introduce gpu screens. (v3)

2012-06-25 Thread Dave Airlie
From: Dave Airlie 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), this is used for

[PATCH 6/7] xfree86: add DDX gpu screen support. (v3)

2012-06-25 Thread Dave Airlie
From: Dave Airlie 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 screens preinit and

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

2012-06-25 Thread Dave Airlie
From: Dave Airlie This adds callbacks into the ddx for udev gpu hotplug. v2: fix some strncmp returns. Reviewed-by: Keith Packard Signed-off-by: Dave Airlie --- config/udev.c | 42 ++ include/hotplug.h |4 2 files changed, 46 insertions

[PATCH 1/2] Revert the unused 1.4.0 protocol

2012-06-25 Thread Dave Airlie
From: Dave Airlie This patch reverts: Revert "Make SetCrtcConfigs take flags bits to allow partial configuration changes" This reverts commit 105a161a3f5fb67f5fe7e4119629d424672804aa. Revert "Define new semantics for scanout pixmap destruction."

[PATCH 2/2] randr: add provider object (v3.1)

2012-06-25 Thread Dave Airlie
From: Dave Airlie A provider object represents a GPU or virtual device that provides rendering or output services to the X server. This is the first rev of a protocol to enumerate providers devices, set their roles, and provide generic properties based on output properties for them v1.1: fix

Re: [PATCH 01/14] xfree86: use udev to provide device enumeration for kms devices (v9)

2012-06-25 Thread Dave Airlie
On Mon, Jun 25, 2012 at 4:56 PM, Michal Srb wrote: > On Thursday 14 of June 2012 15:43:35 Dave Airlie wrote: >> +int >> +xf86platformProbeDev(DriverPtr drvp) >> +{ >> +    Bool foundScreen = FALSE; >> +    GDevPtr *devList; >> +    const unsigned num

dri2 offload patches

2012-06-26 Thread Dave Airlie
This is my last set of patches I have sitting outstanding, this add dri2 offload slave support to the X server and DRI2. Dave. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailma

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

2012-06-26 Thread Dave Airlie
From: Dave Airlie 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 unredirected full

[PATCH 5/5] dri2: add initial prime support.

2012-06-26 Thread Dave Airlie
From: Dave Airlie (yes I know it needs version changes after rebasing to master, but master is broken now so I'll wait). 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

[PATCH 3/5] xf86: store scanout pixmap in the xf86 struct as well.

2012-06-26 Thread Dave Airlie
From: Dave Airlie This is so we can tell the scanout pixmap has changed between calls to the crtc set function. Signed-off-by: Dave Airlie --- hw/xfree86/modes/xf86Crtc.h|6 +- hw/xfree86/modes/xf86RandR12.c |4 2 files changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH 2/5] dix/xf86: initial offload slave tracking

2012-06-26 Thread Dave Airlie
From: Dave Airlie add the linked list and provider hooks. Signed-off-by: Dave Airlie --- dix/dispatch.c | 18 ++ hw/xfree86/common/xf86platformBus.c |3 +++ hw/xfree86/modes/xf86RandR12.c | 12 include/screenint.h

[PATCH 1/5] dix: split pixmap sharing out to common function

2012-06-26 Thread Dave Airlie
From: Dave Airlie We need this same code for dri2, so split it out to dix. Signed-off-by: Dave Airlie --- dix/pixmap.c | 28 include/pixmap.h |2 ++ randr/rrcrtc.c | 19 ++- 3 files changed, 32 insertions(+), 17 deletions(-) diff

Re: [PATCH 1/4] xfree86: fix use-after-free issue in checkInput

2012-06-26 Thread Dave Airlie
On Tue, Jun 26, 2012 at 1:00 AM, Peter Hutterer wrote: > *dev is the condition of the while loop we're in, reset to NULL after > freeing > > Signed-off-by: Peter Hutterer Reviewed-by: Dave Airlie > --- >  hw/xfree86/common/xf86Config.c |    1 + >  1 file changed, 1 i

Re: [PATCH 2/4] dix: fix dereference before null check

2012-06-26 Thread Dave Airlie
On Tue, Jun 26, 2012 at 1:00 AM, Peter Hutterer wrote: > Found by Coverity. > > Signed-off-by: Peter Hutterer Reviewed-by: Dave Airlie > --- >  dix/touch.c |    4 +++- >  1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/dix/touch.c b/dix/touch.c > in

Re: [PATCH 3/4] dix: fix memory leak in TouchEventHistoryReplay

2012-06-26 Thread Dave Airlie
On Tue, Jun 26, 2012 at 1:00 AM, Peter Hutterer wrote: > Don't leak if ti->history is NULL. > > Found by coverity. > > Signed-off-by: Peter Hutterer Reviewed-by: Dave Airlie > --- >  dix/touch.c |    7 +-- >  1 file changed, 5 insertions(+), 2 deletions(-

Re: [PATCH 4/4] Xi: extend PropagateMask to EMASKSIZE

2012-06-26 Thread Dave Airlie
Signed-off-by: Peter Hutterer Reviewed-by: Dave Airlie ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH] dri2: Fix authentication for < v8 clients.

2012-06-26 Thread Dave Airlie
On Tue, Jun 26, 2012 at 1:09 AM, Christopher James Halse Rogers wrote: > The legacy logic was embarassingly wrong; AuthMagic should return errno, > so returning FALSE only when AuthMagic returns nonzero is exactly wrong. > > https://bugs.freedesktop.org/show_bug.cgi?id=51400 > Signed-off-by: Chris

[PATCH] dri2proto: add prime protocol support.

2012-06-26 Thread Dave Airlie
From: Dave Airlie So we reserve bits 8->16 for offload device ids, this means we can have 7 offload devices, which is plenty for now, and we can bump this further later without fear. Signed-off-by: Dave Airlie --- dri2tokens.h |5 + 1 file changed, 5 insertions(+) diff --gi

Re: [PATCH 15/31] xf86: load modesetting driver on Linux hotplug

2012-06-26 Thread Dave Airlie
On Tue, Jun 26, 2012 at 6:03 PM, Michal Srb wrote: > On Wednesday 20 of June 2012 15:00:30 Dave Airlie wrote: >> From: Dave Airlie >> >> This driver is currently really the only choice for a hotplug >> at the moment, we can refine this in the future to try and >>

[PATCH] dix/render: consolidate window format matching code.

2012-06-27 Thread Dave Airlie
From: Dave Airlie This code existed in 3 different forms, perhaps it should be consolidated. Reviewed-by: Keith Packard Signed-off-by: Dave Airlie --- composite/compalloc.c |4 ++-- composite/compint.h |2 -- composite/compwindow.c| 26

Re: [PATCH 2/2] randr: add provider object (v3.1)

2012-06-28 Thread Dave Airlie
>>   /* Event selection bits */ >>   #define RRScreenChangeNotifyMask  (1L << 0) >>   /* V1.2 additions */ >>   #define RRCrtcChangeNotifyMask     (1L << 1) >>   #define RROutputChangeNotifyMask    (1L << 2) >>   #define RROutputPropertyNotifyMask  (1L << 3) >> +#define RRProviderPropertyNotifyMask

[PATCH] randr: add provider object (v4)

2012-06-28 Thread Dave Airlie
From: Dave Airlie A provider object represents a GPU or virtual device that provides rendering or output services to the X server. This is the first rev of a protocol to enumerate providers devices, set their roles, and provide generic properties based on output properties for them v1.1: fix

[PATCH] randr: add provider object (v5)

2012-06-28 Thread Dave Airlie
From: Dave Airlie A provider object represents a GPU or virtual device that provides rendering or output services to the X server. This is the first rev of a protocol to enumerate providers devices, set their roles, and provide generic properties based on output properties for them v1.1: fix

Re: [PATCH 2/2] randr: add provider object (v3.1)

2012-06-28 Thread Dave Airlie
On Thu, Jun 28, 2012 at 10:36 AM, Dave Airlie wrote: >>>   /* Event selection bits */ >>>   #define RRScreenChangeNotifyMask  (1L << 0) >>>   /* V1.2 additions */ >>>   #define RRCrtcChangeNotifyMask     (1L << 1) >>>   #d

[PATCH] randr: add provider object (v5.1)

2012-06-28 Thread Dave Airlie
From: Dave Airlie A provider object represents a GPU or virtual device that provides rendering or output services to the X server. This is the first rev of a protocol to enumerate providers devices, set their roles, and provide generic properties based on output properties for them v1.1: fix

Re: [PATCH 2/2] randr: add provider object (v3.1)

2012-06-29 Thread Dave Airlie
On Fri, Jun 29, 2012 at 3:48 AM, Keith Packard wrote: > Aaron Plattner writes: > >> On 06/28/2012 03:21 AM, Dave Airlie wrote: > >> Keith, thoughts? > > Well, RRScreenChangeNotify is supposed to signal any 'screen > configuration changes', which presumabl

Re: [PATCH] randr: add provider object (v5.1)

2012-06-29 Thread Dave Airlie
>> +#define RR_Provider_Flag_Dynamic 1 >> +#define RR_Provider_Flag_MultiMaster 2 > > > Are these documented anywhere? Oops totally forgot to add them, have done in v6. Dynamic basically means you can make changes to the providers, MultiMaster is to say xinerama style multiple rendering masters i

[PATCH] randr: add provider object (v6)

2012-06-29 Thread Dave Airlie
From: Dave Airlie A provider object represents a GPU or virtual device that provides rendering or output services to the X server. This is the first rev of a protocol to enumerate providers devices, set their roles, and provide generic properties based on output properties for them v1.1: fix

[PATCH] randr: add provider object (v7)

2012-06-29 Thread Dave Airlie
From: Dave Airlie A provider object represents a GPU or virtual device that provides rendering or output services to the X server. This is the first rev of a protocol to enumerate providers devices, set their roles, and provide generic properties based on output properties for them v1.1: fix

[PATCH 01/36] xf86: cursor code got mangled by indenting

2012-07-02 Thread Dave Airlie
From: Dave Airlie This fixes some really ugly code that got mangled by the indenting. Reviewed-by: Keith Packard Signed-off-by: Dave Airlie --- hw/xfree86/ramdac/xf86Cursor.c | 31 +++ 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/hw/xfree86

gpu hotplug stack refresh

2012-07-02 Thread Dave Airlie
This is a refresh send of the whole gpu screen + offload slave + output slave stack. I'd really like to send a pull req for this, but I'm striving to find any more reviews of it. Aaron might get some more of it looked over hopefully, and I'll kick ajax again to look at it. I really want people to

[PATCH 05/36] xf86: cleanup helper code to use a pointer.

2012-07-02 Thread Dave Airlie
From: Dave Airlie This is in preparation for gpu screens in here, just use a pScrn pointer to point at the new screen. suggested by Keith. Reviewed-by: Keith Packard Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86Helper.c | 18 ++ 1 file changed, 10 insertions(+), 8

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie This is a precursor for reusing this code to init gpu screens. v2: fixup int check as per Keith's review. Signed-off-by: Dave Airlie --- dix/dispatch.c | 44 +++- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git

[PATCH 04/36] dix: introduce gpu screens. (v3)

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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), this is used for

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 screens preinit and

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie This adds callbacks into the ddx for udev gpu hotplug. v2: fix some strncmp returns. Reviewed-by: Keith Packard Signed-off-by: Dave Airlie --- config/udev.c | 42 ++ include/hotplug.h |4 2 files changed, 46 insertions

[PATCH 08/36] xfree86: add platform bus hotplug support (v2)

2012-07-02 Thread Dave Airlie
From: Dave Airlie This provides add/remove support for platform devices at xfree86 ddx level. v2: cleanup properly if no driver found. Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86platformBus.c| 99 hw/xfree86/common/xf86platformBus.h

[PATCH 09/36] xfree86: add autoAddGPU option

2012-07-02 Thread Dave Airlie
From: Dave Airlie This option is to stop the X server adding non-primary devices as gpu screens. Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86Config.c | 15 ++- hw/xfree86/common/xf86Globals.c |9 +++-- hw/xfree86/common/xf86Privstr.h |2 ++ hw

[PATCH 11/36] xfree86: add framework for provider support in ddx.

2012-07-02 Thread Dave Airlie
From: Dave Airlie This adds the framework for DDX provider support. Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86str.h|4 +++ hw/xfree86/modes/xf86Crtc.c| 46 ++ hw/xfree86/modes/xf86Crtc.h| 58 ++ hw

[PATCH 12/36] dix: add unattached list for attaching screens to initially.

2012-07-02 Thread Dave Airlie
From: Dave Airlie This list is meant for attaching unbound gpu screens to initially, before the client side rebinds them. Signed-off-by: Dave Airlie --- dix/dispatch.c | 19 +++ include/screenint.h |5 + include/scrnintstr.h |6 ++ 3 files changed, 30

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie This is the default attachment, unbound gpu screens get attached to the 0 protocol screen. detach on hotunplug. Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86Init.c|3 +++ hw/xfree86/common/xf86platformBus.c |2 ++ 2 files changed, 5 insertions

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie This provides the unattached provider list to the clients. Signed-off-by: Dave Airlie --- randr/rrprovider.c |8 1 file changed, 8 insertions(+) diff --git a/randr/rrprovider.c b/randr/rrprovider.c index 5797431..c019e91 100644 --- a/randr/rrprovider.c +++ b

[PATCH 15/36] xf86dga: handle DGAAvailable for gpu screens.

2012-07-02 Thread Dave Airlie
From: Dave Airlie Just check for GPU screens, in DGAAvailable, should probably overhaul DGA interface at some point, or remove it. Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86DGA.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common

[PATCH 17/36] privates: remove asserts that stop dynamic increasing of privates size.

2012-07-02 Thread Dave Airlie
From: Dave Airlie These asserts stop us increasing the size of privates after create screen resources has been called, however for dynamic screens we need to be able to increase private size as new drivers are loaded. In theory any object allocated by an older driver won't try and use

[PATCH 16/36] xf86: load modesetting driver on Linux hotplug

2012-07-02 Thread Dave Airlie
From: Dave Airlie This driver is currently really the only choice for a hotplug at the moment, we can refine this in the future to try and pick the driver names. We have to reload this as it can get unloaded it not used in the original probe. Signed-off-by: Dave Airlie --- hw/xfree86/os

[PATCH 21/36] dix: pixmap sharing infrastructure (v2)

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 GPU. v2: pass slave

[PATCH 18/36] privates: when pixmap privates increase, bump the totalPixmapSize

2012-07-02 Thread Dave Airlie
From: Dave Airlie This bumps totalPixmapSize in all attached screens. Signed-off-by: Dave Airlie --- dix/privates.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/dix/privates.c b/dix/privates.c index af6d327..7f7ec8b 100644 --- a/dix/privates.c

[PATCH 22/36] exa: pixmap sharing infrastructure (v2)

2012-07-02 Thread Dave Airlie
From: Dave Airlie This just adds exa interfaces for mixed exa so drivers can share and set shared pixmaps up correctly. v2: update for passing slave screen. Signed-off-by: Dave Airlie --- exa/exa.c |7 +++ exa/exa.h |6 +- exa/exa_mixed.c | 33

[PATCH 23/36] randr: add initial scanout pixmap support (v2)

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 keep it updated

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 --- randr/rrcrtc.c | 57 +--- 1 file

[PATCH 19/36] dix: add ability to link output slave gpus to the current gpu

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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. Signed-off-by: Dave Airlie --- dix/dispatch.c | 16 include/screenint.h |6 ++ include

[PATCH 20/36] xf86: add ability to do a role change

2012-07-02 Thread Dave Airlie
From: Dave Airlie This just hooks up a simple role change to go from unattached to slave output and back. Signed-off-by: Dave Airlie --- hw/xfree86/modes/xf86RandR12.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/modes

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 --- randr/randr.c | 26 +++--- 1 file

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

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

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 damagestr.h, fixes

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie Add the simple passthrough interface for drivers to use, so they can set scanout pixmaps. Signed-off-by: Dave Airlie --- hw/xfree86/modes/xf86Crtc.h|5 + hw/xfree86/modes/xf86RandR12.c | 11 +++ 2 files changed, 16 insertions(+) diff --git a/hw/xfree86

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

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

[PATCH 31/36] xf86: detach all slave crtcs on disconnect/randr event (v2)

2012-07-02 Thread Dave Airlie
From: Dave Airlie If we get disconnected or a randr event, disconnect the slave crtcs. v2: fix warning. Signed-off-by: Dave Airlie --- hw/xfree86/common/xf86platformBus.c | 12 +++- hw/xfree86/modes/xf86RandR12.c |2 ++ 2 files changed, 13 insertions(+), 1 deletion

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 --- hw/xfree86/ramdac/xf86Cursor.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH 33/36] dix/xf86: initial offload slave tracking

2012-07-02 Thread Dave Airlie
From: Dave Airlie add the linked list and provider hooks. Signed-off-by: Dave Airlie --- dix/dispatch.c | 18 ++ hw/xfree86/common/xf86platformBus.c |3 +++ hw/xfree86/modes/xf86RandR12.c | 12 include/screenint.h

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 --- randr/rrscreen.c | 169

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 unredirected full

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie This is so we can tell the scanout pixmap has changed between calls to the crtc set function. Signed-off-by: Dave Airlie --- hw/xfree86/modes/xf86Crtc.h|6 +- hw/xfree86/modes/xf86RandR12.c |4 2 files changed, 9 insertions(+), 1 deletion(-) diff --git

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

2012-07-02 Thread Dave Airlie
From: Dave Airlie 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 dri2screen. Then

effective API/ABI surfaces

2012-07-02 Thread Dave Airlie
Hi, Just wondering about what sort of things are considered ABI breaks in reality, >From my understanding, I should be able to a) add new members to end of ScreenRec. b) add new members to xf86ScrnInfoRec in the reserved sections. Can I though add members to GC, Pixmap, Picture structs or does

Re: [PATCH 12/36] dix: add unattached list for attaching screens to initially.

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 5:31 PM, walter harms wrote: > > > Am 02.07.2012 12:13, schrieb Dave Airlie: >> From: Dave Airlie >> >> This list is meant for attaching unbound gpu screens to initially, >> before the client side rebinds them. >> >> Signed-o

Re: [PATCH 10/36] randr: add provider object and provider property support (v3)

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 11:13 AM, Dave Airlie wrote: > From: Dave Airlie > > 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 pr

Re: [PATCH] randr: add provider object (v7)

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 7:19 PM, Keith Packard wrote: > Dave Airlie writes: > > >> +PROVIDER { XID } >> + >> +MAXMASTER { CARD16 } >> + Maximum number of master GPUs server can support. >> + 1 unless dynamic xinerama is enabled. > > You don

Re: [PATCH 08/36] xfree86: add platform bus hotplug support (v2)

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 7:37 PM, Keith Packard wrote: > Dave Airlie writes: > >> +int >> +xf86platformAddDevice(int index) >> +{ >> +int i, old_screens, scr_index; >> +DriverPtr drvp = NULL; >> +int entity; >> +screenLayoutPtr layout

Re: [PATCH 12/36] dix: add unattached list for attaching screens to initially.

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 8:11 PM, Keith Packard wrote: > Dave Airlie writes: > >> From: Dave Airlie >> >> This list is meant for attaching unbound gpu screens to initially, >> before the client side rebinds them. > > You'll need this before 10/36 can be ap

Re: [PATCH 21/36] dix: pixmap sharing infrastructure (v2)

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 8:20 PM, Keith Packard wrote: > Dave Airlie writes: > >> From: Dave Airlie >> >> 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 t

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

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 8:12 PM, Keith Packard wrote: > Dave Airlie writes: > >> From: Dave Airlie >> >> This is the default attachment, unbound gpu screens get >> attached to the 0 protocol screen. > > This code doesn't check to see if the GPU is unboun

Re: [PATCH 11/36] xfree86: add framework for provider support in ddx.

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 8:07 PM, Keith Packard wrote: > Dave Airlie writes: > >> +xf86ProviderPtr >> +xf86ProviderCreate(ScrnInfoPtr scrn, >> + const xf86ProviderFuncsRec *funcs, const char *name) >> +{ >> +xf86CrtcConfigPtr xf8

Re: [PATCH] randr: add provider object and provider property support (v4)

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 7:52 PM, Keith Packard wrote: > Dave Airlie writes: > > >> +struct _rrProvider { >> +RRProvider id; >> +ScreenPtr pScreen; /* gpu screen more than likely */ >> +int current_role; > > uint32_t current_role indeed, >

Re: [PATCH] randr: add provider object (v7)

2012-07-02 Thread Dave Airlie
On Mon, Jul 2, 2012 at 8:54 PM, Keith Packard wrote: > Dave Airlie writes: > > >> Yes thats going to be the standard on switchable GPU machines, two masters >> and the ability to jump between them. In that case max master is one, and >> you'd >> have to se

Re: [PATCH 15/36] xf86dga: handle DGAAvailable for gpu screens.

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 11:52 PM, Keith Packard wrote: > Adam Jackson writes: > >> On 7/2/12 6:13 AM, Dave Airlie wrote: > >> I think anywhere you see a screen number on the wire the safe thing to >> do is index protocolscreens not gpuscreens. > > DGAAvailabl

Re: [PATCH 04/36] dix: introduce gpu screens. (v3)

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 9:07 PM, Adam Jackson wrote: > On 7/2/12 6:12 AM, Dave Airlie wrote: > >> +void >> +RemoveGPUScreen(ScreenPtr pScreen) >> +{ >> +int idx, j; >> +if (!pScreen->isGPU) >> +return; >> + >> +idx = pS

Re: [PATCH 12/36] dix: add unattached list for attaching screens to initially.

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 11:45 PM, Keith Packard wrote: > Dave Airlie writes: > >> On Mon, Jul 2, 2012 at 8:11 PM, Keith Packard wrote: > >> Well an unbound gpu you probably don't know its a slave, its just >> unbound. > > It's about to become a slave

Re: [PATCH 08/36] xfree86: add platform bus hotplug support (v2)

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 10:31 PM, Keith Packard wrote: > > Dave Airlie writes: >> No they can all do it, just haven't the code to do the picking yet of >> a driver, and since >> USB is really the only thing I can hotplug so far. > > It seems like more driver A

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

2012-07-03 Thread Dave Airlie
From: Dave Airlie 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), this is used for

Re: [PATCH 15/36] xf86dga: handle DGAAvailable for gpu screens.

2012-07-03 Thread Dave Airlie
On Tue, Jul 3, 2012 at 8:51 AM, Dave Airlie wrote: > On Mon, Jul 2, 2012 at 11:52 PM, Keith Packard wrote: >> Adam Jackson writes: >> >>> On 7/2/12 6:13 AM, Dave Airlie wrote: >> >>> I think anywhere you see a screen number on the wire the safe thing

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

2012-07-03 Thread Dave Airlie
From: Dave Airlie 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 --- hw/xfree86/common/xf86DGA.c | 15 --- hw/xfree86/dixmods/extmod

Re: [PATCH 21/36] dix: pixmap sharing infrastructure (v2)

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 10:32 PM, Keith Packard wrote: > Dave Airlie writes: > >> On Mon, Jul 2, 2012 at 8:20 PM, Keith Packard wrote: > >> though a void * that just cases an fd is probably okay. > > That was my thinking. void * covers a lot of sins. Okay I'll c

Re: [PATCH 23/36] randr: add initial scanout pixmap support (v2)

2012-07-03 Thread Dave Airlie
On Tue, Jul 3, 2012 at 12:51 AM, Keith Packard wrote: > Dave Airlie writes: > >> From: Dave Airlie >> >> 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 al

Re: [PATCH 19/36] dix: add ability to link output slave gpus to the current gpu

2012-07-03 Thread Dave Airlie
On Tue, Jul 3, 2012 at 12:41 AM, Keith Packard wrote: > > Dave Airlie writes: > >> +void >> +AttachOutputGPU(ScreenPtr pScreen, ScreenPtr new) >> +{ >> +assert(new->isGPU); >> +xorg_list_add(&new->output_head, &pScreen->o

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

2012-07-03 Thread Dave Airlie
On Tue, Jul 3, 2012 at 1:02 AM, Keith Packard wrote: > Adam Jackson writes: > >> I'm not sure this makes sense? The list of slave outputs is the list of >> outputs from other screens connected to _this_ screen's CRTC list, >> right? So _this_ screen's CRTC list is all you need to walk. > > Nope

Re: [PATCH 16/36] xf86: load modesetting driver on Linux hotplug

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 11:55 PM, Keith Packard wrote: > Dave Airlie writes: > >> From: Dave Airlie >> >> This driver is currently really the only choice for a hotplug >> at the moment, we can refine this in the future to try and >> pick the driver names. &g

Re: [PATCH 35/36] dix/randr: add a hook into screen to replace scanout pixmap

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 10:22 PM, Alex Deucher wrote: > On Mon, Jul 2, 2012 at 6:13 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> 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

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

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 10:16 PM, Alex Deucher wrote: > On Mon, Jul 2, 2012 at 6:13 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> Current USB devices have no hw rendered cursors, so we need the >> master GPU to render the cursor, so whenever we plug in a >

Re: [PATCH 11/36] xfree86: add framework for provider support in ddx.

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 8:35 PM, Dave Airlie wrote: > On Mon, Jul 2, 2012 at 8:07 PM, Keith Packard wrote: >> Dave Airlie writes: >> >>> +xf86ProviderPtr >>> +xf86ProviderCreate(ScrnInfoPtr scrn, >>> + const xf8

Re: [PATCH] randr: add provider object (v7)

2012-07-03 Thread Dave Airlie
(forgot list first time I sent this). On Mon, Jul 2, 2012 at 10:03 PM, Keith Packard wrote: > Dave Airlie writes: > >> On Mon, Jul 2, 2012 at 8:54 PM, Keith Packard wrote: >>> Dave Airlie writes: >>> >>> >>>> Yes thats going to be the standa

Re: [PATCH 18/36] privates: when pixmap privates increase, bump the totalPixmapSize

2012-07-03 Thread Dave Airlie
On Tue, Jul 3, 2012 at 12:41 AM, Keith Packard wrote: > Adam Jackson writes: > >> On 7/2/12 6:13 AM, Dave Airlie wrote: >>> From: Dave Airlie >>> >>> This bumps totalPixmapSize in all attached screens. >> >> Aieee. totalPixmapSize is

Re: [PATCH 17/36] privates: remove asserts that stop dynamic increasing of privates size.

2012-07-03 Thread Dave Airlie
On Mon, Jul 2, 2012 at 10:10 PM, Adam Jackson wrote: > On 7/2/12 6:13 AM, Dave Airlie wrote: >> >> From: Dave Airlie >> >> These asserts stop us increasing the size of privates after create screen >> resources has been called, however for dynamic screens we need

[PATCH] xfree86: add autoAddGPU option (v2)

2012-07-03 Thread Dave Airlie
From: Dave Airlie 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 --- hw/xfree86/common/xf86Config.c | 15 ++- hw/xfree86/common/xf86Globals.c |9 +++-- hw/xfree86/c

Re: [PATCH] randr: add provider object (v7)

2012-07-03 Thread Dave Airlie
On Tue, Jul 3, 2012 at 2:57 PM, Alex Deucher wrote: > On Tue, Jul 3, 2012 at 7:57 AM, Dave Airlie wrote: >> (forgot list first time I sent this). >> >> On Mon, Jul 2, 2012 at 10:03 PM, Keith Packard wrote: >>> Dave Airlie writes: >>> >>>> O

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

2012-07-03 Thread Dave Airlie
From: Dave Airlie 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 dri2screen. Then

Re: [PATCH] randr: add provider object (v7)

2012-07-03 Thread Dave Airlie
On Tue, Jul 3, 2012 at 3:25 PM, Alex Deucher wrote: > On Tue, Jul 3, 2012 at 10:10 AM, Dave Airlie wrote: >> On Tue, Jul 3, 2012 at 2:57 PM, Alex Deucher wrote: >>> On Tue, Jul 3, 2012 at 7:57 AM, Dave Airlie wrote: >>>> (forgot list first time I sent this). >&

<    1   2   3   4   5   6   7   8   9   10   >