[PATCH xserver 10/10] test: Add randr lease tests

2017-12-21 Thread Keith Packard
Tests for RRCreateLease and RRFreeLease Signed-off-by: Keith Packard <kei...@keithp.com> --- configure.ac |8 + test/Makefile.am |2 +- test/randr/Makefile.am | 14 + test/randr/randr_lease.c | 1066 ++ 4 files c

[PATCH xserver 03/10] xfree86/modes: Check for non-desktop monitors during PreInit

2017-12-21 Thread Keith Packard
as part of the default configuration. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/modes/xf86Crtc.c | 4 ++-- hw/xfree86/modes/xf86Crtc.h | 5 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c

[PATCH xserver 00/10] Implement RandR 1.6 (leases and non-desktop)

2017-12-21 Thread Keith Packard
Here's the latest version of the DRM lease and non-desktop output code for the X server. This time, I've gone ahead and implemented a pile of tests for leases. Changes since the last series: * Merged non-desktop and lease support into a single patch sequence. They have a dependency on

[PATCH xserver 09/10] Add RandR leases with modesetting driver support [v4]

2017-12-21 Thread Keith Packard
ned-off-by: Keith Packard <kei...@keithp.com> --- configure.ac | 2 +- hw/xfree86/drivers/modesetting/drmmode_display.c | 128 - hw/xfree86/drivers/modesetting/drmmode_display.h | 4 + hw/xfree86/modes/xf86Crtc.c | 24 +- h

[PATCH xserver 05/10] randr: Declare incoming property values const

2017-12-21 Thread Keith Packard
RRChangeOutputProperty and RRConfigureOutputProperty should not modify their parameters, and callers may want to pass pointers to fixed data, so declare the value pointers as const in both cases. Signed-off-by: Keith Packard <kei...@keithp.com> --- randr/randrstr.h | 4 ++-- randr/rrprop

[PATCH xserver 04/10] xf86-video-modesetting: Record non-desktop kernel property at PreInit time

2017-12-21 Thread Keith Packard
Save any value of the kernel non-desktop property in the xf86Output structure to avoid non-desktop outputs in the default configuration. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH xserver 07/10] xfree86: Disable cursor whenever turning off CRTC during modeset

2017-12-21 Thread Keith Packard
This makes sure the CRTC's cursor is hidden before we hand the CRTC over to some other application. Signed-off-by: Keith Packard <kei...@keithp.com> Reviewed-by: Michel Dänzer <michel.daen...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> --- hw/xfree86/modes/

[PATCH xserver 02/10] xf86-video-modesetting: Update property values at detect and uevent time

2017-12-21 Thread Keith Packard
changes to DIX so it can track things as well. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 111 ++- 1 file changed, 86 insertions(+), 25 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c

[PATCH xserver 08/10] xf86-video-modesetting: Create CONNECTOR_ID properties for outputs

2017-12-21 Thread Keith Packard
This lets a DRM client map between X outputs and kernel connectors. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 24 1 file changed, 24 insertions(+) diff --git a/hw/xfree86/drivers/modesetting/drmmode_dis

[PATCH xserver 01/10] xf86-video-modesetting: Support new vblank kernel API [v2]

2017-12-21 Thread Keith Packard
-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/vblank.c | 50 - 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/modesetting/vblank.c b/hw/xfree86/drivers/modesetting/vblank.c index fe046e48b..f7d

[PATCH xserver 06/10] randr: Support "non-desktop" property

2017-12-21 Thread Keith Packard
Tracks changes to the non-desktop property so that when non-zero, outputs will always appear to be disconnected. Signed-off-by: Keith Packard <kei...@keithp.com> --- randr/randrstr.h | 3 +++ randr/rroutput.c | 26 +- randr/rrproperty.

Re: Another protocol repository merge attempt

2017-12-14 Thread Keith Packard
Alan Coopersmith writes: > Honestly, I think the versions of Java I've used for generating the docs > just uses fontconfig to find local fonts, but we do ship with a bunch of > commercially licensed fonts from way back when that should be automatically > added to

Re: Another protocol repository merge attempt

2017-12-14 Thread Keith Packard
Eric Anholt writes: > I like that it's just commits and merges instead of filter-branch. Yeah, it makes the history really easy to see, and (if we don't move files), the per-file history easy to track. > I think it would make more sense if the headers matched the structure

Another protocol repository merge attempt

