Re: [PATCH 3/3] dix: ddx: Lift input handling duties from xf86 to dix

2010-09-08 Thread Fernando Carrijo
Peter Hutterer peter.hutte...@who-t.net wrote: On Tue, Aug 31, 2010 at 04:00:14PM -0300, Fernando Carrijo wrote: Signed-off-by: Fernando Carrijo fcarr...@freedesktop.org Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com --- dix/inputhandler.c | 109

Re: [PATCH 2/3] ddx: Prepare xf86 to renounce input handling duties

2010-09-08 Thread Fernando Carrijo
Peter Hutterer peter.hutte...@who-t.net wrote: On Tue, Aug 31, 2010 at 04:00:13PM -0300, Fernando Carrijo wrote: From: Fernando Carrijo fcarr...@freedesktop.org Signed-off-by: Fernando Carrijo fcarr...@freedesktop.org Signed-off-by: Tiago Vignatti tiago.vigna...@nokia.com I think I'd

[PATCH 1/5] xfree86: nds32: add nds32 related definitions into include headers.

2010-09-08 Thread Macpaul Lin
Add MSB/LSB related definitions into include/servermd.h Signed-off-by: Macpaul Lin macp...@andestech.com --- include/servermd.h | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/servermd.h b/include/servermd.h index e1d644e..271d936 100644 ---

[PATCH 2/5] xfree86: nds32: add nds32 definition for support linux video related io.

2010-09-08 Thread Macpaul Lin
Add __nds32__ definitions for supporing correct io method for lnx_video.c Signed-off-by: Macpaul Lin macp...@andestech.com --- hw/xfree86/os-support/linux/lnx_video.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/os-support/linux/lnx_video.c

[PATCH 3/5] xfree86: nds32: add nds32 definition for vgaHW support.

2010-09-08 Thread Macpaul Lin
Add __nds32__ definitions for vgaHW support. Signed-off-by: Macpaul Lin macp...@andestech.com --- hw/xfree86/vgahw/vgaHW.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xfree86/vgahw/vgaHW.h b/hw/xfree86/vgahw/vgaHW.h index 7e63492..b31c007 100644 ---

[PATCH 4/5] xfree86: nds32: add nds32 support for compiler specific codes

2010-09-08 Thread Macpaul Lin
Add nds32 definitions and related assembly codes to compiler header files. Signed-off-by: Macpaul Lin macp...@andestech.com --- hw/xfree86/common/compiler.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h

[PATCH 5/5] xfree86: nds32: add nds32 support for compiler related mmio codes

2010-09-08 Thread Macpaul Lin
Add nds32 support for compiler related mmio codes. It includes byte-swap or non-swap operations. Signed-off-by: Macpaul Lin macp...@andestech.com --- hw/xfree86/common/compiler.h | 437 ++ 1 files changed, 437 insertions(+), 0 deletions(-) diff --git

[PATCH 0/5] xfree86: nds32: add nds32 related support to xorg-xserver.

2010-09-08 Thread Macpaul Lin
NDS32 is a new 32-bit RISC architecture invented by andestech.com. It has a 16-bit/32-bit mixed-length instruction set to achieve optimal system performance, code density, and power efficiency. NDS32 also provide N9, N10, N12 different CPU core families for soft-core and hard-core SoC design.

what is the purpose of GeodeCalculatePitchBytes function?

2010-09-08 Thread Cui, Hunk
Hi, all, Ask one question... In http://cgit.freedesktop.org/xorg/driver/xf86-video-geode/tree/src/gx_dri ver.c#n1560, this is the function GeodeCalculatePitchBytes, in the process of calculate the pitch, why does the compression require a power of 2, what is the purpose?

[PATCH build 1/6] []/test consistency

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com Build script cleanup. Make the use of '[ ... ]' and 'test' consistent throughout. Signed-off-by: Trevor Woerner twoer...@gmail.com --- build.sh | 51 +-- 1 files changed, 25 insertions(+), 26 deletions(-)

[PATCH build 2/6] Found another environment variable to document.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com USE_XCB Signed-off-by: Trevor Woerner twoer...@gmail.com --- build.sh |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/build.sh b/build.sh index 1a5c522..2b41d00 100755 --- a/build.sh +++ b/build.sh @@ -5,6 +5,7 @@ cat EOF global

