Re: [PATCH libX11] _XDefaultError: set XlibDisplayIOError flag before calling exit

2017-02-01 Thread Jamey Sharp
On Feb 1, 2017 9:23 AM, "Arthur Huillet" <arthur.huil...@free.fr> wrote: On Wed, 1 Feb 2017 09:12:47 -0800 Jamey Sharp <ja...@minilop.net> wrote: > I'm a little confused by the notes in the commit message about whether this > is legal. I don't know why it shoul

Re: [PATCH libX11] _XDefaultError: set XlibDisplayIOError flag before calling exit

2017-02-01 Thread Jamey Sharp
I don't love this either, but it's Xlib; there's little there to love. ;-) I don't see anything fundamentally wrong with this approach. I'm a little confused by the notes in the commit message about whether this is legal. I don't know why it should be considered legal to use a Display from a

Re: RFC: server-side XCB

2014-12-21 Thread Jamey Sharp
with this. Just need to prepare this for posting on the XCB list.) Cheers, Chris On 12/20/14 21:27, Jamey Sharp wrote: We've talked about doing the xserver equivalent of XCB for years--that is, auto-generating the protocol serialization and deserialization code from XCB's machine-readable

RFC: server-side XCB

2014-12-20 Thread Jamey Sharp
We've talked about doing the xserver equivalent of XCB for years--that is, auto-generating the protocol serialization and deserialization code from XCB's machine-readable descriptions of the X protocol and extensions. Considering the recent CVEs in that code, I think it's time. So I want to

Re: Writing a new driver for nested Xorg servers based on Xephyr code

2014-10-06 Thread Jamey Sharp
On Sep 26, 2014 7:52 AM, Laércio de Sousa laercioso...@sme-mogidascruzes.sp.gov.br wrote: Now I've started playing with xf86-video-nested and Xephyr code, trying to merge as much code as possible. It's still in an embrionary stage, so I want to ask you some questions: * Is there an official

Re: Running DRI3 on intel-gfx

2014-06-06 Thread Jamey Sharp
On Wed, Jun 04, 2014 at 06:58:47PM +0200, Sedat Dilek wrote: How do I see if DRI3 is enabled for mesa on my SandyBridge intel-gfxcard? glxinfo log-file attached... $ LC_ALL=C LIBGL_DEBUG=verbose glxinfo 2 /dev/null /tmp/glxinfo.txt You threw out the information you wanted by

Re: [PATCH] ephyr: Free damage structure at server reset time

2014-06-06 Thread Jamey Sharp
Xephyr could wrap CloseScreen after initializing kdrive, couldn't it? I haven't looked carefully at that code, so I dunno. Regardless: Reviewed-by: Jamey Sharp ja...@minilop.net On Wed, Jun 04, 2014 at 10:00:45PM -0700, Keith Packard wrote: The usual mechanism for freeing a damage structure

Re: Alternative approach for a nested-xserver based video driver

2014-06-04 Thread Jamey Sharp
On Wed, Jun 04, 2014 at 09:07:22AM -0300, Laércio de Sousa wrote: Hello there! Some time ago I've wrotten asking for current status of xf86-video-nested development. I believe that, for a more robust single-card multiseat setup with systemd-logind, a real Xorg server with some kind of nested

Re: Alternative approach for a nested-xserver based video driver

2014-06-04 Thread Jamey Sharp
:41PM -0400, Jasper St. Pierre wrote: And on the other side, you have people like me who simply want to replace all video drivers with -modesetting, and all input drivers with libinput :) On Wed, Jun 4, 2014 at 12:16 PM, Jamey Sharp ja...@minilop.net wrote: On Wed, Jun 04, 2014 at 09:07:22AM

OML_sync_control semantics

2014-05-16 Thread Jamey Sharp
[We should probably have moved this conversation to the piglit list when it shifted to discussing these new OML_sync_control tests.] On Wed, May 14, 2014 at 04:12:32PM +0100, Chris Wilson wrote: On Wed, May 14, 2014 at 06:49:10AM -0700, Jamey Sharp wrote: On Wed, May 14, 2014 at 01:31:14PM

Re: [PATCH] DRI2: By default, throttle after two pending swaps.

2014-05-14 Thread Jamey Sharp
On Wed, May 14, 2014 at 01:31:14PM +0100, Chris Wilson wrote: On Tue, May 13, 2014 at 09:20:45AM -0700, Jamey Sharp wrote: Yeah, we have new tests that haven't quite been merged yet as we're addressing Eric's review comments. Our current version, revised yesterday, is available

Re: [PATCH] DRI2: By default, throttle after two pending swaps.

2014-05-13 Thread Jamey Sharp
On Tue, May 13, 2014 at 12:01 AM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Mon, May 12, 2014 at 06:30:47PM -0700, Jamey Sharp wrote: According to Chris Wilson, the Intel driver has a horrifying kludge to get triple-buffering despite the swap_limit being set to only allow double

Re: [PATCH] DRI2: By default, throttle after two pending swaps.

2014-05-13 Thread Jamey Sharp
On May 13, 2014 12:57 AM, Chris Wilson ch...@chris-wilson.co.uk wrote: =0 ickle:/usr/src/piglit$ ./bin/glx-oml-sync-control-getmscrate PIGLIT: {'result': 'pass' } =0 ickle:/usr/src/piglit$ ./bin/glx-oml-sync-control-waitformsc PIGLIT: {'result': 'pass' } =0 ickle:/usr/src/piglit$