2017-12-13 Thread &quot;Keith Packard"
The idea of merging all of our X protocol repositories came up again, and Adam Jackson asked if I wanted to wait for this before merging my randr lease/non-desktop changes. Not really? But, I'm still interested in a merge of the protocol repositories; we've got way too many, and they're mostly

Re: [PATCH util/macros] Drop -fno-strict-aliasing from XORG_CWARNFLAGS

2017-12-13 Thread Keith Packard
Adam Jackson writes: > This has been "deprecated" since 2011, but because it is still > referenced from XORG_DEFAULT_OPTIONS nothing has ever been updated to > get strict aliasing right. Let's fix that. I don't understand this -- are you getting rid of this option from our

Re: [PATCH randrproto 2/2] Add non-desktop output property and behaviors [v3]

2017-12-11 Thread Keith Packard
Adam Jackson <a...@nwnk.net> writes: > On Thu, 2017-12-07 at 16:57 -0800, Keith Packard wrote: > >> @@ -186,14 +186,23 @@ from the CRTCs. The Monitor marked as Primary will be >> listed first. >> >> 1.6. Introduction to version 1.6 of the extension >&g

Re: [PATCH xserver] xfixes: Remove the CursorCurrent array

2017-12-08 Thread Keith Packard
Alan Hourihane writes: > But I've gone ahead and tested your fix, and it works too. So I'm fine > with this. Awesome, thanks for your review! -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org:

[PATCH xserver 2/4] xfree86: Disable cursor whenever turning off CRTC during modeset

2017-12-07 Thread Keith Packard
This makes sure the CRTC's cursor is hidden before we hand the CRTC over to some other application. Signed-off-by: Keith Packard <kei...@keithp.com> Reviewed-by: Michel Dänzer <michel.daen...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> --- hw/xfree86/modes/

[PATCH xserver 3/4] xf86-video-modesetting: Create CONNECTOR_ID properties for outputs

2017-12-07 Thread Keith Packard
This lets a DRM client map between X outputs and kernel connectors. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 24 1 file changed, 24 insertions(+) diff --git a/hw/xfree86/drivers/modesetting/drmmode_dis

[PATCH xserver 1/4] xf86-video-modesetting: Support new vblank kernel API [v2]

2017-12-07 Thread Keith Packard
-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/vblank.c | 50 - 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/modesetting/vblank.c b/hw/xfree86/drivers/modesetting/vblank.c index fe046e48b..f7d

[PATCH xserver 4/4] Add RandR leases with modesetting driver support [v3]

2017-12-07 Thread Keith Packard
ain. This required splitting the DIX level lease termination code into two pieces, one to remove the lease from the system (RRLeaseTerminated) and a new function that frees the lease data structure (RRLeaseFree). Signed-off-by: Keith Packard <kei...@keithp.com> --- con

[PATCH xserver 0/4] Add RandR 1.6 lease support

2017-12-07 Thread Keith Packard
This is an updated version of this series, rebased on current master and including v3 of the main patch. That final patch has a description of the changes from v2, but the main thing is a lot of changes needed to keep the server from doing anything with the leased objects or including them in any

Re: [PATCH xserver] xf86-video-modesetting: Update all property values at uevent time

2017-12-07 Thread Keith Packard
Keith Packard <kei...@keithp.com> writes: > We were updating the link-status property when a uevent came in, but > we also want to update the non-desktop property, and potentially > others as well. This patch just updates every property provided by the > kernel, sending change

[PATCH xserver 1/5] xf86-video-modesetting: Update property values at detect and uevent time

2017-12-07 Thread Keith Packard
changes to DIX so it can track things as well. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 115 ++- 1 file changed, 90 insertions(+), 25 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c

[PATCH xserver 3/5] xf86-video-modesetting: Record non-desktop kernel property at PreInit time

2017-12-07 Thread Keith Packard
Save any value of the kernel non-desktop property in the xf86Output structure to avoid non-desktop outputs in the default configuration. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH xserver 0/5] Add support for non-desktop output property

2017-12-07 Thread Keith Packard
Non-desktop monitors are described in RandR protocol version 1.6 to be those which "shouldn't" normally be part of a desktop environment. Monitors like head-mounted displays or the Apple Touch Bar. Linux detects these using EDID quirks and sets a connector property. We reflect that property up to

[PATCH xserver 5/5] randr: Support "non-desktop" property

