Re: [PATCH] xfree86: Remove unused xf86inSuspend

2010-12-16 Thread Daniel Stone
On Wed, Dec 15, 2010 at 02:59:42PM -0500, Adam Jackson wrote: What is this, I don't even. Signed-off-by: Adam Jackson a...@redhat.com Reviewed-by: Daniel Stone dan...@fooishbar.org signature.asc Description: Digital signature ___

Re: [Old patch from N900] XFree86: RandR: Add non-shadow rotate hook

2010-12-16 Thread Daniel Stone
On Wed, Dec 15, 2010 at 05:31:42PM +0200, Pauli wrote: Add a full rotate hook for drivers that can implement rotation on their own. Signed-off-by: Daniel Stone daniel.st...@collabora.co.uk --- Daniel: Do you mean this patch? That's the one, yeah. As I said, it's fairly trivial. :)

[PATCH] xfree86/modes: Take rotation into account when checking mode size

2010-12-16 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@nokia.com Assume that a mode can be used in either landscape or portrait orientation. I suppose the correct thing to do would be to collect all the supported rotations from the CRTCs that can be used with a specific output, but that information doesn't seem to be

Re: [PATCH joystick 0/9] input abi fixes

2010-12-16 Thread Trevor Woerner
For this series: Reviewed-by: Trevor Woerner twoer...@gmail.com ___ 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] xfree86/modes: Take rotation into account when checking mode size

2010-12-16 Thread Ville Syrjälä
On Thu, Dec 16, 2010 at 01:50:25PM +0200, ext ville.syrj...@nokia.com wrote: From: Ville Syrjälä ville.syrj...@nokia.com Assume that a mode can be used in either landscape or portrait orientation. I suppose the correct thing to do would be to collect all the supported rotations from the

Re: [PATCH] glx: Refcnt the GLXDrawable to avoid use after free with multiple FreeResource

2010-12-16 Thread Michel Dänzer
[ Dropping dri-devel list as this seems strictly an xserver issue ] On Fre, 2010-12-10 at 14:49 +0100, Michel Dänzer wrote: On Fre, 2010-12-10 at 13:38 +, Chris Wilson wrote: Although there may be more than one resource handles pointing to the Drawable, we only want to destroy it once

Re: [PATCH] xfree86: Remove unused xf86inSuspend

2010-12-16 Thread Adam Jackson
On Wed, 2010-12-15 at 14:59 -0500, Adam Jackson wrote: What is this, I don't even. It was point out to me on IRC that this _is_ in fact used in the kbd driver, to suppress event processing while suspended. I believe it can be removed entirely even there though. Right after setting that flag we

Re: [PATCH 1/2] xfree86: use a thread for the generation of input events

2010-12-16 Thread Adam Jackson
On Wed, 2010-12-15 at 23:08 +0100, Mark Kettenis wrote: Yes, that is the additional locking that's necessary. I'd say you'll need a mutex that you lock in x86BlockSIGIO() and unlock in xf86UnblockSIGIO() and lock/unlock around each event that you process in the input thread. It's more

Re: [PATCH 1/2] xfree86: use a thread for the generation of input events

2010-12-16 Thread Pauli Nieminen
On Thu, Dec 16, 2010 at 12:08 AM, Mark Kettenis mark.kette...@xs4all.nl wrote: From: Adam Jackson a...@redhat.com Date: Tue, 14 Dec 2010 17:27:46 -0500 On Mon, 2010-12-13 at 21:19 +0100, Mark Kettenis wrote: First, the autoconf bits suggest that the input thread is optional. But I can't

[PATCH v2] xfree86/modes: Take rotation into account when checking mode size

2010-12-16 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@nokia.com Assume that a mode can be used in either landscape or portrait orientation. I suppose the correct thing to do would be to collect all the supported rotations from the CRTCs that can be used with a specific output, but that information doesn't seem to be

[PATCH] glx: Refcnt the GLXDrawable to avoid use after free with multiple FreeResource

2010-12-16 Thread Kristian Høgsberg
From: Chris Wilson ch...@chris-wilson.co.uk Although there may be more than one resource handles pointing to the Drawable, we only want to destroy it once and only reference the resource which may have just been deleted on the first instance. v2: Apply fixes and combine with another bug fix from