[PATCH] DRI2: By default, throttle after two pending swaps.

2014-05-12 Thread Jamey Sharp
of their SwapLimit setting, it must be safe. Signed-off-by: Jamey Sharp ja...@minilop.net Signed-off-by: Theo Hill theo0...@gmail.com Cc: Chris Wilson ch...@chris-wilson.co.uk Cc: Eric Anholt e...@anholt.net Cc: Matt Dew mar...@osource.org --- hw/xfree86/dri2/dri2.c | 2 +- 1 file changed, 1

Re: [PATCH] Fix XNextRequest() after direct usage of XCB

2014-05-12 Thread Jamey Sharp
On Sat, May 10, 2014 at 02:55:11PM +0200, Uli Schlachter wrote: On 10.05.2014 00:21, otay...@redhat.com wrote: From: Owen W. Taylor otay...@fishsoup.net When XCB owns the X socket, dpy-request is not updated, so NextRequest() and XNextRequest() return the wrong value. There's nothing

[PATCH] Warn on DRI2SwapComplete with constant UST/MSC.

2014-05-04 Thread Jamey Sharp
not to be made an example of by angry users and distros.) I can't tell whether any other compiler supports this attribute, so it might be that only the run-time log entries can be made to work on other compilers. Signed-off-by: Jamey Sharp ja...@minilop.net Cc: Theo Hill theo0...@gmail.com --- hw

[PATCH 1/2] DRI2SwapBuffers: Don't reuse swap_target variable.

2014-04-18 Thread Jamey Sharp
it using swap_interval as usual. Signed-off-by: Jamey Sharp ja...@minilop.net Signed-off-by: Theo Hill theo0...@gmail.com --- hw/xfree86/dri2/dri2.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index 729a323..962f40c 100644

[PATCH 0/2] Fix uninitialized reply in DRI2SwapBuffers

2014-04-18 Thread Jamey Sharp
These two patches together clean up commit b180e439, which has been in xserver releases since 1.9. That commit was attempting to fix an OML_sync_control spec compliance bug; these finish the job. I'd like to suggest that, once these patches are merged to master, they also be included in any

[PATCH 2/2] DRI2SwapBuffers: Fix uninitialized target SBC.

2014-04-18 Thread Jamey Sharp
reason since it was introduced. Signed-off-by: Jamey Sharp ja...@minilop.net Signed-off-by: Theo Hill theo0...@gmail.com --- hw/xfree86/dri2/dri2.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index 962f40c..76708ca

Re: [PATCH 0/8] Fix bugs found with -D_FORTIFY_SOURCE=2

2014-04-18 Thread Jamey Sharp
For the series, with the exception of patch 1/8: Reviewed-by: Jamey Sharp ja...@minilop.net Patch 1 uses assert incorrectly, as we discussed on IRC. Jamey On Fri, Apr 18, 2014 at 3:21 PM, Keith Packard kei...@keithp.com wrote: Here's a set of 8 tiny patches which eliminate warnings

Re: [PATCH] test: [v2] Validate server log reading more carefully in signal-logging test

2014-04-18 Thread Jamey Sharp
Reviewed-by: Jamey Sharp ja...@minilop.net Jamey On Fri, Apr 18, 2014 at 4:19 PM, Keith Packard kei...@keithp.com wrote: Check return value from fgets and strchr instead of assuming they worked. [v2] Don't do any necessary work inside the assert call. Also make sure the return value

bug in glamor on ShmPutImage for XY images

2014-04-18 Thread Jamey Sharp
I haven't understood enough of the implementation to see how to fix this, but I can reliably crash Xephyr this way: hw/kdrive/ephyr/Xephyr :1 -screen 1024x768 -glamor DISPLAY=:1 x11perf -shmputxy10 Without the -glamor option to Xephyr, the x11perf command runs successfully. I'm testing on

Re: [PATCH v3] xnest: Ignore GetImage() error in xnestGetImage()

2013-10-05 Thread Jamey Sharp
Looks good to me! Reviewed-by: Jamey Sharp ja...@minilop.net On Oct 5, 2013 5:05 AM, Egbert Eich e...@freedesktop.org wrote: From: Radek Doulik r...@novell.com When an Xnest instance is not viewable it will crash when a client in that instance calls GetImage. This is because the Xnest server

Re: [PATCH libX11] Always initialise thread support

2013-07-12 Thread Jamey Sharp
Hmm. XInitThreads wasn't designed to be used this way. For instance, initializing thread support isn't thread-safe, for fairly obvious reasons. This patch might mask more bugs than it causes, and thereby be a net win. But it seems equally likely to turn out the other way. I'd suggest an awful

Re: [PATCH libX11] Always initialise thread support

2013-07-12 Thread Jamey Sharp
On Fri, Jul 12, 2013 at 11:16:16PM +0100, Daniel Stone wrote: On 12 July 2013 22:40, Jamey Sharp ja...@minilop.net wrote: Hmm. XInitThreads wasn't designed to be used this way. For instance, initializing thread support isn't thread-safe, for fairly obvious reasons. This patch might mask

Re: [PATCH libX11] Always initialise thread support