2017-12-07 Thread Keith Packard
Tracks changes to the non-desktop property so that when non-zero, outputs will always appear to be disconnected. Signed-off-by: Keith Packard <kei...@keithp.com> --- randr/randrstr.h | 3 +++ randr/rroutput.c | 26 +- randr/rrproperty.

[PATCH xserver 2/5] xfree86/modes: Check for non-desktop monitors during PreInit

2017-12-07 Thread Keith Packard
as part of the default configuration. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/modes/xf86Crtc.c | 4 ++-- hw/xfree86/modes/xf86Crtc.h | 5 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c

[PATCH xserver 4/5] randr: Declare incoming property values const

2017-12-07 Thread Keith Packard
RRChangeOutputProperty and RRConfigureOutputProperty should not modify their parameters, and callers may want to pass pointers to fixed data, so declare the value pointers as const in both cases. Signed-off-by: Keith Packard <kei...@keithp.com> --- randr/randrstr.h | 4 ++-- randr/rrprop

[PATCH xserver] xf86-video-modesetting: Update all property values at uevent time

2017-12-07 Thread Keith Packard
We were updating the link-status property when a uevent came in, but we also want to update the non-desktop property, and potentially others as well. This patch just updates every property provided by the kernel, sending changes to DIX so it can track things as well. Signed-off-by: Keith Packard

[PATCH randrproto 1/2] Add Leases. [v2]

2017-12-07 Thread Keith Packard
Delete output grabs Add LeaseNotify events Add FreeLease with option to terminate Signed-off-by: Keith Packard <kei...@keithp.com> --- configure.ac | 2 +- randr.h| 15 +++-- randrproto.h | 57 ++ ran

[PATCH randrproto 0/2] Leases and non-desktop for RandR protocol

2017-12-07 Thread Keith Packard
Here's a two patch series which adds leases and support for 'non-desktop' outputs. Leases are a way to take a set of X server resources and give them over to another application for a while. The X server implementation for this uses Linux changes already heading upstream. non-desktop outputs

[PATCH randrproto 2/2] Add non-desktop output property and behaviors [v3]

2017-12-07 Thread Keith Packard
this information and have it reflected to X applications through this extension. v2: fix puncutation and duplicated 'the'. v3: switch to 32-bit property named non-desktop to match Linux Signed-off-by: Keith Packard <kei...@keithp.com> --- randr.h| 1 + randrproto.tx

Re: Merged repo for protocol headers? Why are they split?

2017-11-21 Thread Keith Packard
Adam Jackson writes: > Also, git://people.freedesktop.org/~keithp/newproto appears to contain > the script used to generate the merged repo. Right, that's probably more useful today. The trick was to get the headers merged without losing any of the history. > I would be entirely

Re: Merged repo for protocol headers? Why are they split?

2017-11-21 Thread Keith Packard
Daniel Martin writes: > Hi, > > I've ever wondered why are the proto headers split up into distinct > repos? (It takes "ages" to just copy (install) a few files with > autotools.) They were split as part of the great dis-aggregation. I had a prototype of them merged

Re: [PATCH xserver] present: Only send PresentCompleteNotify events to the presenting client

2017-11-15 Thread Keith Packard
receiving events from other clients would > be required. > > v2: > * Also restrict events sent to additional windows to the presenting > client > * Don't shorten line lengths Looks good to me. Reviewed-by: Keith Packard <kei...@keithp.com> --

Re: [PATCH xserver 3/4] animcur: Run the timer from the device, not the screen

2017-11-14 Thread Keith Packard
Adam Jackson writes: > You added that comment when you added XFIXES to XFree86, presumably you > know what it means better than I do. Never mind -- the original version of the code had the assignment to the local DisplayCursor variable below the comment while you've moved it up

Re: [PATCH xserver 3/4] animcur: Run the timer from the device, not the screen

2017-11-12 Thread Keith Packard
Adam Jackson writes: > +/* > + * Not a simple Unwrap/Wrap as this isn't called along the DisplayCursor > + * wrapper chain. > + */ > +pScreen->DisplayCursor = as->DisplayCursor; > +(void) (*pScreen->DisplayCursor) (dev, pScreen, ac->elts[elt].pCursor); >

Re: [PATCH xserver] present: Only send PresentCompleteNotify events to the presenting client

