Re: [Mesa-dev] [PATCH] glxproto: make GLX swap event struct match spec

2011-05-04 Thread Dave Airlie
On Wed, 2011-05-04 at 16:16 -0700, Jesse Barnes wrote: > On Wed, 04 May 2011 15:17:31 -0700 > Ian Romanick wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On 05/03/2011 12:21 PM, Jesse Barnes wrote: > > > We only spec a 32 bit swap count, so drop the high sbc field. > > >

Re: [Mesa-dev] glproto changes

2011-05-04 Thread Jeremy Huddleston
Yeah... so considering the comments in mesa-dev earlier today, I was really surprised to see that glproto and dri2proto were tagged today. I think we need to brownbag retract and rethink this. These changes break API. I'm all for fixing the structs, but anything that breaks API (or worse, pro

[PATCH 5/6] XKB: Send XKB events for all devices to all clients

2011-05-04 Thread Daniel Stone
We were using XIShouldNotify(client, device) as a test for whether or not to send XKB map/state/etc changed events, which limits it to only sending events for the current ClientPointer/ClientKeyboard for that client. While this makes perfect sense for core events (e.g. MappingNotify), XKB events c

[PATCH 6/6] XKB: Fix sense inversion for core MapNotify events

2011-05-04 Thread Daniel Stone
Due to an unfortunate sense inversion incident while switching from a if (foo) { ... } to if (!foo) continue; style in f06a9d, we punished any client who attempted to use XKB to restrict the MapNotify events they wanted by sending them exactly the events they _didn't_ want, and nothing else. NewKe

[PATCH 3/6] XKB: Remove duplicate keymap-copying loop