[PATCH build 4/6] Document '-l' command-line option.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com Add this option to the usage display. Signed-off-by: Trevor Woerner twoer...@gmail.com --- build.sh |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/build.sh b/build.sh index 25d0f04..a01cb4c 100755 --- a/build.sh +++ b/build.sh @@

[PATCH build 5/6] Report usage errors.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com If the build script is invoked incorrectly, return non-zero to indicate the usage error. Signed-off-by: Trevor Woerner twoer...@gmail.com --- build.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/build.sh b/build.sh index

[PATCH build 6/6] Use getopt(1) to parse cmdline.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com Switch to using a standard command-line parsing tool: getopt. Hopefully this will help catch discrepancies between the usage screen and the options that are accepted and ensure required arguments are accounted for. Signed-off-by: Trevor Woerner

[PATCH] Zero buffer data in BufAlloc()

2010-09-08 Thread Adam Jackson
Inspired by a pattern in NoMachine's NX. Consistently zeroed buffers compress better with ssh and friends. Note that you'll need to rebuild all your protocol libraries to take advantage of this. Signed-off-by: Adam Jackson a...@redhat.com --- include/X11/Xlibint.h |2 +- 1 files changed, 1

Re: [PATCH 5/5] xfree86: nds32: add nds32 support for compiler related mmio codes

2010-09-08 Thread Alan Coopersmith
Macpaul Lin wrote: +#if 0 +/*unsigned int IOPortBase; */ /* Memory mapped I/O port area */ +unsigned int ioportBase; /* Memory mapped I/O port area */ +asm(.weak ioportBase\n); +/*asm(.weak IOPortBase\n);*/ +#endif Why not just delete that section instead of putting more #if 0 mistakes

Re: what is the purpose of GeodeCalculatePitchBytes function?

2010-09-08 Thread Adam Jackson
On Wed, 2010-09-08 at 17:18 +0800, Cui, Hunk wrote: Hi, all, Ask one question... In http://cgit.freedesktop.org/xorg/driver/xf86-video-geode/tree/src/gx_dri ver.c#n1560, this is the function GeodeCalculatePitchBytes, in the process of calculate the pitch, why does the

Re: what is the purpose of GeodeCalculatePitchBytes function?

2010-09-08 Thread Jordan Crouse
Adam Jackson wrote: On Wed, 2010-09-08 at 17:18 +0800, Cui, Hunk wrote: Hi, all, Ask one question... In http://cgit.freedesktop.org/xorg/driver/xf86-video-geode/tree/src/gx_dri ver.c#n1560, this is the function GeodeCalculatePitchBytes, in the process of calculate the pitch,

Re: [PATCH] composite: only update window contents when using automatic redirection

2010-09-08 Thread Adam Jackson
On Tue, 2010-09-07 at 14:43 -0700, Keith Packard wrote: On Tue, 7 Sep 2010 12:48:32 -0700, Jesse Barnes jbar...@virtuousgeek.org wrote: Brian pointed this out awhile back but the fix was never merged. So here's a real patch. Would be nice to get into 1.9.x as well if it proves ok in

Re: [PATCH] linux: Don't lose console events on non-evdev drivers (#29969)

2010-09-08 Thread Adam Jackson
On Mon, 2010-09-06 at 11:52 +1000, Peter Hutterer wrote: From: Thomas Hellstrom thellst...@vmware.com The drain_console() function will race with new keyboard events being added by the hardware causing the server to lose keyboard events if the console fd is used for input. Only use the

Re: [PATCH/RFC] xfree86: add a hook to replace the new console handler.

2010-09-08 Thread Adam Jackson
On Mon, 2010-09-06 at 11:56 +1000, Peter Hutterer wrote: This hook is only necessary for the keyboard driver to remove the race condition between drain_console() and the driver's ReadInput (Bug 29969). The idea is that a driver that needs to handle events from the console calls

[PATCH] Add -xkbcompdir parameter to modify xkbcomp path from commandline.

2010-09-08 Thread Adam Tkac
Hello, this message belongs to thread http://lists.x.org/archives/xorg-devel/2010-September/012519.html. Improved patch addresses issue with the SUID servers. Reason why I need -xkbcompdir parameter is that in TigerVNC upstream we ship prebuilt Xvnc server. Different distributions can have

[PATCH] composite: Convert compWindowUpdate to use TraverseTree