2017-10-27 Thread Keith Packard
Michel Dänzer writes: > Turns out it's way worse than that. The PresentPixmap and > PresentNotifyMSC requests don't take a PRESENTEVENTID parameter. > Instead, present_send_idle/complete_notify send every event to every > client which called PresentSelectInput for the window

Re: [PATCH xserver] xf86-video-modesetting: Fix ms_queue_vblank(flags = MS_QUEUE_RELATIVE)

2017-10-26 Thread Keith Packard
instead of 'seq'. That only happens in an error case, which probably means approximately never. For your patch: Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org devel

Re: [PATCH xserver] present: Only send PresentCompleteNotify events to the presenting client

2017-10-23 Thread Keith Packard
Michel Dänzer writes: > Looking at the Mesa code, it uses xcb_generate_id to generate the event > ID. AFAICT the XCB code is properly checking and only queuing special > events with a matching event ID, so the only possible explanation seems > that xcb_generate_id ends up

Re: [PATCH xserver] present: Only send PresentCompleteNotify events to the presenting client

2017-10-20 Thread Keith Packard
"Keith Packard" <kei...@keithp.com> writes: > I'm *not* saying this isn't a good patch in practice, I just want to > understand whether the system was designed wrong, or if we've > implemented it wrong. I spent some time this afternoon on IRC chatting with Pierre-Loup.

Re: [PATCH xserver] present: Only send PresentCompleteNotify events to the presenting client

2017-10-20 Thread Keith Packard
Giuseppe Bilotta writes: > Potentially stupid question, but any chances that some “higher level” > clients (window manager, screensaver) might be interested in the other > clients' notifications? Well, Present isn't the only way to perform this operation, so anything

Re: [PATCH] Add NonDesktop output property and behaviors.

2017-10-20 Thread Keith Packard
Giuseppe Bilotta writes: > (Alternatively, one could lease that output and then maybe start an X > server just for it, but that seems a bit … overkill?) Oh, that's a completely plausible plan. Yes, that would work and would offer a completely separate environment for

Re: [PATCH] Add NonDesktop output property and behaviors.