Re: [PATCH:xorg-docs] Add fop.xsl stylesheet to set fonts in ps pdf output

2010-12-16 Thread Gaetan Nadon
On Wed, 2010-12-15 at 15:59 -0800, Alan Coopersmith wrote: Since a number of documents, especially the credits section in the Release Notes, use characters not found in the fop default base PostScript fonts, add a stylesheet for the fop generated documents to use the free DejaVu and GNU

Re: [PATCH] glx: Refcnt the GLXDrawable to avoid use after free with multiple FreeResource

2010-12-16 Thread Michel Dänzer
On Don, 2010-12-16 at 11:54 -0500, Kristian Høgsberg wrote: From: Chris Wilson ch...@chris-wilson.co.uk Although there may be more than one resource handles pointing to the Drawable, we only want to destroy it once and only reference the resource which may have just been deleted on the

[PATCHES] convert protos and libs to use docbookx.dtd 4.3

2010-12-16 Thread Paulo Zanoni
Hello As discussed on previous email and IRC, here are patches converting all libs and protos to docbookx.dtd 4.3. I checked the pdfs and htmls generated and they seem fine. Again, I just scrolled through the pages, so little differences might exist. Btw, there's a printproto patch which you

[PATCH] Remove SCO support

2010-12-16 Thread Adam Jackson
This has never been buildable in any modular server release. Signed-off-by: Adam Jackson a...@redhat.com --- Xext/xf86bigfont.c|2 +- configure.ac |1 - hw/xfree86/common/compiler.h | 13 -- hw/xfree86/common/scoasm.h|

[PATCH] randr: check for virtual size limits before set crtc

2010-12-16 Thread Tiago Vignatti
Return a error if the screen is configured to an invalid size. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- randr/rrscreen.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/randr/rrscreen.c b/randr/rrscreen.c index 292163f..0efc62e 100644 ---

Re: [PATCH:xorg-docs] Add fop.xsl stylesheet to set fonts in ps pdf output

2010-12-16 Thread Alan Coopersmith
Gaetan Nadon wrote: On Wed, 2010-12-15 at 15:59 -0800, Alan Coopersmith wrote: Since a number of documents, especially the credits section in the Release Notes, use characters not found in the fop default base PostScript fonts, add a stylesheet for the fop generated documents to use the free

Re: [PATCH] Remove SCO support

2010-12-16 Thread Mark Kettenis
From: Adam Jackson a...@redhat.com Date: Thu, 16 Dec 2010 13:20:09 -0500 diff --git a/hw/xfree86/common/scoasm.h b/hw/xfree86/common/scoasm.h index 8f80e7b..2774f9a 100644 --- a/hw/xfree86/common/scoasm.h +++ b/hw/xfree86/common/scoasm.h @@ -34,109 +34,3 @@ #include xorg-config.h

Re: [PATCH:libX11 1/2] Bug 32098: Making XInternAtoms take const char ** breaks callers

2010-12-16 Thread Simon Thum
On 12/15/2010 08:15 PM, Aaron Plattner wrote: $ gcc test.c test.c: In function ‘main’: test.c:11: warning: initialization from incompatible pointer type $ ./a.out x $ gcc -O2 test.c test.c: In function ‘main’: test.c:11: warning: initialization from incompatible pointer type $ ./a.out a

[PATCH 1/5] xfree86: Symmetrize xf86AccessEnter and xf86AccessLeave

2010-12-16 Thread Adam Jackson
Enter was changing server operating state, Leave wasn't. Which was wholly redundant, since all callers of Enter would immediately change the operating state to exactly what Enter had just done. Signed-off-by: Adam Jackson a...@redhat.com --- hw/xfree86/common/xf86Bus.c |2 -- 1 files

[PATCH 0/5] Input thread v2

2010-12-16 Thread Adam Jackson
This lays some groundwork for landing threaded input by tidying up the use of SIGIO within the server. It's still not complete, as it still does not add mutexes around the input state, but at least the first four patches should stand on their own. - ajax