2010-09-08 Thread Adam Jackson
Signed-off-by: Adam Jackson a...@redhat.com --- composite/compwindow.c | 36 +--- 1 files changed, 17 insertions(+), 19 deletions(-) diff --git a/composite/compwindow.c b/composite/compwindow.c index 160b764..df06c88 100644 --- a/composite/compwindow.c +++

Re: [PATCH build 2/6] Found another environment variable to document.

2010-09-08 Thread Jeremy Huddleston
With libX11-1.4, shouldn't we just get rid of this variable? On Sep 8, 2010, at 07:34, Trevor Woerner wrote: From: Trevor Woerner twoer...@gmail.com USE_XCB Signed-off-by: Trevor Woerner twoer...@gmail.com --- build.sh |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

Re: [PATCH] Zero buffer data in BufAlloc()

2010-09-08 Thread Jeremy Huddleston
Neat. Reviewed-by: Jeremy Huddleston jerem...@apple.com On Sep 8, 2010, at 07:44, Adam Jackson wrote: Inspired by a pattern in NoMachine's NX. Consistently zeroed buffers compress better with ssh and friends. Note that you'll need to rebuild all your protocol libraries to take advantage of

Re: [PATCH build 2/6] Found another environment variable to document.

2010-09-08 Thread Trevor Woerner
On Wed, Sep 8, 2010 at 3:15 PM, Jeremy Huddleston jerem...@apple.com wrote: With libX11-1.4, shouldn't we just get rid of this variable? I wouldn't know, but if others are in agreement I'd be happy to remove it. ___ xorg-devel@lists.x.org: X.Org

Re: [PATCH] composite: Convert compWindowUpdate to use TraverseTree

2010-09-08 Thread Keith Packard
On Wed, 8 Sep 2010 14:04:40 -0400, Adam Jackson a...@redhat.com wrote: Signed-off-by: Adam Jackson a...@redhat.com --- composite/compwindow.c | 36 +--- 1 files changed, 17 insertions(+), 19 deletions(-) diff --git a/composite/compwindow.c

Re: [PATCH] composite: Convert compWindowUpdate to use TraverseTree

2010-09-08 Thread Adam Jackson
On Wed, 2010-09-08 at 12:35 -0700, Keith Packard wrote: -void -compWindowUpdate (WindowPtr pWin) +static int +compWindowUpdateVisit(WindowPtr pWin, void *data) { -WindowPtr pChild; - -for (pChild = pWin-lastChild; pChild; pChild = pChild-prevSib) -

[PATCH V2] composite: Convert compWindowUpdate to use TraverseTree

2010-09-08 Thread Adam Jackson
v2: Use != RedirectDrawNone, since we aren't called for manual windows. Signed-off-by: Adam Jackson a...@redhat.com --- composite/compwindow.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/composite/compwindow.c b/composite/compwindow.c

[PATCH xserver] Add identifier to union to avoid warning.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com Signed-off-by: Trevor Woerner twoer...@gmail.com --- gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux) Before this fix my build log was filled with the following: $prefix/include/xorg/edid.h:623:4: warning: declaration does not

[PATCH mesa] Include search for non pkg-config libtalloc.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com Change search for libtalloc so a build which includes it in a non pkg-config'ized form will succeed. Signed-off-by: Trevor Woerner twoer...@gmail.com --- My system includes libtalloc and libtalloc-devel in a way that is not pkg-config'ized. I'm hoping

Re: [PATCH V2] composite: Convert compWindowUpdate to use TraverseTree

2010-09-08 Thread Keith Packard
On Wed, 8 Sep 2010 16:08:24 -0400, Adam Jackson a...@redhat.com wrote: v2: Use != RedirectDrawNone, since we aren't called for manual windows. Signed-off-by: Adam Jackson a...@redhat.com Reviewed-by: Keith Packard kei...@keithp.com -- keith.pack...@intel.com pgpN0oduQWYXH.pgp

Re: [PATCH mesa] Include search for non pkg-config libtalloc.

2010-09-08 Thread Eric Anholt
On Wed, 8 Sep 2010 17:01:25 -0400, Trevor Woerner twoer...@gmail.com wrote: From: Trevor Woerner twoer...@gmail.com Change search for libtalloc so a build which includes it in a non pkg-config'ized form will succeed. Signed-off-by: Trevor Woerner twoer...@gmail.com --- My system

Re: [PATCH] mouse wheel acceleration