2017-10-20 Thread Keith Packard
Giuseppe Bilotta writes: > (Still, I've been fancying the idea of dynamic X Screens for a while > now, and the use case I mentioned seemed to fit the bill pretty > nicely.) Yes it does. When you have two or three years to spare, let us know! -- -keith

Re: [PATCH xserver] present: Only send PresentCompleteNotify events to the presenting client

2017-10-20 Thread Keith Packard
Michel Dänzer writes: > From: Michel Dänzer > > We were sending the events to all clients listening for them on the > window. But clients can get confused by events from another client, and > I can't imagine any case where reciving events from other

Re: [PATCH] Add NonDesktop output property and behaviors.

2017-10-20 Thread Keith Packard
Aaron Plattner writes: > I think this makes sense. Comments below. > > Reviewed-by: Aaron Plattner Thanks, Aaron. Have you also looked at the leasing changes on the same branch? I'd like to know what you think of that plan for implementing the Vulkan

Re: [PATCH] Add NonDesktop output property and behaviors.

2017-10-20 Thread Keith Packard
Giuseppe Bilotta writes: > (I actually wish I had some free time to put my coding hands where my > mouth is 8-P). I'd say it's more about waiting until we find a situation that actually requires the additional work. Right now, the goal is to make a leased output

Re: [PATCH] Add NonDesktop output property and behaviors.

2017-10-19 Thread Keith Packard
Giuseppe Bilotta writes: > FWIW, some Razer laptop models have a touchpad that doubles as a > secondary display. Not sure if it's worth mentioning (it does predate > the Apple Touch Bar, has some very patchy support under Linux, none that > I know of under Xorg).

[PATCH] Add NonDesktop output property and behaviors.

2017-10-19 Thread Keith Packard
this information and have it reflected to X applications through this extension. Signed-off-by: Keith Packard <kei...@keithp.com> --- randrproto.txt | 84 +++--- 1 file changed, 81 insertions(+), 3 deletions(-) diff --git a/randrproto

Present extension changes needed for GL/Vulkan vblank modes

2017-10-16 Thread &quot;Keith Packard"
I know, Present was supposed to support all of the GL vblank modes, and it mostly does, except for the most common case... In any case, here's a summary of four presentation modes from Vulkan, how you'd get that with GL and Present and what they mean: Vulkan GL

Re: VK_EXT_aquire_xlib_display and kernel security concerns

2017-10-16 Thread Keith Packard
Andy Ritger writes: > If the NVIDIA X driver finds an HMD display, it: > > (a) Marks it as disconnected. > (b) Does not make its EDID available to RandR clients. > > So, unless I'm mistaken, RandR clients will see the HMD as an RandR > output. But, perhaps the problem is

Re: VK_EXT_aquire_xlib_display and kernel security concerns

2017-10-16 Thread Keith Packard
James Jones writes: > However, I think direct enumeration is generally useful functionality, > if nothing else just for things like vkinfo or DRM equivalents. Sure, I've enabled direct enumeration when the process has access to that information from the kernel. Right now,

Re: VK_EXT_aquire_xlib_display and kernel security concerns

2017-10-16 Thread Keith Packard
Dave Airlie writes: > If they use acquire extensions they get display enumeration, the > problem is display enumeration before the acquire would need special > permission elevation. And the problem here is that the nVidia driver hides the HMD displays from X, forcing the

Re: VK_EXT_aquire_xlib_display and kernel security concerns

2017-10-16 Thread Keith Packard
James Jones writes: > Understood. In that case, no displays should be enumerated on the > "rendering hardware" device in Vulkan, unless the driver vendor opts for > heroics. We try to avoid software heroics where possible. > Right, but normal processes don't need the

Re: VK_EXT_aquire_xlib_display and kernel security concerns

2017-10-16 Thread Keith Packard
James Jones writes: > I think at a lower level, we have different views of how > vkGetPhysicalDeviceDisplayPropertiesKHR/VK_KHR_display works. > vkGetPhysicalDeviceDisplayPropertiesKHR() is suppose to enumerate all > the displays on a given device. In many devices, the

Re: X SECURITY: allowed extensions for untrusted clients

2017-10-15 Thread Keith Packard
"Uecker, Martin" writes: > The question is what security risks all the different extensions > may expose. For things like Render and Present, they're no more serious than the existing core protocol. I'm pretty sure we could list the extensions which provide

Re: [RFC] DeepColor Visual Class Extension

2017-10-15 Thread Keith Packard
Alex Goins writes: > Thanks, Adam. > > Here's an updated version of the spec: This is looking very good. I don't have any architectural concerns at this point, just some editorial comments. > Rendering to DeepColor windows using the core protocol, however, is loosely >

VK_EXT_aquire_xlib_display and kernel security concerns

2017-10-15 Thread &quot;Keith Packard"
I've implemented this extension in DRM and have run into a conflict between the spec and the Linux architecture. The VkDisplayKHR parameter for VK_EXT_acquire_xlib_display can be found in two different ways: 1) Enumerate displays using vkGetPhysicalDeviceDisplayPropertiesKHR 2) Enumerate

Re: [PATCH xserver 1/2] os: Add epoll-like pollset implementation for AIX

2017-10-12 Thread Keith Packard
he necessary functionality. I assume someone might review the Solaris patch, but is there anyone who can review the AIX patch? For the pair: Acked-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature ___ xorg-devel@

Re: [PATCH xserver] glamor: Use GL_MESA_tile_raster_order for overlapping blits.

2017-10-11 Thread Keith Packard
se to me. No other concerns from me, this is Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel

Re: [PATCH xserver] glamor: Use GL_MESA_tile_raster_order for overlapping blits.

2017-10-10 Thread Keith Packard
Eric Anholt writes: > +/* Include the enums here for the moment, to keep from needing to bump > epoxy. */ > +#ifndef GL_TILE_RASTER_ORDER_FIXED_MESA > +#define GL_TILE_RASTER_ORDER_FIXED_MESA 0x8BB8 > +#define GL_TILE_RASTER_ORDER_INCREASING_X_MESA 0x8BB9 > +#define

Re: [RFC xserver v3 13/14] present: Send a PresentWindowCrtcNotify event appropriately

2017-10-02 Thread Keith Packard
Michel Dänzer writes: > No, but mode changes are also irrelevant for whether or not page > flipping can be used. What about changing the size of the CRTC that the application is displayed on? From fitting the screen to not fitting seems like it would make page flipping no

Re: [RFC xserver v3 13/14] present: Send a PresentWindowCrtcNotify event appropriately

2017-09-29 Thread Keith Packard
Michel Dänzer writes: > Or maybe it would be sufficient for clients to simply re-query the > modifiers in response to PresentConfigureNotify events? Would that also get sent when modes are changed? -- -keith signature.asc Description: PGP signature

[PATCH xserver 0/2] Clean up modesetting vblank. Add new API [v2]

2017-09-29 Thread Keith Packard
Here's a second complete series with two issues addressed: 1) Missing '|' when computing old ioctl type param 2) Moved a bit of code from the first patch to the second (thanks Michel Dänzer) Daniel Vetter asked if I might demonstrate the new kernel vblank API I've proposed by implementing

[PATCH xserver 1/2] xf86-video-modesetting: Add ms_queue_vblank helper [v3]

2017-09-29 Thread Keith Packard
This provides an API wrapper around the kernel interface for queueing a vblank event, simplifying all of the callers. v2: Fix missing '|' in computing vbl.request.type v3: Remove spurious bit of next patch (thanks, Michel Dänzer) Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/x

[PATCH xserver 2/2] xf86-video-modesetting: Support new vblank kernel API [v2]

2017-09-29 Thread Keith Packard
drmCrtcGetSequence returns the current vblank sequence and time. drmCrtcQueueSequence queues an event for delivery at a specified vblank sequence. Use these (when available) in preference to drmWaitVBlank. v2: Move bit of code from first patch (thanks, Michel Dänzer) Signed-off-by: Keith

Re: [PATCH xserver] xf86-video-modesetting: Add ms_queue_vblank helper [v2]

2017-09-29 Thread Keith Packard
Michel Dänzer writes: > The DRM_IOCTL_CRTC_QUEUE_SEQUENCE part belongs in patch 2. Yeah, it's harmless (aside from a compiler warning) in patch 1, but of course it belongs in the second patch. Thanks! -- -keith signature.asc Description: PGP signature

[PATCH xserver] xf86-video-modesetting: Add ms_queue_vblank helper [v2]

2017-09-29 Thread Keith Packard
This provides an API wrapper around the kernel interface for queueing a vblank event, simplifying all of the callers. v2: Fix missing '|' in computing vbl.request.type Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/dri2.c

[PATCH xserver 2/2] xf86-video-modesetting: Support new vblank kernel API

2017-09-29 Thread Keith Packard
drmCrtcGetSequence returns the current vblank sequence and time. drmCrtcQueueSequence queues an event for delivery at a specified vblank sequence. Use these (when available) in preference to drmWaitVBlank. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modes

[PATCH xserver 1/2] xf86-video-modesetting: Add ms_queue_vblank helper

2017-09-29 Thread Keith Packard
This provides an API wrapper around the kernel interface for queueing a vblank event, simplifying all of the callers. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/dri2.c| 74 +++- hw/xfree86/drivers/modesetting/dr

[PATCH xserver 0/2] Clean up modesetting vblank code. Add new API

2017-09-29 Thread Keith Packard
Daniel Vetter asked if I might demonstrate the new kernel vblank API I've proposed by implementing support in the modesetting driver. It turned out to be a good idea because the easiest way was to wrap drmWaitVBlank in a new function that provided a simpler API and then go add support for the new

Re: [PATCH xserver] modesetting: Skip no-longer-present connectors when resetting BAD links

2017-09-25 Thread Keith Packard
Manasi Navare writes: > Thanks for the patch. Does this take care of the cases where > MST monitors might get unplugged, but not generate the > hotplug event? Nope, this is strictly for devices which have disappeared from the kernel API, but which the X server is

Re: Pull request for server-1.19.branch fixes ?

2017-09-25 Thread Keith Packard
Adam Jackson writes: >> Martin Peres (1): >> modesetting: re-set the crtc's mode when link-status goes BAD > > Keith had part of this change disabled locally at XDC, apparently he'd > seen crashes from it. Hopefully we can figure that one out relatively > quickly...

[PATCH xserver] modesetting: Skip no-longer-present connectors when resetting BAD links

2017-09-25 Thread Keith Packard
Outputs may have NULL mode_output (connector) pointers if the connector disappears while the server is running. Skip these when resetting outputs with BAD link status. Signed-off-by: Keith Packard <kei...@keithp.com> --- hw/xfree86/drivers/modesetting/drmmode_display.c | 5 - 1 file c

Re: [RFC] DeepColor Visual Class Extension

2017-09-14 Thread Keith Packard
Aaron Plattner writes: >>> 3. Colorspace/Encoding Window Properties >>> >>> Windows with DeepColor visuals must rely on window properties, as opposed to >>> colormaps, to determine the relationship between pixel values and colors. >>> These >>> properties must specify

Re: [PATCH xserver] fb: Check whether the window is enabled directly

2017-09-12 Thread Keith Packard
n VT switch, while the root window itself may > not contain a valid image we won't try to touch it, but GetImage from a > redirected window will now work even when switched away. > > Signed-off-by: Adam Jackson <a...@redhat.com> Acked-by: Keith Packard <kei...@

Re: [PATCH 0/2] Move VT check from fb to exa

2017-09-11 Thread Keith Packard
Adam Jackson writes: > The reason I suggested moving it to exa is that it's the one remaining > in-tree renderer that has that problem. Yeah, I think that should be sufficient then. -- -keith signature.asc Description: PGP signature

Re: [PATCH 0/2] Move VT check from fb to exa

2017-09-11 Thread Keith Packard
Emmanuel Gil Peyrot writes: > This effectively fixes screenshotting in Xwayland without GLAMOR, which > was previously always hitting that check since the borderClip was never > set to a non-zero area. We chatted about this issue on IRC this morning. The essential

Re: [RFC] DeepColor Visual Class Extension

2017-09-11 Thread Keith Packard
Alex Goins writes: > The DeepColor Extension provides a new visual class, DeepColor, designed for > handling visuals that are incompatible with the existing core X visual > classes: > StaticGray, StaticColor, TrueColor, GrayScale, PseudoColor, or > DirectColor. It seems like

Re: [PATCH] render: Reset animated cursor timer when sprite changes.

2017-08-31 Thread Keith Packard
to prevent > looping. > No animation played after such non-looped animation played once. Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Arch

Re: [PATCH xserver 2/2] glamor: Avoid overflow between box32 and box16 box

2017-08-28 Thread Keith Packard
is that the case here? I'm just trying to make sure we don't have pixmaps larger than 32767 sneaking through somehow, which would be bad in all kinds of places. In any case, we still need this check to avoid the problem: Reviewed-by: Keith Packard <kei...@keithp.com> (someday we may ju

Re: [PATCH xserver] squash! sync: Convert from "CARD64" to int64_t.

2017-08-24 Thread Keith Packard
Michel Dänzer writes: > Is assigning an unsigned value with the MSB set to a signed variable > well-defined in C? I have no idea. And I just spent a few hours wading through the N1570 draft of the C standard on a related issue. In particular, this is worrying: 6.3.1.3 3

Re: [PATCH xserver] squash! sync: Convert from "CARD64" to int64_t.

2017-08-24 Thread Keith Packard
e -fwrapv whenever using gcc so that you get correct behavior, instead of compiler-writers-potluck. I hope the gcc authors agree with your reading of the spec in this case; it's getting very hard to trust them to ever do the right thing though. Reviewed-by: Keith Packard <kei...@keithp.com> --

Re: [PATCH xserver 2/3] glx: Inline some reply swapping code

2017-08-18 Thread Keith Packard
Adam Jackson writes: > Consistency and cleanliness? They're the only out-of-lined reply swap > functions which puts them solidly in the minority (seven out of GLX's > 32ish replies), and glxserver.h is currently kind of a misc-and-other > header that I was trying to give some

Re: [PATCH xserver 3/3] glx: Remove some unused stuff from glxserver.h

2017-08-16 Thread Keith Packard
Adam Jackson <a...@redhat.com> writes: > Signed-off-by: Adam Jackson <a...@redhat.com> Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org devel

Re: [PATCH xserver 1/3] glx: Remove True/False defines

2017-08-16 Thread Keith Packard
Adam Jackson <a...@redhat.com> writes: > Those are xlib spellings, we say TRUE/FALSE pretty consistently > elsewhere in the server. > > Signed-off-by: Adam Jackson <a...@redhat.com> Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.

Re: [PATCH xserver v2] meson: Fix epoll detection

2017-08-14 Thread Keith Packard
Peter Harris writes: > HAVE_OSPOLL is only defined inside this file, not by autoconf/meson, so > it's always defined to 1. > > The rest of os/ospoll.c uses #if instead of #ifdef everywhere. I'd be > inclined to update all of them if I were to paint that particular >

Re: [PATCH xserver v2] meson: Fix epoll detection

2017-08-14 Thread Keith Packard
Peter Harris writes: > The epoll code depends on epoll_create1, not epoll_create. > > Signed-off-by: Peter Harris Thanks! > -#if !HAVE_OSPOLL && HAVE_EPOLL_CREATE1 > +#if !HAVE_OSPOLL && defined(HAVE_EPOLL_CREATE1) Should be using defined for

Re: [PATCH xserver 2/2] glamor: Avoid overflow between box32 and box16 box

2017-08-05 Thread Keith Packard
Olivier Fourdan writes: > @@ -722,11 +723,11 @@ glamor_compute_transform_clipped_regions(PixmapPtr > pixmap, > temp_box.x2 = MIN(temp_box.x2, pixmap->drawable.width); > temp_box.y2 = MIN(temp_box.y2, pixmap->drawable.height); > } > -/* Now copy

Re: [PATCH xserver 6/7 v2] sync: Convert from "CARD64" to int64_t.

2017-08-04 Thread Keith Packard
sing CARD64 to try to actually store a > uint64_t. Now that stdint.h exists, let's just use that here, > instead. > > v2: Fix alarm delta changes. 5.5/7 and 6 of 7 are Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature

Re: [PATCH xserver 6/7] sync: Convert from "CARD64" to int64_t.

2017-08-03 Thread Keith Packard
Eric Anholt <e...@anholt.net> writes: > Keith Packard <kei...@keithp.com> writes: > >> [ Unknown signature status ] >> Eric Anholt <e...@anholt.net> writes: >> >>> The extension was using the name CARD64 to represent 64-bit values, >

Re: [PATCH xserver 5/7] test: Add basic SYNC tests.

2017-08-03 Thread Keith Packard
Eric Anholt writes: > So I GetInputFocus, force the reply, free the reply, then poll for > events in a little loop that's basically "if anything happened, > exit(1)"? Yeah, you can be assured that any events generated by the previous requests will have been queued when the

Re: [PATCH xserver 1/3] glamor: Scissor rectangle drawing to the bounds of the rects.

2017-08-03 Thread Keith Packard
s (large enough to cover rounded window corners, but probably > not xeyes) to avoid overhead on desktop GL. > > No performance difference on i965 with x11perf -rect1 -repeat 1 -reps > 1 (n=50) > > v2: Clamp rectangle bounds addition. For the series: Rev

Re: [PATCH xserver 5/7] test: Add basic SYNC tests.

2017-08-03 Thread Keith Packard
eah, for your CARD64 changes, these tests seem sufficient. Of course, it'd be great to add tests for event generation and blocking clients at some point too. Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature

Re: [PATCH xserver 4/7] test: Return error from simple-xinit if the client crashes.

2017-08-03 Thread Keith Packard
Eric Anholt writes: > I want to be able to call client tests with simple-xinit, so assertion > failures should be an error. > +if (WIFSIGNALED(wstatus)) > +return 1; > + > +if (WCOREDUMP(wstatus)) > +return 1; > + > +

Re: [PATCH xserver 1/7] test: Remove unused ddxstubs.c

2017-08-03 Thread Keith Packard
n.sh \ > scripts/run-piglit.sh \ > - ddxstubs.c \ > $(NULL) Nice. All we did was ship the file. Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org:

Re: [PATCH xserver 5/7] test: Add basic SYNC tests.

2017-08-03 Thread Keith Packard
Eric Anholt writes: > I couldn't find any, and I was modifying the implementation, so I had > to write some. I would like the test to end with a "make sure there > weren't any stray unchecked errors", but I didn't figure out how to do > that. Xlib used XSync for this, which

Re: [PATCH xserver 7/7] sync: Clean up a bit of header formatting.

2017-08-03 Thread Keith Packard
Eric Anholt <e...@anholt.net> writes: > Signed-off-by: Eric Anholt <e...@anholt.net> Reviewed-by: Keith Packard <kei...@keithp.com> -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org devel

Re: [PATCH xserver 6/7] sync: Convert from "CARD64" to int64_t.

2017-08-03 Thread Keith Packard
Eric Anholt writes: > The extension was using the name CARD64 to represent 64-bit values, > with a #define from CARD64 to XSyncValue, a struct with a pair of > 32-bit values representing a signed 64-bit value. Now that stdint.h > exists, let's just use that instead. Really,

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