2013-07-12 Thread Jamey Sharp
On Fri, Jul 12, 2013 at 05:09:00PM -0700, Alan Coopersmith wrote: On 07/12/13 03:16 PM, Daniel Stone wrote: The immediate provocation was the Mali GLES/EGL implementation, which uses multiple threads itself, and thus relies on XInitThreads having been called somewhere; so if you ever use that

Re: [PATCH:libX11 6/8] Check for symbol existence with #ifdef, not #if.

2013-06-07 Thread Jamey Sharp
Since every other XTHREADS check in that earlier patch uses #ifdef, it looks like it was just a mistake. For this fix: Reviewed-by: Jamey Sharp ja...@minilop.net Jamey On 06/ 2/13 11:49 AM, Thomas Klausner wrote: --- src/XlibInt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH:libX11] specs/libX11: correct prototype for XListPixmapFormats/XImageByteOrder

2013-06-07 Thread Jamey Sharp
Reviewed-by: Jamey Sharp ja...@minilop.net On Fri, Jun 07, 2013 at 09:32:31AM -0700, Alan Coopersmith wrote: The XListPixmapFormats arguments was being shown with XImageByteOrder's name and return types. Appears to have been a glitch in the nroff - docbook conversion. Reported-by: ZHANG

Re: [PATCH v2] libX11: check size of GetReqExtra after XFlush

2013-06-06 Thread Jamey Sharp
It seems to me that the change to GetReqExtra should indeed be merged. I think now we're just debating what to do with any possibly-hazardous callers. Kees, perhaps you could split the patch? Regarding the rest, I like Alan's comments, and would add: On Jun 6, 2013 9:17 PM, Alan Coopersmith

Re: [PATCH xts] Write results directly to results directory