2010-09-08 Thread Albert Zeyer
Simon Thum: 2. The pointer acceleration code was highly pointer specific. It heavily used those valuators. Yes again - but only in the scheme function. That's just wiring it up with the pointer - as said, the acceleration context is pretty agnostic (I'm cooking up a patch to get rid of the

Re: [PATCH build 1/6] []/test consistency

2010-09-08 Thread Peter Hutterer
On Wed, Sep 08, 2010 at 10:34:10AM -0400, Trevor Woerner wrote: From: Trevor Woerner twoer...@gmail.com Build script cleanup. Make the use of '[ ... ]' and 'test' consistent throughout. please don't mix up whitespace changes and code changes in a single patch. it's distracting during code

Re: [PATCH build 2/6] Found another environment variable to document.

2010-09-08 Thread Peter Hutterer
On Wed, Sep 08, 2010 at 03:27:54PM -0400, Trevor Woerner wrote: On Wed, Sep 8, 2010 at 3:15 PM, Jeremy Huddleston jerem...@apple.com wrote: With libX11-1.4, shouldn't we just get rid of this variable? I wouldn't know, but if others are in agreement I'd be happy to remove it. the build

Re: [PATCH build 4/6] Document '-l' command-line option.

2010-09-08 Thread Peter Hutterer
On Wed, Sep 08, 2010 at 10:36:29AM -0400, Trevor Woerner wrote: From: Trevor Woerner twoer...@gmail.com Add this option to the usage display. Signed-off-by: Trevor Woerner twoer...@gmail.com I think Patch 3/6 went MIA, can you re-send please? this one doesn't apply without it. Cheers,

Re: [PATCH build 1/6] []/test consistency

2010-09-08 Thread Trevor Woerner
On Wed, Sep 8, 2010 at 8:31 PM, Trevor Woerner twoer...@gmail.com wrote: Sorry, I didn't see those as two different changes. Since all conditionals now use test and have a semicolon immediately following the test case I saw both actions as making all checks consistent. ... I'll keep them

[PATCH build 3/6] Add help options to usage.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com The -h and --help options were missing from the usage display. Exit successfully from the usage display. Signed-off-by: Trevor Woerner twoer...@gmail.com --- build.sh |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git

[PATCH] mi: handle DGA subtypes when determining the master device.

2010-09-08 Thread Peter Hutterer
The subtype in the DGA event is the core type and all ET_ event types (where applicable) are identical to the core types. Thus the switch statement below will work as required and assign the right master device. Fixes a crasher bug on keyboard devices with valuators. If a device sends a motion

Re: [PATCH mesa] Include search for non pkg-config libtalloc.

2010-09-08 Thread Trevor Woerner
On Wed, Sep 8, 2010 at 6:41 PM, Eric Anholt e...@anholt.net wrote: You should be able to make your build succeed with the TALLOC_LIBS and TALLOC_CFLAGS environment variables already.  See ./configure --help. Thanks. I'm not all that familiar with pkg-config. Unfortunately the following doesn't

[PATCH v2 0/5] xfree86: nds32: add nds32 related support to xorg-xserver.

2010-09-08 Thread Macpaul Lin
NDS32 is a new 32-bit RISC architecture invented by andestech.com. It has a 16-bit/32-bit mixed-length instruction set to achieve optimal system performance, code density, and power efficiency. NDS32 also provide N9, N10, N12 different CPU core families for soft-core and hard-core SoC design.

[PATCH v2 1/5] xfree86: nds32: add nds32 related definitions into include headers.

2010-09-08 Thread Macpaul Lin
Add MSB/LSB related definitions into include/servermd.h Signed-off-by: Macpaul Lin macp...@andestech.com --- include/servermd.h | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/include/servermd.h b/include/servermd.h index e1d644e..271d936 100644 ---

[PATCH v2 2/5] xfree86: nds32: add nds32 definition for support linux video related io.

2010-09-08 Thread Macpaul Lin
Add __nds32__ definitions for supporing correct io method for lnx_video.c Signed-off-by: Macpaul Lin macp...@andestech.com --- hw/xfree86/os-support/linux/lnx_video.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/os-support/linux/lnx_video.c

[PATCH v2 3/5] xfree86: nds32: add nds32 definition for vgaHW support.

2010-09-08 Thread Macpaul Lin
Add __nds32__ definitions for vgaHW support. Signed-off-by: Macpaul Lin macp...@andestech.com --- hw/xfree86/vgahw/vgaHW.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xfree86/vgahw/vgaHW.h b/hw/xfree86/vgahw/vgaHW.h index 7e63492..b31c007 100644 ---