[PATCH 2/5] xfree86: Remove xf86EnterServerState

2010-12-16 Thread Adam Jackson
Back when we had RAC this was a vaguely meaningful thing. Since then it's been a glorified (and confusing) wrapper around xf86BlockSIGIO. Note that the APM and VT switch code are unusual relative to other code that cares about SIGIO state. Most callers push a SIGIO disable to create a critical

[PATCH 3/5] xfree86: Convert some xf86BlockSIGIO to OsBlockSignals

2010-12-16 Thread Adam Jackson
The DDC1 and int10 code are blocking SIGIO to get some assurance that their usleep() calls take as long as they expect. That's a good start but you really want to be blocking more than just SIGIO, SIGALRM too at minimum. At this point, except for SIGIO handler setup itself, BlockSIGIO really

[PATCH 4/5] xfree86: Reduce SIGIO block/unblock traffic

2010-12-16 Thread Adam Jackson
Push/pop the SIGIO block outside the loop rather than every time through it. Signed-off-by: Adam Jackson a...@redhat.com --- hw/xfree86/common/xf86Events.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/common/xf86Events.c

[PATCH 5/5] input: use a thread for the generation of input events

2010-12-16 Thread Adam Jackson
From: Tiago Vignatti tiago.vigna...@nokia.com If configured, and enabled at runtime, use a separate thread for handling input devices. Use pipes to communicate plug events from main thread to input thread, and to communicate event queue updates from input thread to main thread. For the xfree86

Re: [PATCH] randr: check for virtual size limits before set crtc

2010-12-16 Thread Adam Jackson
On Thu, 2010-12-16 at 22:30 +0200, Tiago Vignatti wrote: Return a error if the screen is configured to an invalid size. Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com Reviewed-by: Adam Jackson a...@redhat.com - ajax signature.asc Description: This is a digitally signed message part

Re: [PATCH v2] xfree86/modes: Take rotation into account when checking mode size

2010-12-16 Thread Adam Jackson
On Thu, 2010-12-16 at 18:26 +0200, ville.syrj...@nokia.com wrote: From: Ville Syrjälä ville.syrj...@nokia.com Assume that a mode can be used in either landscape or portrait orientation. I suppose the correct thing to do would be to collect all the supported rotations from the CRTCs that can

[PATCH] Remove SCO support

2010-12-16 Thread Adam Jackson
This has never been buildable in any modular server release. Signed-off-by: Adam Jackson a...@redhat.com --- Xext/xf86bigfont.c|2 +- configure.ac |1 - hw/xfree86/common/Makefile.am |1 - hw/xfree86/common/compiler.h |

Re: build problem with --enable-install-libxf86config

2010-12-16 Thread Alan Coopersmith
Simon Thum wrote: Hi List, on my gentoo box I have a server build which fails (using the live xorg ebuilds). The ebuild invokes: ./configure (lots) --enable-install-libxf86config (lots more) My (separate) dev builds didn't fail. So I applied the above command line to my dev tree and,

Re: [PATCH] Remove SCO support

2010-12-16 Thread Julien Cristau
On Thu, Dec 16, 2010 at 16:03:11 -0500, Adam Jackson wrote: This has never been buildable in any modular server release. Signed-off-by: Adam Jackson a...@redhat.com Reviewed-by: Julien Cristau jcris...@debian.org Cheers, Julien ___

Re: build problem with --enable-install-libxf86config

2010-12-16 Thread Simon Thum
On 12/16/2010 10:09 PM, Alan Coopersmith wrote: Simon Thum wrote: Hi List, on my gentoo box I have a server build which fails (using the live xorg ebuilds). The ebuild invokes: ./configure (lots) --enable-install-libxf86config (lots more) My (separate) dev builds didn't fail. So I applied

Re: [PATCH] Remove SCO support

2010-12-16 Thread Mark Kettenis
From: Adam Jackson a...@redhat.com Date: Thu, 16 Dec 2010 16:03:11 -0500 This has never been buildable in any modular server release. Signed-off-by: Adam Jackson a...@redhat.com Reviewed-by: Mark Kettenis kette...@openbsd.org ___