2013-06-03 Thread Jamey Sharp
idea. A comment at the declaration of outfile() about the lifetime of the result would be nice though. - If not, meh, it won't leak so much it's a serious problem. Either way: Reviewed-by: Jamey Sharp ja...@minilop.net + sprintf(out, %s/%s, path, fn); + +done: + free(resfile

Re: [RFC][PATCH] Make GetXIDRange O(1) instead of O(N^2)

2013-05-27 Thread Jamey Sharp
I can't give this a full review, but off-hand it seems like a good idea to me! Changing the max hash size should probably be a separate commit with a commit message justifying it. There's some precedent for putting common data structures in shared code in xserver, notably include/list.h.

Re: where does CARD18 come from?

2013-05-20 Thread Jamey Sharp
They're defined in the X11 core protocol specification: http://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#Common_Types I believe CARD is short for cardinal, as in cardinal numbers. Regarding X vs. Lisp: I've been told that the X design decision to make XIDs 29 bits wide was because

Re: [PATCH:xman 2/2] configure: check for groff and enable groff extensions if found

2013-04-21 Thread Jamey Sharp
I confess I'm missing the context here, but it sounds like this should be a runtime check, not build-time... shouldn't it? Jamey On Apr 21, 2013 10:19 AM, Alan Coopersmith alan.coopersm...@oracle.com wrote: On 04/20/13 11:28 AM, Gaetan Nadon wrote: On 13-04-20 01:08 PM, Alan Coopersmith

Re: [PATCH] list.h: Make xorg_list_init inline

2013-03-12 Thread Jamey Sharp
Seems like a good plan to me. Reviewed-by: Jamey Sharp ja...@minilop.net On Tue, Mar 12, 2013 at 09:40:16AM -0700, Robert Morell wrote: Otherwise this file is emitted in every unit that includes it. Signed-off-by: Robert Morell rmor...@nvidia.com --- This reduces the size of a debug Xorg

Re: RFC: xserver commit process changes

2013-02-27 Thread Jamey Sharp
On Thu, Feb 28, 2013 at 09:06:07AM +1000, Peter Hutterer wrote: * leave the current window of 3/2/1-ish months for the different devel stages * leave the requirement for a reviewed-by * one RM, calling the shots for when releases are made and generally being the reviewer of last resort and

Re: [PATCH] os: add FatalErrorSigSafe for signal-safe logging

2013-02-14 Thread Jamey Sharp
On Fri, Feb 15, 2013 at 09:35:00AM +1000, Peter Hutterer wrote: diff --git a/include/os.h b/include/os.h index c7108a5..2bdbf95 100644 --- a/include/os.h +++ b/include/os.h @@ -655,6 +655,12 @@ FatalError(const char *f, ...) _X_ATTRIBUTE_PRINTF(1, 2) _X_NORETURN; +/* XXX: DO NOT

Re: support for HW_SKIP_CONSOLE breaks use by blind people

2013-01-08 Thread Jamey Sharp
On Tue, Jan 08, 2013 at 09:53:45AM -0500, Timothy Meade wrote: Maybe I'm missing something, auto detecting if VT switch is needed means introducing an inconsistencty. Dummy and evdev can both work without allocating a VT, and there are cases where that may be useful, such as debugging a server

Re: [PULL to discuss] Remove kdrive, Xnest, and Xvfb

2012-04-03 Thread Jamey Sharp
On Tue, Apr 3, 2012 at 4:41 AM, Jon TURNEY jon.tur...@dronecode.org.uk wrote: On 27/03/2012 05:09, Jamey Sharp wrote: However, our capstone project that just finished was a start toward replacing the XQuartz DDX with a stock Xorg server and a special client, and I'm hoping that XWin can go

Re: [PULL to discuss] Remove kdrive, Xnest, and Xvfb

2012-03-27 Thread Jamey Sharp
On 3/26/12, Alan Coopersmith alan.coopersm...@oracle.com wrote: On 03/26/12 09:07 PM, Jamey Sharp wrote: Maybe I have it right this time: On Debian, there's no problem, because /usr/bin/X is a trivial suid wrapper and /usr/bin/Xorg is not installed suid. Solaris and other Unixes could take

Re: [PULL to discuss] Remove kdrive, Xnest, and Xvfb

2012-03-27 Thread Jamey Sharp
On 3/27/12, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Tue, 27 Mar 2012 06:03:03 -0700 From: Jamey Sharp ja...@minilop.net The key is to have a *non*-suid copy of the server available for those who don't need root privs for their configuration. In that mode all options can

Re: [PULL to discuss] Remove kdrive, Xnest, and Xvfb

2012-03-26 Thread Jamey Sharp
2012/3/26 Sérgio Basto ser...@serjux.com: in other day I saw /usr/bin/xvfb-run is in use on building miro-4.0.6-2.fc16 how we test X in a server without displays ? Use xf86-video-dummy with the Xorg DDX. I use /usr/bin/Xvfb Xvfb :1 -fbdir /var/tmp/ export DISPLAY=:1 sdl-gnash  

Re: [PULL to discuss] Remove kdrive, Xnest, and Xvfb

2012-03-26 Thread Jamey Sharp
On Mon, Mar 26, 2012 at 4:31 PM, Keith Packard kei...@keithp.com wrote: On Mon, 26 Mar 2012 16:13:46 -0700, Jeremy Huddleston jerem...@apple.com wrote: Most functionality of these servers can be provide by Xorg with either the nested or dummy video driver. +1 for deleting these obsolete

Re: [PULL to discuss] Remove kdrive, Xnest, and Xvfb

2012-03-26 Thread Jamey Sharp
On Mon, Mar 26, 2012 at 5:09 PM, Chase Douglas chase.doug...@canonical.com wrote: On 03/26/2012 04:55 PM, Jamey Sharp wrote: xf86-video-dummy doesn't have an equivalent to -fbdir, but it looks like you aren't actually making use of the mmap'd framebuffer in /var/tmp/. So this case should work

Re: [PULL to discuss] Remove kdrive, Xnest, and Xvfb

2012-03-26 Thread Jamey Sharp
On Mon, Mar 26, 2012 at 6:01 PM, Alan Coopersmith alan.coopersm...@oracle.com wrote: On 03/26/12 04:13 PM, Jeremy Huddleston wrote: These need to die.  This removes 30K lines of code from xorg-server.  It must be good! Most functionality of these servers can be provide by Xorg with either

Re: [RFC] server-private and public header separation

2012-03-23 Thread Jamey Sharp
On 3/22/12, Chase Douglas chase.doug...@canonical.com wrote: On 03/22/2012 09:25 PM, Peter Hutterer wrote: This patch introduces a new define __XSERVER__ that we can use in the sdk headers. Obviously the real integration will be a tad harder as there are other headers that are installed

Re: [RFC] server-private and public header separation

2012-03-22 Thread Jamey Sharp
Well, I'm in favor, for whatever that's worth. :-) Jamey On Thu, Mar 22, 2012 at 9:25 PM, Peter Hutterer peter.hutte...@who-t.net wrote: This is just a quickfire patch to show the principle, it has not been tested much. Plus, it's more of an idea right now, not sure if I'll find the time to

Re: [PATCH] randr: Silence valgrind after server regen with panning enabled

2012-03-16 Thread Jamey Sharp
On Fri, Mar 16, 2012 at 4:39 AM, Chris Wilson ch...@chris-wilson.co.uk wrote: If when bug hunting you trigger a server regeneration after enabling a pnning mode without moving the nice, you cause a flurry of valgrind warnings: I really wanted to read that as pwning. I take it you meant panning

Re: [PATCH v2 6/9] Xext: store the bracket values for idle counters in the private

2012-03-15 Thread Jamey Sharp
A small detail: On 3/14/12, Peter Hutterer peter.hutte...@who-t.net wrote: static void IdleTimeWakeupHandler (pointer pCounter, int rc, pointer LastSelectMask) { -SyncCounter *counter = IdleTimeCounter; +SyncCounter *counter = pCounter; ... @@ -2814,7 +2817,7 @@

Re: [PATCH v2 9/9] Xext: Add per-device SyncCounters

2012-03-15 Thread Jamey Sharp
For the series v2: Looks good! Reviewed-by: Jamey Sharp ja...@minilop.net Although I'd suggest dropping the unnecessary cast I pointed out in patch 6. Jamey On 3/14/12, Peter Hutterer peter.hutte...@who-t.net wrote: Previously, we only had one idle alarm that was triggered for all devices

Re: [PATCH 0/9] per-device idle counters

2012-03-14 Thread Jamey Sharp
This series seems like a good idea to me! I have a few review comments though: Patch 1 seems strange. Shouldn't the counters themselves get freed at reset? If they are, shouldn't that lead to the number of counters reaching 0? I guess the input ABI should get bumped for the patch that stores

Re: [PATCH 0/9] per-device idle counters

2012-03-14 Thread Jamey Sharp
On Wed, Mar 14, 2012 at 4:30 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Wed, Mar 14, 2012 at 09:01:13AM -0700, Jamey Sharp wrote: This series seems like a good idea to me! I have a few review comments though: Patch 1 seems strange. Shouldn't the counters themselves get freed

Re: [PATCH] include: add an X_DEBUG message type

2012-03-13 Thread Jamey Sharp
The #ifndef in log.c looks wrong, but otherwise, sure, why not? With that fixed: Reviewed-by: Jamey Sharp ja...@minilop.net On 3/13/12, Peter Hutterer peter.hutte...@who-t.net wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Just a nice-to-have, makes grep a tad easier

Re: [PATCH] Cannot wait for user lock in sync_while_locked

2012-03-10 Thread Jamey Sharp
For both Block for other threads in _XUserLockDisplay and Restore Xlib semantics of blocking on user lock from _XReadEvents: Reviewed-by: Jamey Sharp ja...@minilop.net Although, in Restore Xlib semantics, it would be nice if you'd fix up the It appears that classic Xlib respected user locks

Re: [PATCH] Cannot wait for user lock in sync_while_locked

2012-03-10 Thread Jamey Sharp
On Sat, Mar 10, 2012 at 4:04 PM, Keith Packard kei...@keithp.com wrote: On Sat, 10 Mar 2012 14:31:52 -0800, Jamey Sharp ja...@minilop.net wrote: Although, in Restore Xlib semantics, it would be nice if you'd fix up the It appears that classic Xlib respected user locks comment. I think

Re: [PATCH] xfree86: always switch console to raw mode on vt switch (#41146)

2012-03-07 Thread Jamey Sharp
On Wed, Mar 7, 2012 at 8:21 PM, Peter Hutterer peter.hutte...@who-t.net wrote: Alt+SysReq+R sets the console to raw mode. Re-enable raw mode when VT-switching back to the server. This commit message is confusing me. When VT-switching to the server, you want to set the console to the same mode

Re: [PATCH libxcb] Fallback to TCP if no protocol is specified and the UNIX connection fails

2012-02-19 Thread Jamey Sharp
I've pushed this patch; thanks! I'll let you and Jeremy sort out the libX11 side. Jamey On Sun, Feb 19, 2012 at 01:43:54PM +0100, Julien Cristau wrote: Signed-off-by: Julien Cristau jcris...@debian.org --- src/xcb_util.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-)

Re: [PATCH lib/libX11] Don't use caddr_t casts

2012-02-18 Thread Jamey Sharp
On Sat, Feb 18, 2012 at 05:21:24PM +, Jon TURNEY wrote: Casting a (const char *) to (caddr_t) to assign to iovec.io_base seems pointless. caddr_t isn't used anywhere else in xcb or libX11 According to the libxcb git history, I replaced (caddr_t) with (char *) in 2006 to help DragonFly and

Re: [PATCH xorg-gtest 2/3] Install configuration file in /etc/X11 instead of /ush/share/xorg/gtest

2012-01-30 Thread Jamey Sharp
This should be fixed by commit ead968a4300c0adeff89b9886e888b6d284c75cc, already on master--right? Jamey On Mon, Jan 30, 2012 at 03:32:19PM -0200, Daniel d'Andrada wrote: This is another enabler for making it possible to run Xorg without root privileges. The -config parameter in Xorg

Re: [PATCH] Remove XAA

2012-01-18 Thread Jamey Sharp
On Wed, Jan 18, 2012 at 03:05:41PM +1100, Daniel Stone wrote: commit 3811d1b85b71c1f8bd0b3c8269e0f7d388a51c2b Author: Daniel Stone dan...@fooishbar.org Date: Wed Jan 18 15:01:09 2012 +1100 Remove XAA It hasn't worked for over four years. No-one's even come close to

Re: [PATCH] Remove XAA

2012-01-18 Thread Jamey Sharp
On Thu, Jan 19, 2012 at 03:43:39PM +1100, Daniel Stone wrote: On 19 January 2012 04:03, Jamey Sharp ja...@minilop.net wrote: I love this. It invalidates some of my outstanding patches in the best possible way. But... could you explain (preferably in the commit message) what evidence you

Re: [PATCH GL 1/1] XQuartz: GL: Buildfix for recent GLX changes

2011-12-21 Thread Jamey Sharp
I sure don't see any reason not to merge that. Reviewed-by: Jamey Sharp ja...@minilop.net On Tue, Dec 20, 2011 at 07:49:47PM -0800, Jeremy Huddleston wrote: dispatch.h was leftover from an earlier implementation and is no longer needed, so remove it since including it causes a build failure

Re: [PATCH xrandr-utils 0/6] Refactor xrandr internals into libxrandr-utils

2011-12-21 Thread Jamey Sharp
On Wed, Dec 21, 2011 at 06:47:07PM -0800, Bryce Harrington wrote: Begin refactoring the xrandr command line tool's internals into a utility library. This is to provide a higher level abstraction for configuring multiple monitors. With the coming complexities of hybrid graphics, 2 heads, and

Re: adding RandR support to dummy (was adding a custom modeline with xrandr..)

2011-12-19 Thread Jamey Sharp
On Mon, Dec 19, 2011 at 03:17:54PM +0700, Antoine Martin wrote: On 10/24/2011 06:26 PM, Jamey Sharp wrote: Off-hand, I'd guess nobody has implemented RANDR support in xf86-video-dummy. But since I don't know what drivers need to do for that, for all I know there could be some generic

Re: [PATCH xserver 1/2] configure.ac: Make Xephyr dependency error message more informative

2011-12-17 Thread Jamey Sharp
Reviewed-by: Jamey Sharp ja...@minilop.net On 12/17/11, Jeremy Huddleston jerem...@apple.com wrote: Signed-off-by: Jeremy Huddleston jerem...@apple.com --- configure.ac |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 518eb06

Re: [PATCH v2 02/42] dix: split positionSprite into scale_to_desktop and positionSprite

2011-12-15 Thread Jamey Sharp
Welp, I'm happy! Reviewed-by: Jamey Sharp ja...@minilop.net On Fri, Dec 16, 2011 at 10:28:31AM +1000, Peter Hutterer wrote: For future touch points, we need positionSprite to calculate the coordinates but we don't want to actually change the cursor position for non-emulating touches

Re: [PATCH 0/4] Move GC clip management to ScreenRec

2011-12-14 Thread Jamey Sharp
Could you have a look at my patches to do this, from October? I believe Keith just wanted an ABI bump before merge, but I'd run out of time by then, and now I assume it's too late for this cycle. They're still sitting on my reviewed branch:

[PULL] GC clipping cleanup

2011-12-14 Thread Jamey Sharp
On Mon, Oct 17, 2011 at 02:06:55PM -0700, Keith Packard wrote: On Wed, 5 Oct 2011 08:30:56 -0700, Jamey Sharp ja...@minilop.net wrote: Alright, the pixmap hooks have weird undocumented constraints, and maybe we'll figure out something clever someday. Meanwhile, would you please merge

Re: [PATCH 02/42] dix: add an update argument to positionSprite

2011-12-14 Thread Jamey Sharp
This patch obviously doesn't change any behavior, but wouldn't it be more clear to just factor out the beginning of positionSprite to a computeSpritePosition or something? I suppose there's a later patch that justifies this approach, but I can't help thinking that returning early by adding

Re: moving rootless out of the server

2011-12-14 Thread Jamey Sharp
On 12/14/11, Antoine Martin anto...@nagafix.co.uk wrote: On 11/11/2011 08:59 AM, Jamey Sharp wrote: Or use a modern implementation like x11vnc that uses COMPOSITE so it doesn't need any server-side code at all. :-) That's the approach we're trying to adopt in this new project. This approach

Re: [PATCH 00/25] Noise abatement and eyesore rehabilitation

2011-12-11 Thread Jamey Sharp
For the series: Reviewed-by: Jamey Sharp ja...@minilop.net Nice work. :-) On Sun, Dec 11, 2011 at 10:16:13AM -0800, Alan Coopersmith wrote: Removes 422 lines of warning messages from the xserver build when using gcc 4.5.2 on Solaris 11 with the latest xorg-macros set of warning flags

Re: [PATCH] Limit the number of screens Xvfb will attempt to allocate memory for

2011-11-25 Thread Jamey Sharp
Sure, that makes sense. Reviewed-by: Jamey Sharp ja...@minilop.net On 11/23/11, Alan Coopersmith alan.coopersm...@oracle.com wrote: Commit f9e3a2955d2ca7 removing the MAXSCREEN limit left the screen number too unlimited, and allowed any positive int for a screen number: Xvfb :1 -screen

[PATCH 0/3] dix/window.c cleanups and death to server regen

2011-11-20 Thread Jamey Sharp
f0d50cc6651dce3a8a3cd3fb84210aa92b139763: Fix vesa's VBE PanelID interpretation (2011-11-06 16:41:44 -0800) are available in the git repository at: git://anongit.freedesktop.org/~jamey/xserver no-regen Jamey Sharp (3): InitRootWindow: Use ChangeWindowAttributes instead of duplicating

[PATCH 1/3] InitRootWindow: Use ChangeWindowAttributes instead of duplicating it.

2011-11-20 Thread Jamey Sharp
background None, while ChangeWindowAttributes unconditionally trusted bgNoneRoot. Signed-off-by: Jamey Sharp ja...@minilop.net --- dix/window.c | 44 +--- 1 files changed, 9 insertions(+), 35 deletions(-) diff --git a/dix/window.c b/dix/window.c index

[PATCH 3/3] Reset only what the protocol requires, instead of full regeneration.

2011-11-20 Thread Jamey Sharp
to a constant 1. Eliminating all the ugly code that's conditional on serverGeneration is left as a later exercise. This patch should simply improve reliability when the server resets. Signed-off-by: Jamey Sharp ja...@minilop.net --- This patch is generated with `diff -w`, so the patch's indentation

[PATCH 2/3] Factor out duplicated WindowOptPtr initialization.

2011-11-20 Thread Jamey Sharp
just waiting to happen. Signed-off-by: Jamey Sharp ja...@minilop.net --- dix/window.c | 74 +++-- 1 files changed, 35 insertions(+), 39 deletions(-) diff --git a/dix/window.c b/dix/window.c index 44bfa18..c87020d 100644 --- a/dix/window.c +++ b

Re: [PATCH libdri2] dri2video support

2011-11-16 Thread Jamey Sharp
On Wed, Nov 16, 2011 at 02:36:45PM +0100, walter harms wrote: Am 15.11.2011 23:49, schrieb Rob Clark: +nformats = (rep.length / sizeof(*formats)) * 4; +formats = malloc(nformats * sizeof(*formats)); i do not understand the 4 here. do you mean: (rep.length /

Re: [PATCH] Save major/minor opcodes in ClientRec for RecordAReply

2011-11-14 Thread Jamey Sharp
Reviewed-by: Jamey Sharp ja...@minilop.net On Mon, Nov 14, 2011 at 09:04:18AM -0800, Keith Packard wrote: On Tue, 8 Nov 2011 10:47:44 -0800, Jamey Sharp ja...@minilop.net wrote: And can I persuade you to just inline this directly into its only call site, below, in Dispatch? I don't think

Re: Changes causes application

2011-11-11 Thread Jamey Sharp
On 11/11/11, Ratin rat...@gmail.com wrote: On Thu, Nov 10, 2011 at 12:57 PM, Jamey Sharp ja...@minilop.net wrote: What application is it? Does it make X requests from more than one thread? Hi Jamey, Thanks for the insightful question. Its a bit complex video wall application ... [interesting

moving rootless out of the server

2011-11-10 Thread Jamey Sharp
Just to let you all know: Getting students to build xf86-video-nested worked out well, so we're starting another X-related PSU Capstone project. This time Jeremy is joining Josh and me as project sponsors. The goal this time around is to replace the XQuartz DDX. We'll run the stock xfree86 DDX

Re: moving rootless out of the server

2011-11-10 Thread Jamey Sharp
On 11/10/11, Alan Hourihane al...@fairlite.co.uk wrote: On 11/10/11 23:40, Peter Hutterer wrote: I wonder how much effort it would be to write a xf86-video-vnc that runs on xfree86 ddx. That would be interesting to try, and there's some library out there for quickly building a VNC server into

Re: [PATCH] Save major/minor opcodes in ClientRec for RecordAReply

2011-11-08 Thread Jamey Sharp
You're welcome to throw my reviewed-by on this patch, with the caveat that not only have I not tested it, but I haven't investigated the issue it's trying to address, either. But it seems like an improvement to the code regardless of any bugs it might fix. I'd suggest a couple minor edits,

Re: [PATCH libX11 v2 1/4] Add _XGetRequest as substitute for GetReq/GetReqExtra

2011-11-06 Thread Jamey Sharp
On Thu, Nov 03, 2011 at 07:30:52AM +1000, Peter Hutterer wrote: On Wed, Nov 02, 2011 at 11:23:55AM -0700, Jamey Sharp wrote: The best option, of course, is to ensure that no bug can occur. Peter, what about making the length argument take 4-byte units, dividing in the callers

Re: [PATCH libX11 v2 1/4] Add _XGetRequest as substitute for GetReq/GetReqExtra

2011-11-02 Thread Jamey Sharp
On Wed, Nov 02, 2011 at 05:32:24AM -0700, Dan Nicholson wrote: On Oct 27, 2011 4:26 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Thu, Oct 27, 2011 at 10:41:06AM +0200, walter harms wrote: Am 27.10.2011 09:55, schrieb Jamey Sharp: On Thu, Oct 27, 2011 at 09:15:54AM +0200, walter

Re: [PATCH libX11 v2 1/4] Add _XGetRequest as substitute for GetReq/GetReqExtra

2011-10-27 Thread Jamey Sharp
For the series: Reviewed-by: Jamey Sharp ja...@minilop.net Thanks! On Thu, Oct 27, 2011 at 02:21:25PM +1000, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- Changes to v1: - a few comment fixes, whitespace fixes to better align the code with the rest

Re: [PATCH libX11 v2 1/4] Add _XGetRequest as substitute for GetReq/GetReqExtra

2011-10-27 Thread Jamey Sharp
On Thu, Oct 27, 2011 at 09:15:54AM +0200, walter harms wrote: Am 27.10.2011 06:21, schrieb Peter Hutterer: +void *_XGetRequest(Display *dpy, CARD8 type, size_t len) +{ +xReq *req; + +WORD64ALIGN + +if (dpy-bufptr + len dpy-bufmax) + _XFlush(dpy); + +if (len

Re: [PATCH libX11] Add _XGetRequest as substitute for GetReq/GetReqExtra

2011-10-25 Thread Jamey Sharp
I pretty much approve whole-heartedly of this patch, but I have a couple nits to ask that you fix. On Tue, Oct 25, 2011 at 01:37:56PM +1000, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- include/X11/Xlibint.h | 51

Re: adding a custom modeline with xrandr (dummy driver)

2011-10-24 Thread Jamey Sharp
On Mon, Oct 24, 2011 at 05:20:29PM +0700, Antoine Martin wrote: Whenever an xpra client connects to a server I want to resize the dummy xserver to match the client's resolution exactly. ... Failed to change the screen configuration! Off-hand, I'd guess nobody has implemented RANDR support in

Re: Glamor - next step

2011-10-21 Thread Jamey Sharp
=linux.intel@lists.x.org [mailto:xorg-devel-bounces+zhigang.gong=linux.intel@lists.x.org] On Behalf Of Eric Anholt Sent: Thursday, October 20, 2011 11:32 PM To: Jamey Sharp; Zhigang Gong; Jeremy Huddleston Cc: xorg-devel@lists.x.org Subject: Re: [Pull v2] Glamor - fixed build

Re: [PATCH] pci: Restore pciTag as a deprecated function

2011-10-20 Thread Jamey Sharp
On Wed, Oct 19, 2011 at 10:47:17AM -0700, Jeremy Huddleston wrote: Actually, I retract this. I didn't intend to do it originally, but now that it's done, meh. If you change your mind: Reviewed-by: Jamey Sharp ja...@minilop.net But I, for one, am perfectly happy with meh. :-) I think we

Re: [Pull v2] Glamor - fixed build failure, fixed coding style problem.

2011-10-20 Thread Jamey Sharp
On Wed, Oct 19, 2011 at 11:20:54AM -0700, Jeremy Huddleston wrote: On Oct 19, 2011, at 1:02 AM, Zhigang Gong wrote: Just as I said above. Your thought do make sense. Currently glamor implements some GL based rendering functions. And in the long term, we may merge those functions into cairo

Re: [PATCH 3/5] Xi: avoid overrun of callback array.

2011-10-20 Thread Jamey Sharp
On Wed, Oct 19, 2011 at 05:01:45PM +0100, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com This code had an off-by-one and would allow writing one past the end of the callbacks array. I think you mean reading one past the end? I don't see any bad pointer writes here, though I'm only

Re: [PATCH 1/5] fbdevhw: iterate over all modes that match a mode. (v2)

2011-10-19 Thread Jamey Sharp
Reviewed-by: Jamey Sharp ja...@minilop.net I haven't tested it, nor do I have mind-reading powers, but I think this logic means what you think it means. Thanks for the revisions. Jamey On 10/19/11, Dave Airlie airl...@gmail.com wrote: From: Adam Jackson a...@redhat.com So on RHEL5 anaconda

Re: [PATCH libX11] include: Add GetReqSized() for request buffers of specific size

2011-10-17 Thread Jamey Sharp
On Mon, Oct 17, 2011 at 09:19:02AM +1000, Peter Hutterer wrote: On Fri, Oct 14, 2011 at 06:42:02PM +0200, Jamey Sharp wrote: The GetReq family of macros is so evil. I'm not going to go so far as to NAK this patch or anything, but please consider whether you can implement this as a proper

Re: [PATCH V4] xserver: check for elevated privileges not uid=0

2011-10-17 Thread Jamey Sharp
Reviewed-by: Jamey Sharp ja...@minilop.net Since this has gone through so many changes I tried to carefully re-review the whole thing, and it still looks good to me. Thanks, Antoine! We don't actually put xserver: in the commit message for a server patch, though. It wouldn't be wrong to tag

Re: [PULL] build fix, GC clipping cleanup

2011-10-17 Thread Jamey Sharp
On Mon, Oct 17, 2011 at 02:06:55PM -0700, Keith Packard wrote: On Wed, 5 Oct 2011 08:30:56 -0700, Jamey Sharp ja...@minilop.net wrote: Alright, the pixmap hooks have weird undocumented constraints, and maybe we'll figure out something clever someday. Meanwhile, would you please merge

Re: [PATCH libX11] include: Add GetReqSized() for request buffers of specific size

2011-10-14 Thread Jamey Sharp
The GetReq family of macros is so evil. I'm not going to go so far as to NAK this patch or anything, but please consider whether you can implement this as a proper function or something. Perhaps: void *XGetReq(CARD8 reqType, size_t sz); (I think the other macros could be re-implemented on top of

Re: [PATCH xserver] check for elevated privileges rather than just euid=0

2011-10-06 Thread Jamey Sharp
On 10/6/11, Michal Suchanek hramr...@centrum.cz wrote: I would like to check this out but how do I tell this actually works? Xephyr and Xvfb already run as non-root, Xorg needs device access to run which will likely fail as non-root. The motivation for Antoine's patch is the xf86-video-dummy

Re: [PULL] build fix, GC clipping cleanup

2011-10-05 Thread Jamey Sharp
Alright, the pixmap hooks have weird undocumented constraints, and maybe we'll figure out something clever someday. Meanwhile, would you please merge the other three commits? Thanks, Jamey On 10/3/11, Jamey Sharp ja...@minilop.net wrote: On Mon, Oct 03, 2011 at 12:01:23PM -0700, Keith Packard

Re: [PULL] build fix, GC clipping cleanup

2011-10-04 Thread Jamey Sharp
On Mon, Oct 03, 2011 at 03:13:09PM -0700, Jamey Sharp wrote: On Mon, Oct 03, 2011 at 12:01:23PM -0700, Keith Packard wrote: On Wed, 28 Sep 2011 13:57:27 -0700, Jamey Sharp ja...@minilop.net wrote: Hi Keith! Here's some reviewed code deletion (hooray!) and the fix to make kdrive build

Re: [PATCH 0/3] simplify pixmap create/free hooks

2011-10-04 Thread Jamey Sharp
On Tue, Oct 04, 2011 at 10:41:48AM +0100, Chris Wilson wrote: On Sat, 1 Oct 2011 23:08:45 -0700, Jamey Sharp ja...@minilop.net wrote: Jamey Sharp (3): Have FreePixmap call screen hooks, not the other way around. Introduce CreatePixmap, allocating a header and calling screen

  1   2   3   4   5   6   >