[PATCH v2 5/5] xfree86: nds32: add nds32 support for compiler related mmio codes

2010-09-08 Thread Macpaul Lin
Add nds32 support for compiler related mmio codes. It includes byte-swap or non-swap operations. Signed-off-by: Macpaul Lin macp...@andestech.com --- hw/xfree86/common/compiler.h | 411 ++ 1 files changed, 411 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 2/3] ddx: Prepare xf86 to renounce input handling duties

2010-09-08 Thread Peter Hutterer
On Wed, Sep 08, 2010 at 04:32:09AM -0300, Fernando Carrijo wrote: Peter Hutterer peter.hutte...@who-t.net wrote: On Tue, Aug 31, 2010 at 04:00:13PM -0300, Fernando Carrijo wrote: From: Fernando Carrijo fcarr...@freedesktop.org Signed-off-by: Fernando Carrijo fcarr...@freedesktop.org

Re: [PULL] input fixes, the safe ones

2010-09-08 Thread Peter Hutterer
On Mon, Sep 06, 2010 at 01:16:26PM +1000, Peter Hutterer wrote: On Wed, Sep 01, 2010 at 03:12:48PM +1000, Peter Hutterer wrote: Please pull from the branch below. These are the input fixes that do not change the ABI and most of them are safe to be pulled into stable branches as well.

RE: what is the purpose of GeodeCalculatePitchBytes function?

2010-09-08 Thread Cui, Hunk
Hi, Jordan ajax, As you said, it is a compression algorithm, in your 2008-11-18 patch: LX: Change the way EXA memory is allocated ( http://cgit.freedesktop.org/xorg/driver/xf86-video-geode/commit/?id=cf06 55edbcbd3910c12c33d8c786cc72c0242786 ), you have one operation: Disable compression

[PATCH mesa] Include search for non pkg-config libtalloc.

2010-09-08 Thread Trevor Woerner
From: Trevor Woerner twoer...@gmail.com Signed-off-by: Trevor Woerner twoer...@gmail.com --- configure.ac |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index a7ee0f5..f4202e9 100644 --- a/configure.ac +++ b/configure.ac @@ -486,7 +486,9

[PATCH libXi 1/3] Add XI2 library-internal array offsets to XIint.h

2010-09-08 Thread Peter Hutterer
These defines are currently defined in XI.h and XI2.h. Their only use is as offset into a library-internal array. Move them to XIint.h so they may be removed from the protocol headers with the next revision. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/XIint.h | 15

[PATCH libXi 2/3] Require XI 2 for all XI 2 calls.

2010-09-08 Thread Peter Hutterer
Each XI2 call should check _XiCheckExtInit for XI version 2.0 or higher. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/XIAllowEvents.c |2 +- src/XIDefineCursor.c |2 +- src/XIGetDevFocus.c |2 +- src/XIGrabDevice.c |4 ++-- src/XIHierarchy.c|2 +-

[PATCH libXi 3/3] Rename XSetCPtr.c to XISetCPtr.c.

2010-09-08 Thread Peter Hutterer
XISetClientPointer is an XI2.0 call and should be named accordingly. Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/Makefile.am |2 +- src/XISetCPtr.c | 62 +++ src/XSetCPtr.c | 62

Re: [PATCH mesa] Include search for non pkg-config libtalloc.

2010-09-08 Thread Mikhail Gusarov
Twas brillig at 17:01:25 08.09.2010 UTC-04 when twoer...@gmail.com did gyre and gimble: TW -PKG_CHECK_MODULES([TALLOC], [talloc]) TW +AC_SEARCH_LIBS([talloc_version_major], [talloc], TW +[TALLOC_LIBS=-ltalloc TW +AC_CHECK_HEADERS([talloc.h], [TALLOC_CFLAGS=])], TW +

Re: [PATCH mesa] Include search for non pkg-config libtalloc.

2010-09-08 Thread Mikhail Gusarov
Twas brillig at 00:22:38 09.09.2010 UTC-04 when twoer...@gmail.com did gyre and gimble: TW From: Trevor Woerner twoer...@gmail.com TW Signed-off-by: Trevor Woerner twoer...@gmail.com TW --- TW configure.ac |4 +++- TW 1 files changed, 3 insertions(+), 1 deletions(-) TW diff --git