Okay this is feature set 1, output slaves, it contains the
previous set of infrastructure changes, cleaned up further
and some more little bugs fixed.
Changes that need definite thinking about are mainly the
privates assert removals.
But after this set, you get to attach output providers,
and
From: Dave Airlie airl...@redhat.com
This is a precursor for reusing this code to init gpu screens.
Signed-off-by: Dave Airlie airl...@redhat.com
---
dix/dispatch.c | 44 +++-
1 file changed, 27 insertions(+), 17 deletions(-)
diff --git
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),
From: Dave Airlie airl...@redhat.com
This adds callbacks into the ddx for udev gpu hotplug.
Signed-off-by: Dave Airlie airl...@redhat.com
---
config/udev.c | 42 ++
include/hotplug.h |4
2 files changed, 46 insertions(+)
diff --git
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.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/common/xf86platformBus.c| 99
From: Dave Airlie airl...@redhat.com
This option is to stop the X server adding non-primary devices as
gpu screens.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/common/xf86Config.c | 15 ++-
hw/xfree86/common/xf86Globals.c |9 +++--
From: Dave Airlie airl...@redhat.com
This bumps totalPixmapSize in all attached screens.
Signed-off-by: Dave Airlie airl...@redhat.com
---
dix/privates.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/dix/privates.c b/dix/privates.c
index
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
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
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/common/xf86platformBus.c |9 +-
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 8289059..766ff33
From: Dave Airlie airl...@redhat.com
Just check for GPU screens, in DGAAvailable,
should probably overhaul DGA interface at some point,
or remove it.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/common/xf86DGA.c |7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
From: Dave Airlie airl...@redhat.com
This is the default attachment, unbound gpu screens get
attached to the 0 protocol screen.
detach on hotunplug.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/common/xf86Init.c|3 +++
hw/xfree86/common/xf86platformBus.c |2 ++
From: Dave Airlie airl...@redhat.com
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
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.
Signed-off-by: Dave Airlie airl...@redhat.com
---
dix/dispatch.c | 16
From: Dave Airlie airl...@redhat.com
This just hooks up a simple role change to go from unattached
to slave output and back.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/modes/xf86RandR12.c | 27 ++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff
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
From: Dave Airlie airl...@redhat.com
This just adds exa interfaces for mixed exa so drivers can
share and set shared pixmaps up correctly.
Signed-off-by: Dave Airlie airl...@redhat.com
---
exa/exa.c |7 +++
exa/exa.h |6 +-
exa/exa_mixed.c | 34
From: Dave Airlie airl...@redhat.com
Add the simple passthrough interface for drivers to use,
so they can set scanout pixmaps.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/modes/xf86Crtc.h|5 +
hw/xfree86/modes/xf86RandR12.c | 11 +++
2 files changed, 16
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
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
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
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
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.
Signed-off-by: Dave
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
---
From: Dave Airlie airl...@redhat.com
If we get disconnected or a randr event, disconnect the slave crtcs.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/common/xf86platformBus.c | 11 ++-
hw/xfree86/modes/xf86RandR12.c |2 ++
2 files changed, 12 insertions(+), 1
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
From: Dave Airlie airl...@redhat.com
This fixes some really ugly code that got mangled by the indenting.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/ramdac/xf86Cursor.c | 31 +++
1 file changed, 11 insertions(+), 20 deletions(-)
diff --git
From: Dave Airlie airl...@redhat.com
This adds the framework for DDX provider support.
Signed-off-by: Dave Airlie airl...@redhat.com
---
hw/xfree86/common/xf86str.h|4 +++
hw/xfree86/modes/xf86Crtc.c| 46 ++
hw/xfree86/modes/xf86Crtc.h| 58
From: Dave Airlie airl...@redhat.com
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
From: Dave Airlie airl...@redhat.com
This list is meant for attaching unbound gpu screens to initially,
before the client side rebinds them.
Signed-off-by: Dave Airlie airl...@redhat.com
---
dix/dispatch.c | 19 +++
include/screenint.h |5 +
include/scrnintstr.h
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
On Tue, Jun 19, 2012 at 11:53 PM, Christopher James Halse Rogers
christopher.halse.rog...@canonical.com wrote:
xwayland drivers need access to their screen private data to authenticate.
Now that drivers no longer have direct access to the global screen arrays,
this needs to be passed in as
I didn't see a conclusion to this patch series, so I split the second
patch into two pieces (leaving the authorship alone), and incorporated
Peter's suggestion to use BUG_WARN_MSG instead of ErrorF.
Andy -- if you could 'ack' these, I'll get them into the server tree.
[PATCH 1/2] Remove
From: Andy Ritger arit...@nvidia.com
This isn't necessary
Signed-off-by: Andy Ritger arit...@nvidia.com
Signed-off-by: Keith Packard kei...@keithp.com
---
mi/mieq.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mi/mieq.c b/mi/mieq.c
index e117a8d..c7dd0ad 100644
---
From: Andy Ritger arit...@nvidia.com
v2:
Uses BUG_WARN_MSG to also provide a stack trace. (Peter Hutterer)
Signed-off-by: Keith Packard kei...@keithp.com
Signed-off-by: Andy Ritger arit...@nvidia.com
---
mi/mieq.c | 12
1 file changed, 12 insertions(+)
diff --git a/mi/mieq.c
Christopher James Halse Rogers christopher.halse.rog...@canonical.com
writes:
xwayland drivers need access to their screen private data to authenticate.
Now that drivers no longer have direct access to the global screen arrays,
this needs to be passed in as function context.
v2: Don't break
Andy Ritger arit...@nvidia.com writes:
Call UpdateCurrentTimeIf(), not UpdateCurrentTime(), from RRTellChanged().
The latter calls ProcessInputEvents(), which can trigger a recursion
into mieqProcessInputEvents(). The former omits the call to
ProcessInputEvents().
Merged.
This adds API support for waking the server when an fd becomes
writable.
void AddWriteSocket(int fd);
Add an FD to the select write mask; the server will wake when
this fd is writable.
void RemoveWriteSocket(int fd);
Remove the FD from the select write mask.
Dave Airlie airl...@gmail.com writes:
+else if (strcmp(udev_device_get_subsystem(udev_device), drm))
+goto no_probe;
+else if (strncmp(sysname, card, 4))
+goto no_probe;
bikeshed -- strcmp(a,b) != 0; otherwise, I'm left wondering if you
expected strcmp
Dave Airlie airl...@gmail.com writes:
-int
-AddScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
- int /*argc */ ,
- char ** /*argv */
- ), int argc, char **argv)
+static int init_screen(ScreenPtr pScreen, int i)
{
-
-
Dave Airlie airl...@gmail.com writes:
+int
+AddGPUScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
+ int /*argc */ ,
+ char ** /*argv */
+ ),
+ int argc, char **argv)
+{
+int i;
+
Dave Airlie airl...@gmail.com writes:
+pScrn-origIndex = pScrn-scrnIndex; /* This never changes */
I can't find any users of origIndex; I suspect it can be safely removed.
-xf86Screens[i]-drv = drv;
+pScrn-drv = drv;
drv-refCount++;
-xf86Screens[i]-module =
Dave Airlie airl...@gmail.com writes:
From: Dave Airlie airl...@redhat.com
This adds callbacks into the ddx for udev gpu hotplug.
Seems straightforward enough to me.
Reviewed-by: Keith Packard kei...@keithp.com
--
keith.pack...@intel.com
pgp4q3QXerKZm.pgp
Description: PGP signature
Why sending the number of the (implementation-dependent) error statement to
the client is a good idea is a bit beyond me, but at least document it so we
can all share the despair.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
Yes, this is really how it's used in the XKB code.
Missing API update caused Xephyr to crash on startup, garbage memory
dereference when accessing timeout.
Introduced in 1f0e8bd5eb1a5539689cfc4f5a6b86b530907ec5
kdrive.c:868:27: warning: assignment from incompatible pointer type
kdrive.c:869:28: warning: assignment from incompatible pointer type
Fix a seg fault in case pScrPriv is NULL at ProcRRGetScreenInfo,
which later calls RRFirstOutput.
Signed-off-by: Ricardo Salveti de Araujo ricardo.salv...@linaro.org
---
randr/randr.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/randr/randr.c b/randr/randr.c
index 4d4298a..103da48
Sorry, but I tried a bunch of stuff before finally remembering why it is I had
to do it this way - the ELF magic for dtrace probes on Solaris gets lost
building static libraries, so we lose all the probes when you convert to *.la
files.Maybe we can find some other way around this, but since
On 06/18/12 05:59 PM, Peter Hutterer wrote:
On Mon, Jun 18, 2012 at 03:45:28PM -0700, Alan Coopersmith wrote:
On 06/17/12 08:40 PM, Peter Hutterer wrote:
libxservertest needs -lpthread from glxapi.c's pthread_once() call. Usually
this would be pulled in by the XORG_LIBS but not when building
Much easier for scripts that try to read the display value off the file
descriptor. Plus, this restores the behaviour we had for this patch in
Fedora since server 1.6 (April 2009).
https://bugzilla.redhat.com/show_bug.cgi?id=824594
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
On 06/14/12 06:27 AM, Gaetan Nadon wrote:
On 12-06-13 06:31 PM, Alan Coopersmith wrote:
On 06/12/12 12:06 AM, Michel Dänzer wrote:
On Mon, 2012-06-11 at 18:36 -0700, Alan Coopersmith wrote:
On 06/ 1/12 02:56 AM, Michel Dänzer wrote:
On Fre, 2012-05-25 at 08:02 -0700, Alan Coopersmith wrote:
Peter Hutterer peter.hutte...@who-t.net writes:
Missing API update caused Xephyr to crash on startup, garbage memory
dereference when accessing timeout.
Introduced in 1f0e8bd5eb1a5539689cfc4f5a6b86b530907ec5
kdrive.c:868:27: warning: assignment from incompatible pointer type
Ricardo Salveti de Araujo ricardo.salv...@linaro.org writes:
Fix a seg fault in case pScrPriv is NULL at ProcRRGetScreenInfo,
which later calls RRFirstOutput.
Do you have a stack trace for this case? It shouldn't ever happen, I
don't think.
--
keith.pack...@intel.com
pgpkGGkGETBlo.pgp
Alan Coopersmith alan.coopersm...@oracle.com writes:
Perhaps we can isolate the .la avoidance to just Solaris and leave Linux
MacOS
using .la's for these?
No-one should be using .la files; they're a pox.
--
keith.pack...@intel.com
pgpRfWSVST0gn.pgp
Description: PGP signature
The following changes since commit 3f97284b10c250457888902debd4d793cb4544d4:
dri2: Pass a ScreenPtr through to the driver's AuthMagic function. (v3)
(2012-06-20 11:56:55 -0700)
are available in the git repository at:
git://people.freedesktop.org/~alanc/xserver.git master
for you to fetch
Much easier for scripts that try to read the display value off the file
descriptor. Plus, this restores the behaviour we had for this patch in
Fedora since server 1.6 (April 2009).
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
alanc pointed me to why the \n wasn't part of
55 matches
Mail list logo