2011-05-04 Thread Daniel Stone
Previously we had: foreach (device + slaves of device) { XkbCopyDeviceKeymap(i, device); [...] } if (device was last slave of its MD) { XkbCopyDeviceKeymap(master, device); } and now: foreach (device + slaves of device + MD if device was last slave) {

[PATCH 4/6] XKB: Send NewKeyboardNotify for dev before its master/slaves

2011-05-04 Thread Daniel Stone
When we change the keymap on a device, send the NewKeyboardNotify for that device before we copy the keymap to and notify for its attached master/slave devices. Signed-off-by: Daniel Stone --- xkb/xkb.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --g

[PATCH 2/6] XKB: Simplify a loop in ProcXkbGetKbdByName

2011-05-04 Thread Daniel Stone
Replace: for (stuff; things; etc) { if (misc || other) { [...] } } with: for (stuff; things; etc) { if (!misc && !other) continue; [...] } Signed-off-by: Daniel Stone --- xkb/xkb.c | 29 +++-- 1 fil

[PATCH 1/6] XKB: Don't send unnecessary NewKeyboardNotifies

2011-05-04 Thread Daniel Stone
In the XKB GetKeyboardByName handler, we had the following pseudocode: if (device was last slave of its MD) { XkbCopyDeviceKeymap(master, slave); XkbSendNewKeyboardNotify(slave, ¬ify); } Even if the SendNewKeyboardNotify line nominated the correct device, which it didn't, i

[PATCH 0/6] XKB event regression fixes and cleanup

2011-05-04 Thread Daniel Stone
Hi, This series cleans up XKB event sending a bit, and hopefully fixes a couple of regressions from f06a9d. If these seem happy in master then I'll nominate them for stable branches too. Cheers, Daniel ___ xorg-devel@lists.x.org: X.Org development Archi

Re: [Mesa-dev] glproto changes

2011-05-04 Thread Jesse Barnes
On Thu, 5 May 2011 11:17:02 +1000 Dave Airlie wrote: > So I wasn't watching and glproto broke its interface, and I think its bad. > > Why? > > You can no longer bisect things across this point without now moving glproto. > glxproto.h:xGLXBufferSwapComplete was a released header file > definitio

glproto changes

2011-05-04 Thread Dave Airlie
So I wasn't watching and glproto broke its interface, and I think its bad. Why? You can no longer bisect things across this point without now moving glproto. glxproto.h:xGLXBufferSwapComplete was a released header file definition, you cannot go back and change history. This should have been hand

Re: [Mesa-dev] [PATCH] glxproto: make GLX swap event struct match spec

2011-05-04 Thread Jesse Barnes
On Wed, 4 May 2011 17:49:37 -0700 Jesse Barnes wrote: > How about you look at git and see what happened last time? > > We added some dri2 proto requests, and people wanted to build with old > versions w/o the new requests. So they added some ifdefs but didn't > check all the combos (now not just

Re: [Mesa-dev] [PATCH] glxproto: make GLX swap event struct match spec

2011-05-04 Thread Jesse Barnes
On Thu, 05 May 2011 09:32:46 +1000 Dave Airlie wrote: > On Wed, 2011-05-04 at 16:16 -0700, Jesse Barnes wrote: > > On Wed, 04 May 2011 15:17:31 -0700 > > Ian Romanick wrote: > > > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA1 > > > > > > On 05/03/2011 12:21 PM, Jesse Barnes wrote: >

Re: [PATCH:xf86-input-acecad 6/6] Remove pointless checks on is_core_pointer.

2011-05-04 Thread Peter Hutterer
On Thu, May 05, 2011 at 02:04:12AM +0200, Cyril Brulebois wrote: > Signed-off-by: Cyril Brulebois Reviewed-by: Peter Hutterer for the series Feel free to push these once the requires is updated. Cheers, Peter > --- > src/acecad.c | 39 +-- > 1 files cha

Re: [PATCH] input: change CHECKEVENT macro to verify_internal_event function

2011-05-04 Thread Daniel Stone
On Thu, May 05, 2011 at 08:48:19AM +1000, Peter Hutterer wrote: > The macro is sufficient if called during a development cycle, but not > sufficient information when triggered by a user (e.g. > https://bugzilla.redhat.com/show_bug.cgi?id=688693). > > Expand what this does to print the event conten

Re: [PATCH:xf86-input-acecad 4/6] Drop support for pre-input ABI 12 servers.

2011-05-04 Thread Peter Hutterer
On Thu, May 05, 2011 at 02:04:10AM +0200, Cyril Brulebois wrote: > Signed-off-by: Cyril Brulebois > --- > configure.ac |2 +- > src/acecad.c | 75 +++-- > src/acecad.h |5 > 3 files changed, 5 insertions(+), 77 deletions(-) > > d

Re: Post-1.5.0 cleanup for xf86-input-acecad

2011-05-04 Thread Daniel Stone
On Thu, May 05, 2011 at 02:04:06AM +0200, Cyril Brulebois wrote: > nothing fancy, I hope. Just addressing a few compiler warnings, and > following Peter's suggestion, dropping support for input ABI < 12. For the series: Reviewed-by: Daniel Stone Cheers, Daniel ___

Re: [PATCH resend] input: Only release SD buttons for explicit floating/reattachment (#36146)

2011-05-04 Thread Daniel Stone
On Wed, May 04, 2011 at 10:12:36AM +1000, Peter Hutterer wrote: > Grabbing an SD device temporary floats the device but we must not release > the buttons. Introduced in > > commit 9d23459415b84606ee4f38bb2d19054c432c8552 > Author: Peter Hutterer > Date: Fri Feb 25 11:08:19 2011 +100

[PULL] input fixes

2011-05-04 Thread Peter Hutterer
This is mostly Daniel's branch minus the commit that added the button grab issue (and another cleanup one that conflicted after removing the first). Plus the bugfix for the SD grab issue we've been seeing. The following changes since commit 5cb31cd0cbf83fff5f17a475e7b0e45246b19bf3: Merge remot

Re: [PATCH] dix: only transform valuators when we need them.

2011-05-04 Thread Peter Hutterer
On Wed, May 04, 2011 at 10:15:22AM +0200, Chase Douglas wrote: > On 05/03/2011 03:28 AM, Peter Hutterer wrote: > > On Mon, Apr 25, 2011 at 12:58:17PM -0400, Chase Douglas wrote: > >> On 04/21/2011 03:35 AM, Peter Hutterer wrote: > >>> Unconditionally drop the valuators back into the mask when they

[PATCH:xf86-input-acecad 6/6] Remove pointless checks on is_core_pointer.

2011-05-04 Thread Cyril Brulebois
Signed-off-by: Cyril Brulebois --- src/acecad.c | 39 +-- 1 files changed, 17 insertions(+), 22 deletions(-) diff --git a/src/acecad.c b/src/acecad.c index de2577e..ad6d793 100644 --- a/src/acecad.c +++ b/src/acecad.c @@ -729,7 +729,7 @@ ReadInput (InputInfo

[PATCH:xf86-input-acecad 1/6] Avoid “'ReverseConvertProc' defined but not used” warning.

2011-05-04 Thread Cyril Brulebois
Move this function next to its unique caller (AceCadPreInit), and only declare/define it when the input ABI is strictly less than 12. Signed-off-by: Cyril Brulebois --- src/acecad.c | 31 +++ src/acecad.h |2 +- 2 files changed, 16 insertions(+), 17 deletions(-)

[PATCH:xf86-input-acecad 5/6] Remove checks on the ABI now that 12 or higher is required.

2011-05-04 Thread Cyril Brulebois
Signed-off-by: Cyril Brulebois --- src/acecad.c | 22 -- 1 files changed, 0 insertions(+), 22 deletions(-) diff --git a/src/acecad.c b/src/acecad.c index 17e141f..de2577e 100644 --- a/src/acecad.c +++ b/src/acecad.c @@ -79,10 +79,8 @@ #endif #endif -#if GET_ABI_MAJOR(AB

[PATCH:xf86-input-acecad 3/6] Fix “initialization from incompatible pointer type” for default_options.

2011-05-04 Thread Cyril Brulebois
InputDriverRec's last field is a char**, not a const char**, fix this warning accordingly: | CC acecad.lo | acecad.c:132:1: warning: initialization from incompatible pointer type [enabled by default] | acecad.c:132:1: warning: (near initialization for 'ACECAD.default_options') [enabled by d

[PATCH:xf86-input-acecad 4/6] Drop support for pre-input ABI 12 servers.

2011-05-04 Thread Cyril Brulebois
Signed-off-by: Cyril Brulebois --- configure.ac |2 +- src/acecad.c | 75 +++-- src/acecad.h |5 3 files changed, 5 insertions(+), 77 deletions(-) diff --git a/configure.ac b/configure.ac index 4c76754..5b11092 100644 --- a/confi

[PATCH:xf86-input-acecad 2/6] Silence gcc: report_{x, y} are getting initialized.

2011-05-04 Thread Cyril Brulebois
Get us rid of: | CC acecad.lo | acecad.c: In function 'USBReadInput': | acecad.c:1052:43: warning: 'report_y' may be used uninitialized in this function [-Wuninitialized] | acecad.c:1052:43: warning: 'report_x' may be used uninitialized in this function [-Wuninitialized] Both code paths (w

Post-1.5.0 cleanup for xf86-input-acecad

2011-05-04 Thread Cyril Brulebois
Hi, nothing fancy, I hope. Just addressing a few compiler warnings, and following Peter's suggestion, dropping support for input ABI < 12. Mraw, KiBi. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: h

Re: [PATCH xinput 1/2] Silence compiler warning

2011-05-04 Thread Jeremy Huddleston
Reviewed-by: Jeremy Huddleston On May 4, 2011, at 4:14 PM, Peter Hutterer wrote: > Static analysis claims that ptr += size may assign garbage. But since the > protocol requires format to be 8, 16 or 32, size should always have a valid > value. Initialize to 0 to shut up clang. > > Signed-off-by

Re: [PATCH xinput 2/2] Initialize a few more values to defaults.

2011-05-04 Thread Jeremy Huddleston
Thanks, Reviewed-by: Jeremy Huddleston On May 4, 2011, at 4:14 PM, Peter Hutterer wrote: > If we ever print for those, we have a buggy X server that's > breaking the protocol. Until that happens this is just to shut up clang. > > All three are assigned constant strings only, no free() needed

Re: [Mesa-dev] [PATCH] glxproto: make GLX swap event struct match spec

2011-05-04 Thread Jesse Barnes
On Wed, 4 May 2011 16:16:37 -0700 Jesse Barnes wrote: > On Wed, 04 May 2011 15:17:31 -0700 > Ian Romanick wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On 05/03/2011 12:21 PM, Jesse Barnes wrote: > > > We only spec a 32 bit swap count, so drop the high sbc field. > > >

Re: [Mesa-dev] [PATCH] glxproto: make GLX swap event struct match spec

2011-05-04 Thread Jesse Barnes
On Wed, 04 May 2011 15:17:31 -0700 Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 05/03/2011 12:21 PM, Jesse Barnes wrote: > > We only spec a 32 bit swap count, so drop the high sbc field. > > > > Signed-off-by: Jesse Barnes > > Is there any way we could do this

[PATCH xinput 2/2] Initialize a few more values to defaults.

2011-05-04 Thread Peter Hutterer
If we ever print for those, we have a buggy X server that's breaking the protocol. Until that happens this is just to shut up clang. All three are assigned constant strings only, no free() needed. Signed-off-by: Peter Hutterer --- src/test_xi2.c |5 +++-- 1 files changed, 3 insertions(+),

[PATCH xinput 1/2] Silence compiler warning

2011-05-04 Thread Peter Hutterer
Static analysis claims that ptr += size may assign garbage. But since the protocol requires format to be 8, 16 or 32, size should always have a valid value. Initialize to 0 to shut up clang. Signed-off-by: Peter Hutterer --- src/property.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

[PATCH] input: change CHECKEVENT macro to verify_internal_event function

2011-05-04 Thread Peter Hutterer
The macro is sufficient if called during a development cycle, but not sufficient information when triggered by a user (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=688693). Expand what this does to print the event content and a backtrace, so at least we know where we're coming from. Only the f

Re: [PATCH libX11 2/3] XKB: Avoid a possible NULL dereference

2011-05-04 Thread Peter Hutterer
ed area. given that we haven't seen any actual issues yet, it suggests that this code is never hit by our current layouts. Cheers, Peter > or should we just be skipping the check (which is what I accidentally pushed)? > > http://people.freedesktop.org/~jeremyhu/analyzer/yuffie/2

Re: [Mesa-dev] Make swap event handling match the spec

2011-05-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/03/2011 12:21 PM, Jesse Barnes wrote: > Ian reminded me that we changed the spec to fit within an XEvent, but we > never updated the code to match. This set of patches (much simpler than > the last) does just that. Wrapping support can be added

Re: [PATCH libX11 3/3] Dead code removal

2011-05-04 Thread Peter Hutterer
On Wed, May 04, 2011 at 11:50:49AM -0700, Jeremy Huddleston wrote: > > XKBGeom.c:118:27: warning: Assigned value is always the same as the existing > value > for (key=row->keys,pos=k=0;knum_keys;k++,key++) { >~~~^~~~ > XKBGeom.c:115:5: warning: Value stored to 'pos' is

Re: [Mesa-dev] [PATCH] glxproto: make GLX swap event struct match spec

2011-05-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/03/2011 12:21 PM, Jesse Barnes wrote: > We only spec a 32 bit swap count, so drop the high sbc field. > > Signed-off-by: Jesse Barnes Is there any way we could do this and NOT break building older versions of Mesa? I'd like to be able to buil

Re: [PATCH] glxproto: make GLX swap event struct match spec

2011-05-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/03/2011 02:08 PM, Jesse Barnes wrote: > On Tue, 3 May 2011 14:02:31 -0700 > Jesse Barnes wrote: > >> On Tue, 03 May 2011 13:54:38 -0700 >> Keith Packard wrote: >> >>> On Tue, 3 May 2011 12:21:24 -0700, Jesse Barnes >>> wrote: >>> We on

[PATCH xf86-video-ati 2/2] kms: Move flip_count and co. to a per swap structure

2011-05-04 Thread Ville Syrjala
If multiple drawables are doing page flipping, the global drmmode structure can't be used to keep per swap information. For example flip_count can increase prematurely due to another swap request, and then the previous swap request never gets completed, leading to a stuck client. Move the relevant

xf86-video-ati page flipping fixes

2011-05-04 Thread Ville Syrjala
I came to the conclusion that the xserver DRI2 invalidate patches that have been discussed aren't really fixing the problem. I suppose they may make the problem slightly less likely to happen, but at least for me that likelyhood is still very high. The whole mess looks like a simple driver bug to m

[PATCH xf86-video-ati 1/2] dri2: Update front buffer pixmap and name before exchanging buffers

2011-05-04 Thread Ville Syrjala
Buffer exchange assumes that the front buffer pixmap and name information is accurate. That may not be the case eg. if the window has been (un)redirected since the buffer was created. Signed-off-by: Ville Syrjala --- src/radeon_dri2.c | 45 - 1 files

Re: [PATCH libX11 2/3] XKB: Avoid a possible NULL dereference

2011-05-04 Thread Jeremy Huddleston
nalyzer/yuffie/20110504-/libX11/report-F0RlNS.html#EndPath On May 4, 2011, at 11:50, Jeremy Huddleston wrote: > > XKBGeom.c:191:25: warning: Access to field 'x1' results in a dereference of a > null pointer (loaded from variable 'rbounds') >

[PATCH libX11 3/3] Dead code removal

2011-05-04 Thread Jeremy Huddleston
XKBGeom.c:118:27: warning: Assigned value is always the same as the existing value for (key=row->keys,pos=k=0;knum_keys;k++,key++) { ~~~^~~~ XKBGeom.c:115:5: warning: Value stored to 'pos' is never read pos= 0; ^~ Found-by: clang static analyzer Signed-off-

[PATCH libX11 2/3] XKB: Avoid a possible NULL dereference

2011-05-04 Thread Jeremy Huddleston
XKBGeom.c:191:25: warning: Access to field 'x1' results in a dereference of a null pointer (loaded from variable 'rbounds') _XkbCheckBounds(bounds,rbounds->x1,rbounds->y1); ^~~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston --- src/x

[PATCH libX11 1/3] Annotate _XIOError as _X_NORETURN

2011-05-04 Thread Jeremy Huddleston
Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston --- configure.ac |2 +- include/X11/Xlibint.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index ce86c93..a39ab8d 100644 --- a/configure.ac +++ b/configure.ac @@

[PATCH libX11 0/3] some static analysis fixups

2011-05-04 Thread Jeremy Huddleston
My brain-dead self accidentally git push'd these already, but please still review in case it needs to be changed. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/x

[PULL 1.10] GLX fix merge from master

2011-05-04 Thread Adam Jackson
Contains everything from my last 1.10 pull request, plus three more. --- The following changes since commit be3f41d1ec5413d0ad05ef18e145714201d602aa: dix: fix typo in direction calculation (2011-05-04 10:14:10 +1000) are available in the git repository at: ssh://people.freedesktop.org/~ajax

[PULL updated] XQuartz: clang, rwlocks, and one more legacy support

2011-05-04 Thread Jeremy Huddleston
The following changes since commit 5cb31cd0cbf83fff5f17a475e7b0e45246b19bf3: Merge remote-tracking branch 'jturney/remove-opengl-spec-download' (2011-04-29 09:59:49 -0700) are available in the git repository at: git://people.freedesktop.org/~jeremyhu/xserver master Jeremy Huddleston (4):

[PULL xserver] Composite ClipNotify fix and expose event elimination

2011-05-04 Thread Ville Syrjälä
The following changes since commit 5cb31cd0cbf83fff5f17a475e7b0e45246b19bf3: Merge remote-tracking branch 'jturney/remove-opengl-spec-download' (2011-04-29 09:59:49 -0700) are available in the git repository at: git://gitorious.org/vsyrjala/xserver.git composite_validatetree_2 Ville Syrjäl

Re: [PATCH xdm] Implement ConsoleKit support.

2011-05-04 Thread Alan Coopersmith
On 05/ 4/11 02:45 AM, Cyril Brulebois wrote: > I so like people breaking stuff which was working. Isn't that ConsoleKit's entire reason for existence? I've still never gotten a good explanation of what problem it's intended to solve or how it makes the system better instead of just more complica

Re: [PULL] Accumulated small input changes

2011-05-04 Thread Keith Packard
On Wed, 4 May 2011 16:18:58 +1000, Peter Hutterer wrote: > please don't pull this one yet, Thanks for the update; I'll sit tight. -- keith.pack...@intel.com pgpOID5fAgk9F.pgp Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development

Re: [PATCH xdm] Implement ConsoleKit support.

2011-05-04 Thread Dan Nicholson
2011/2/24 Fernando Tarlá Cardoso Lemos : > Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=17325 > > Since ConsoleKit 0.4.2, the sessions created by ck-launch-session are no > longer marked as local and active. This means that distributions can't simply > call ck-launch-session in Xsession.d an

Re: [PATCH xdm] Implement ConsoleKit support.

2011-05-04 Thread Cyril Brulebois
Hi, (just witnessed I can no longer halt or reboot my computer, and ck-list-sessions pretends it's a non-local session.) Fernando Tarlá Cardoso Lemos (24/02/2011): > Since ConsoleKit 0.4.2, the sessions created by ck-launch-session > are no longer marked as local and active. This means that > di

Re: [PATCH] dix: only transform valuators when we need them.

2011-05-04 Thread Chase Douglas
On 05/03/2011 03:28 AM, Peter Hutterer wrote: > On Mon, Apr 25, 2011 at 12:58:17PM -0400, Chase Douglas wrote: >> On 04/21/2011 03:35 AM, Peter Hutterer wrote: >>> Unconditionally drop the valuators back into the mask when they were there >>> in the first place. Otherwise, sending identical coordin