Re: build problem with --enable-install-libxf86config

2010-12-16 Thread Alan Coopersmith
Simon Thum wrote: On 12/16/2010 10:09 PM, Alan Coopersmith wrote: Simon Thum wrote: Hi List, on my gentoo box I have a server build which fails (using the live xorg ebuilds). The ebuild invokes: ./configure (lots) --enable-install-libxf86config (lots more) My (separate) dev builds didn't

Re: [PATCH 1/2] xfree86: use a thread for the generation of input events

2010-12-16 Thread Mark Kettenis
From: Adam Jackson a...@redhat.com Date: Thu, 16 Dec 2010 10:32:21 -0500 On Wed, 2010-12-15 at 23:08 +0100, Mark Kettenis wrote: Yes, that is the additional locking that's necessary. I'd say you'll need a mutex that you lock in x86BlockSIGIO() and unlock in xf86UnblockSIGIO() and

Re: [PATCH:xorg-docs] Add fop.xsl stylesheet to set fonts in ps pdf output

2010-12-16 Thread Gaetan Nadon
On Thu, 2010-12-16 at 11:27 -0800, Alan Coopersmith wrote: Hmm, I thought from reading the docs that the fallback to Times was automatic, but it appears it needs to be explicit, and has to be done in the Symbol entry (fop uses the list of fonts in symbol for characters not found in the

Re: [PATCH:xorg-docs] Add fop.xsl stylesheet to set fonts in ps pdf output

2010-12-16 Thread Alan Coopersmith
Gaetan Nadon wrote: On Thu, 2010-12-16 at 11:27 -0800, Alan Coopersmith wrote: Hmm, I thought from reading the docs that the fallback to Times was automatic, but it appears it needs to be explicit, and has to be done in the Symbol entry (fop uses the list of fonts in symbol for characters

[PATCH:xorg-sgml-doctools] Add fop font settings to xorg.xsl to support a wider range of glyphs

2010-12-16 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- xorg.xsl | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/xorg.xsl b/xorg.xsl index d3b0612..2d04383 100644 --- a/xorg.xsl +++ b/xorg.xsl @@ -58,4 +58,21 @@ DEALINGS IN THE SOFTWARE.

[PATCH modular 0/8] Review environment variables for directories

2010-12-16 Thread Gaetan Nadon
A number of directories are either created or supplied as values to env variables. The Autoconf configure script describe the default values relative to the PREFIX directory. The build.sh script interpreted that too literally and assumed that the various directories (bin, lib, etc...) could not

[PATCH modular 1/8] build.sh: expose the PREFIX variable for the user to set

2010-12-16 Thread Gaetan Nadon
Currently PREFIX is an internal build.sh variable which is used to emit the --prefix option to all modules. Make this variable part of the public interface and pick-up the value from the environment. That variable is refered to in 6 places in --help but user cannot set it. Signed-off-by: Gaetan

[PATCH modular 2/8] build.sh: add support for EPREFIX for architecture-dependent files

2010-12-16 Thread Gaetan Nadon
Follow Autoconf file architecture as there is a PREFIX for architecture-independent files (config, docs, man) and an EPREFIX for architecture-dependent files (bin, lib, exe). This summarizes the architecture-dependent files directories: EPREFIX: --bindir=DIRuser executables

[PATCH modular 3/8] build.sh: allow user to specify an alternate bin directory

2010-12-16 Thread Gaetan Nadon
Any module can be configured with --bindir but the way the PATH is setup by build.sh does not allow this freedom. It asumes that the bin subdir will always be under $EPREFIX. The default value is bin under $EPREFIX but that does not mean that any alternate subdir value must be under $EPREFIX. The

[PATCH modular 4/8] build.sh: allow user to specify an alternate datadir

2010-12-16 Thread Gaetan Nadon
Modules can be configured with --datadir to provide an alternate location for architecture-independent data. The ACLOCAL dir was created relative to the hard-coded share subdir. Same for PKG_CONFIG_PATH. A DATAROOTDIR variable is added which provides the share default value to all directories

[PATCH modular 5/8] build.sh: allow user to specify an alternate localstatedir

2010-12-16 Thread Gaetan Nadon
Modules can be configured with --localstatedir to provide an alternate location for modifiable single-machine data. The log dir was created relative to the hard-coded var subdir. A LOCALSTATEDIR variable is added which uses the var default value. If a value other than the default value is used,

[PATCH modular 6/8] build.sh: allow user to specify an alternate libdir

2010-12-16 Thread Gaetan Nadon
Modules can be configured with --libdir to provide an alternate location for object cod libraries. The default value is EPREFIX/lib. The PKG_CONFIG_PATH, LD_LIBRARY_PATH and FONTPATH are set with a value of PREFIX/$LIBDIR which does not allow a different prefix as does the --libdir option. The

[PATCH modular 7/8] config: add user input checking for *DIR environment variables

2010-12-16 Thread Gaetan Nadon
Check that the supplied path is a full patch name and not a relative path name. Autoconf configure srcipt does the same check: error: expected an absolute directory name for --libdir: lib Signed-off-by: Gaetan Nadon mems...@videotron.ca --- build.sh | 23 +++ 1 files

[PATCH modular 8/8] build.sh: document the ACLOCAL env variable to find m4 macros

2010-12-16 Thread Gaetan Nadon
This is an important variable. If not set, util-macros m4 will not be found and no module can be configured. Signed-off-by: Gaetan Nadon mems...@videotron.ca --- build.sh |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/build.sh b/build.sh index ae1adf0..ace328a 100755

Re: [PATCH modular 1/8] build.sh: expose the PREFIX variable for the user to set

2010-12-16 Thread Trevor Woerner
On Thu, Dec 16, 2010 at 9:31 PM, Gaetan Nadon mems...@videotron.ca wrote: Currently PREFIX is an internal build.sh variable which is used to emit the --prefix option to all modules. Make this variable part of the public interface and pick-up the value from the environment. Currently the user

Re: [PATCH modular 2/8] build.sh: add support for EPREFIX for architecture-dependent files

2010-12-16 Thread Trevor Woerner
On Thu, Dec 16, 2010 at 9:31 PM, Gaetan Nadon mems...@videotron.ca wrote: ---  build.sh |   37 ++---  1 files changed, 26 insertions(+), 11 deletions(-) diff --git a/build.sh b/build.sh index 4979fc0..80452d3 100755 --- a/build.sh +++ b/build.sh @@ -356,12

Re: build problem with --enable-install-libxf86config

2010-12-16 Thread Simon Thum
On 12/16/2010 10:49 PM, Alan Coopersmith wrote: Simon Thum wrote: On 12/16/2010 10:09 PM, Alan Coopersmith wrote: Simon Thum wrote: Hi List, on my gentoo box I have a server build which fails (using the live xorg ebuilds). The ebuild invokes: ./configure (lots)

[PATCH] Bug 32436 - hw/xfree86/parser/Makefile.am TOP_SRCDIR should be top_srcdir

2010-12-16 Thread Alan Coopersmith
https://bugs.freedesktop.org/show_bug.cgi?id=32436 Fix typo introduced in 2416255f7e3fd9190a9 that breaks builds when configured --enable-install-libxf86config Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- hw/xfree86/parser/Makefile.am |2 +- 1 files changed, 1

Re: [PATCHES] convert protos and libs to use docbookx.dtd 4.3

2010-12-16 Thread Alan Coopersmith
Paulo Zanoni wrote: Hello As discussed on previous email and IRC, here are patches converting all libs and protos to docbookx.dtd 4.3. Thanks - I pushed them all. I checked the pdfs and htmls generated and they seem fine. Again, I just scrolled through the pages, so little differences

Re: [PATCH:xorg-docs] Add fop.xsl stylesheet to set fonts in ps pdf output

2010-12-16 Thread Matt Dew
On Thu, Dec 16, 2010 at 3:48 PM, Alan Coopersmith alan.coopersm...@oracle.com wrote: Gaetan Nadon wrote: On Thu, 2010-12-16 at 11:27 -0800, Alan Coopersmith wrote: Hmm, I thought from reading the docs that the fallback to Times was automatic, but it appears it needs to be explicit, and has to