Re: [PATCH] dix: make RegionInit legal C++

2015-01-23 Thread Keith Packard
Alan Coopersmith writes: >> Signed-off-by: Adam Jackson > Same code as http://patchwork.freedesktop.org/patch/39718/ but different > comments. My r-b from > http://lists.x.org/archives/xorg-devel/2015-January/045096.html > applies to either set of comments. Merged. 0829310..bb23fbf master

Re: [PATCH:libXxf86vm] Tell the compiler it's unlikely we're talking to an XFree86 3.x server

2015-01-23 Thread Keith Packard
Alan Coopersmith writes: > Hint that the current (XFree86 4.0 & later) version of the protocol > is most common today. I thought _X_UNLIKELY was to direct optimization? If so, it's hard to see why we'd worry about that in this extension, unless you think there's some documentation value here? -

Re: [PATCH] glamor: workaround a libepoxy bug in glObjectLabel

2015-01-23 Thread Keith Packard
Maarten Lankhorst writes: > libepoxy doesn't handle this case well, and tries to look for the > glObjectLabel symbol in GLES2. > As a result, using glObjectLabelKHR with opengl, or glObjectLabel with > GLES will crash. Let's get libepoxy fixed, instead of kludging around this in the X server.

Re: [PATCH v2] backtrace.c: Fix word cast to a pointer

2015-01-23 Thread Keith Packard
Vicente Olivert Riera writes: > Making the cast to a pointer-sized integer, and then to a pointer fixes > the problem. Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org devel

Re: [PATCH v3 3/4] modesetting: Add support for using RandR shadow buffers

2015-01-23 Thread Keith Packard
leave shadow_enable alone > > Signed-off-by: Jason Ekstrand Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature ___ 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] dri2: SourceOffloads may be for DRI3 only

2015-01-23 Thread Keith Packard
David Airlie writes: >> As a DDX may declare offload support without supporting DRI2 >> (because it is using an alternative acceleration mechanism like DRI3), >> when iterating the list of offload_source Screens to find a matching >> DRI2 provider we need to check before assuming it is DRI2 capab

Re: [PATCH] Avoid possible null pointer dereference.

2015-01-23 Thread Keith Packard
Alan Coopersmith writes: > On 01/20/15 04:44 PM, Carlos Olmedo Escobar wrote: >> Signed-off-by: Carlos Olmedo Escobar > > Reviewed-by: Alan Coopersmith Merged. 437d2ec..f27d743 master -> master -- -keith signature.asc Description: PGP signature _

Re: [PATCH] randr: swap num-preferred field on RRGetOutputInfo reply

2015-01-23 Thread Keith Packard
Dave Airlie writes: > On 21 January 2015 at 19:22, Carlos Sánchez de La Lama > wrote: >> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=88614 >> Signed-off-by: Carlos Sánchez de La Lama > > Reviewed-by: Dave Airlie Merged. 3d12941..437d2ec master -> master -- -keith signature.asc

Re: [PATCH] glamor: use screen blockhandler rather than dix one (v3)

2015-01-23 Thread Keith Packard
Dave Airlie writes: > From: Dave Airlie > > This adds glamor into the block handler call chain > in the correct place. > > This should fix interactions between glamor and drivers > requiring damage from glamor. > > v2: okay don't consolidate, just leave things wierd for now > remove blcokhandler

Re: [RFC] [PATCH] Extend block and wakeup handling to cover writes as well

2015-01-23 Thread Keith Packard
Pierre Ossman writes: > On Thu, 25 Dec 2014 13:55:13 -0800, > Keith Packard wrote: > >> Pierre Ossman writes: >> >> > Please see the attached patch and see if this seems like a reasonable >> > way to solve this. I thought about changing the BlockHandler

[PATCH] drivers/modesetting: Save current BlockHandler on return in msBlockHandler

2015-01-22 Thread Keith Packard
If the BlockHandler chain is modified while it is active (the only time it can be modified), we need to re-fetch the current value and store it in our private for use the next time through. Signed-off-by: Keith Packard --- hw/xfree86/drivers/modesetting/driver.c | 1 + 1 file changed, 1

Re: [PATCH] glamor: use screen blockhandler rather than dix one (v2)

2015-01-22 Thread Keith Packard
->BlockHandler(screen, timeout, readmask); You'll need to add: glamor_priv->saved_procs.block_handler = screen->BlockHandler in case the block handler chain was modified during that call. Otherwise, this is Reviewed-by: Keith Packard -- -keith signature.asc Descrip

Re: [PATCH] modesetting: flush glamor before flushinh dirty rects to kernel

2015-01-22 Thread Keith Packard
Dave Airlie writes: > From: Dave Airlie > > Some kernel drivers require notification that the frontbuffer > has changed, so we add a damage collector and send the dirty > rects in the block handler. It appears the glamor block > handler was getting called after this one, leading to things > gett

Re: [PATCH] xwayland: Set glamor filter to nearest

2015-01-16 Thread Keith Packard
Markus Wick writes: > glEGLImageTargetTexture2DOES only set the first level. > Mesa handles this new texture as incomplete and renders a black screen. > We also want to prevent linear filtering. > > https://bugs.freedesktop.org/show_bug.cgi?id=81800 > > Signed-off-by: Markus Wick Merged. 5f2

Re: [PULL] subwindow event fixes, capslock in Xephyr/Xnest

2015-01-16 Thread Keith Packard
Peter Hutterer writes: > Olivier Fourdan (2): > Fix subwindow in Xi emulated events > Synchronize capslock in Xnest and Xephyr Merged. 4e12d7b..5f2e8ac master -> master -- -keith signature.asc Description: PGP signature ___ xorg-dev

[PATCH] glamor: * 1/size is faster than / size in VS

2015-01-16 Thread Keith Packard
Pass the inverse of the texture size to glamor vertex shaders so that we multiply by that instead of dividing by the size as multiplication is generally faster than division. Signed-off-by: Keith Packard --- glamor/glamor_copy.c | 8 glamor/glamor_program.c | 16

Re: 1.17 status and schedule

2015-01-11 Thread Keith Packard
Markus Wick writes: > Yeah, I did wrote it. But meanwhile, I'd remove the MAX_LEVEL parameter > as this isn't allowed in gl es. Please send an updated patch containing the bits you want, along with a Signed-off-by: line and we'll review it, merging it if it looks good. -- -keith signature.a

Re: [PATCH v2 2/6] modesetting: Use a gbm buffer for shadow if we are using glamor

2015-01-10 Thread Keith Packard
Jason Ekstrand writes: > Correction, we have two completely different concepts of "shadow fb" going > on here. One is the shadow from miext/shadow that seems to cover the > entire screen pixmap. The other shadow buffers, the ones used for > rotation, should be per-crtc. These two concepts of s

Re: 1.17 status and schedule

2015-01-09 Thread Keith Packard
"Jasper St. Pierre" writes: > Well, either MAX_LEVEL / BASE_LEVEL or MIN_FILTER / MAG_FILTER will > fix it. Well, we want to set the filters anyways, to avoid using LINEAR, which can end up blending just a little bit due to rounding issues. But, setting MAX_LEVEL might well help some drivers, so

Re: 1.17 status and schedule

2015-01-09 Thread Keith Packard
"Jasper St. Pierre" writes: > I guess I should follow up with that I don't really care how the patch ends > up or which six colors of the bikeshed we end up choosing. I just want you > to be aware of why that patch fixes the bug, why Eric is saying that we > don't need MAX_LEVEL, and why GL is su

Re: [PATCH] modesetting: Update the cursor without hiding it

2015-01-09 Thread Keith Packard
Keith Packard writes: >> It's unknown why the X server does this by default, but turn it off. > Reviewed-by: Keith Packard Merged. b058dec..4e12d7b master -> master -- -keith signature.asc Description: PGP signature _

Re: 1.17 status and schedule

2015-01-09 Thread Keith Packard
Axel Davy writes: > Actually we went up with a solution, the final patch wasn't sent to ml > for a reason > I don't know or remember. > > Recently someone else complaint of the bug and I linked him to a > preliminary patch we had, > and it fixed it for him. > The preliminary patch was > http:/

Re: 1.17 status and schedule

2015-01-08 Thread Keith Packard
Michel Dänzer writes: > On 05.01.2015 10:35, Keith Packard wrote: >> >> Ok, it's (almost) the first working day of the year, and we're supposed >> to be shipping 1.17. I think we're quite close, but I want to make sure >> everyone is ready for the

Re: [PATCH] modesetting: Copy over VRefresh to/from KMS modes

2015-01-08 Thread Keith Packard
"Jasper St. Pierre" writes: > Fine by me. I actually stopped using vrefresh in my kernel driver and > instead started using drm_mode_vrefresh, so we can actually drop this > patch. Oh, we should send the correct vrefresh value to the kernel; it's part of the API after all. Having an integer vref

Re: [PATCH] modesetting: Copy over VRefresh to/from KMS modes

2015-01-08 Thread Keith Packard
"Jasper St. Pierre" writes: > Because several functions do not properly fill in mode->VRefresh. A simple > example is xf86RandRModeConvert. I figured it would be easier when we fill > in vrefresh rather than fill all callers. Sounds like we should just remove VRefresh then and compute it everywh

Re: [PATCH] modesetting: Copy over VRefresh to/from KMS modes

2015-01-08 Thread Keith Packard
"Jasper St. Pierre" writes: > The kernel might want this information during modesetting. > --- > hw/xfree86/drivers/modesetting/drmmode_display.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c > b/hw/xfree86/drivers/modesetting/drmmod

Re: [PATCH v2 5/6] modesetting: Add support for using shadow buffers

2015-01-08 Thread Keith Packard
, > + "Couldn't allocate shadow pixmap for rotated CRTC\n"); > +return NULL; This error path will need to free the shadow data, if that was allocated as a part of this function. The rest of this patch has been Reviewed-by: Keith Packard -- -ke

Re: [PATCH v2 4/6] modesetting: Add a drmmode_bo_has_bo helper function

2015-01-08 Thread Keith Packard
Jason Ekstrand writes: > --- > hw/xfree86/drivers/modesetting/drmmode_display.c | 11 +++ > 1 file changed, 11 insertions(+) Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.o

Re: [PATCH] dix: make RegionInit legal C++

2015-01-08 Thread Keith Packard
Adam Jackson writes: > On Mon, 2015-01-05 at 13:54 -0800, Alan Coopersmith wrote: >> Same code as http://patchwork.freedesktop.org/patch/39718/ but different >> comments. My r-b from >> http://lists.x.org/archives/xorg-devel/2015-January/045096.html >> applies to either set of comments. > > Tsk,

Re: [PATCH v2 1/6] modesetting: Allocate and destroy shadow_fb in drmmode_display

2015-01-08 Thread Keith Packard
Jason Ekstrand writes: > This way all of the buffer allocation/destruction is in the same file. Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: h

Re: [PATCH v2 6/6] modesetting: Return the crtc for a drawable even if it's rotated

2015-01-08 Thread Keith Packard
FPS. Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature ___ 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 v2 2/6] modesetting: Use a gbm buffer for shadow if we are using glamor

2015-01-08 Thread Keith Packard
see the old shadow_bo getting freed anywhere; did I miss something? The rest of this patch looks good and is Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature ___ 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] modesetting: Update the cursor without hiding it

2015-01-08 Thread Keith Packard
(ScreenPtr pScreen, int argc, char **argv) > if (!ms->drmmode.sw_cursor) > xf86_cursors_init(pScreen, ms->cursor_width, ms->cursor_height, >HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_64 | > + HARDWARE_CURSOR_

Re: [PATCH v2 3/6] modesetting: Refactor drmmode_glamor_new_screen_pixmap

2015-01-08 Thread Keith Packard
ndle_new_screen_pixmap so that glamor_set_screen_pixmap >only gets called for the screen pixmap > - Guard the call to glamor_set_screen_pixmapa with a drmmode->glamor > check Reviewed-by: Keith Packard -- -keith signature.asc Description: PGP signature ___

Re: [PATCH] backtrace.c: Fix word cast to a pointer

2015-01-08 Thread Keith Packard
Vicente Olivert Riera writes: > Making the cast to a pointer-sized integer, and then to a pointer fixes > the problem. > -if (dladdr((void *)(pip.start_ip + off), &dlinfo) && > dlinfo.dli_fname && > +if (dladdr((void *)(long)(pip.start_ip + off), &dlinfo) && > dlinfo.dli_fname

Re: [PATCH v2 0/6] Add shadow FB support to the modesetting driver

2015-01-07 Thread Keith Packard
Jason Ekstrand writes: > Turns out that our trip down the rabbit hole today about the dumb_bo.pitch > parameter was a red hering. That was in bytes the entire time. The actual > bug was that I was passing cpp rather than bpp into drmmode_create_bo. Awesome! Glad you figured it out. > > If you'

Re: 1.17 status and schedule

2015-01-05 Thread Keith Packard
Aaron Plattner writes: > I mentioned it on IRC but I should probably say it here too for the > record: I don't think this should go into 1.17. It's a big enough > change in behavior that some soak time on master is probably warranted. > We can always backport it to server-1.17-branch later

Re: 1.17 status and schedule

2015-01-05 Thread Keith Packard
Alan Coopersmith writes: > Is the change discussed on IRC to change the default from --disable-glamor > to enabling if PKG_CHECK_MODULES(epoxy) slated for 1.18 as well, since it's > a bit late to change for 1.17? Yes, I think changing the default build can wait; anyone who wants to include it in

Re: [PATCH] mi: fix accidental x/y coordinate swap

2015-01-05 Thread Keith Packard
Peter Hutterer writes: > On Mon, Jan 05, 2015 at 12:54:28PM -0800, Eric Anholt wrote: >> Peter Hutterer writes: >> >> > Reported-by: Adam Greenblatt >> > Signed-off-by: Peter Hutterer >> >> Seems pretty obvious. >> >> Reviewed-by: Eric Anholt > > Thanks! > > Keith, can you merge this one d

Re: [PATCH] doc: Create a script to filter xmlto output

2015-01-05 Thread Keith Packard
Peter Hutterer writes: >> Signed-off-by: Keith Packard > > Reviewed-by: Peter Hutterer Merged. 1c01633..23a11fd master -> master -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development

Re: [PATCH] doc: Create a script to filter xmlto output

2015-01-04 Thread Keith Packard
n updated patch which fixes those, and filters xmlto output even harder so that it now generates no output in the normal case for me. From 6ac3a081f5fbe38eeb9fe6d92efe3111e6dc4a77 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 4 Jan 2015 19:13:35 -0800 Subject: [PATCH] doc: Create a script t

Re: [PATCH] glamor: Don't unbind the GL_ARRAY_BUFFER in glamor_put_vbo_space().

2015-01-04 Thread Keith Packard
Kenneth Graunke writes: > That's true. I should probably just resurrect your Xephyr VAO patch, and > extend it for the rest of Glamor as well. Yeah, would be good as that's required for 3.0 core context support. Note that most of the VAO work is actually in the Render extension drawing code, an

[PATCH] doc: Create a script to filter xmlto output

2015-01-04 Thread Keith Packard
This reduces the build log spam while still preserving the xmlto status to catch build failures correctly. Signed-off-by: Keith Packard --- devbook.am | 10 ++ doc/filter-xmlto | 17 + 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100755 doc/filter

1.17 status and schedule

2015-01-04 Thread Keith Packard
Ok, it's (almost) the first working day of the year, and we're supposed to be shipping 1.17. I think we're quite close, but I want to make sure everyone is ready for the release before it happens. From my list of pending patches, we've got: glamor: some optimizations for lighter-weight h

Re: [PATCH 5/5] doc: filter out doc generation spam

2015-01-04 Thread Keith Packard
Keith Packard writes: > Peter Hutterer writes: > >> I wonder if we've reached the point where having a small shell script to >> build >> this with the reduced output is easier than stuffing this into makefile >> rules... > > Could be. This just seemed

Re: [PULL] GLX and Xephyr fixes

2015-01-04 Thread Keith Packard
Adam Jackson writes: > Adam Jackson (2): > glx: Dynamically compute attribute slot in GetDrawableAttributes > glx: Add hack for GLX-1.2-style naked windows to GetDrawableAttributes Merged. 3573855..1c01633 master -> master -- -keith signature.asc Description: PGP signature __

Re: [PATCH] Remove explicit dependency on $(WAYLAND_LIBS)

2015-01-04 Thread Keith Packard
Peter Hutterer writes: > Reviewed-by: Peter Hutterer Merged. de89c6b..3573855 master -> master -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel In

Re: [PATCH] glamor: Don't unbind the GL_ARRAY_BUFFER in glamor_put_vbo_space().

2015-01-04 Thread Keith Packard
Eric Anholt writes: > I think this will break glamor_xv.c and Xephyr, but I'm definitely in > favor of just making those explicitly bind their VBO state instead (or > maybe just use the same VBO if we can). I think we're going to rework a bunch of this code when we switch to vertex arrays anyway

Re: [PULL] Xorg.bin rename, coordinate fix

2015-01-04 Thread Keith Packard
Peter Hutterer writes: > Peter Hutterer (2): > dix: offset touch root coordinates by ScreenRec origins (#86655) > xfree86: rename Xorg.bin to Xorg Merged. dc777c3..de89c6b master -> master -- -keith signature.asc Description: PGP signature

Re: [PATCH 1/3] glamor: Just set the logic op to what we want at the start of all rendering.

2015-01-04 Thread Keith Packard
Kenneth Graunke writes: > I remember commenting about this to Keith at one point, and I seem to recall > him preferring idempotency - each operation alters some state, then puts it > back when it's done. Except that we're really just mashing it on then > mashing > it off, not saving/restorin

Re: [PATCH] dix: Allow zero-height PutImage requests

2015-01-03 Thread Keith Packard
Alan Coopersmith writes: > Reviewed-by: Alan Coopersmith Merged. 924996c..dc777c3 master -> master -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-deve

Re: misc fixes for VC4

2015-01-03 Thread Keith Packard
Rob Clark writes: > hmm, what minimum gl and gles version do we need to expose instanced > drawing? Or any other useful extensions that glamor could use? Not > sure if that would make a difference between gl vs gles? We use instanced drawing on anything with GLSL version 1.30 or later. As fo

[PATCH] dix: Allow zero-height PutImage requests

2015-01-03 Thread Keith Packard
The length checking code validates PutImage height and byte width by making sure that byte-width >= INT32_MAX / height. If height is zero, this generates a divide by zero exception. Allow zero height requests explicitly, bypassing the INT32_MAX check. Signed-off-by: Keith Packard ---

Re: misc fixes for VC4

2015-01-02 Thread Keith Packard
Rob Clark writes: > well, adreno doesn't do native quads, and I think vc4 doesn't > either... so an alternative path is useful. Perhaps we should cook up > an extension to indicate that quads are emulated if just avoiding > quads across the board is not a good option for some hw... Would GLES j

Re: [PATCH] ephyr: Implement per-screen colormaps

2015-01-02 Thread Keith Packard
Eric Anholt writes: >> Reviewed-by: Adam Jackson >> Signed-off-by: Michele Baldessari > > Reviewed-by: Eric Anholt Merged. 7b076fd..924996c master -> master -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org

Re: [PATCH v2] os/xsha1.c: Add license and copyright attribution.

2015-01-02 Thread Keith Packard
Carl Worth writes: > I'm interested in copying this code to the mesa project, but before > doing that it seems prudent to have the license and copyright > attributions in place before copying that. To get this list of names I > went through: > > git log -- os/xsha1.c > and: > git log

Re: misc fixes for VC4

2015-01-02 Thread Keith Packard
"Jasper St. Pierre" writes: > On a UMA system, that's effectively free. With a triangle fan and > glMultiDrawElements, you can get it down to four, same as a quad. Though > I'm not sure if mesa fully supports glMultiDrawElements. > > I believe mesa supports primitive reset, so with a triangle fan

Re: misc fixes for VC4

2015-01-01 Thread Keith Packard
Rob Clark writes: > What about simply not using GL_QUADS for the normal GL paths? Is > using quads, vs tri's and a few extra vertices really going to be a > win on some other hw? If not, avoiding quads would be a big help for > freedreno too.. Without quads, you end up replicating a lot of ver

Re: [PATCH] modesetting: Fix build with --disable-glamor.

2015-01-01 Thread Keith Packard
Rob Clark writes: > Reviewed-by: Rob Clark Merged. d723928..6672606 master -> master -- -keith signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http:/

Re: [PATCH] os: Fix timer race conditions

2014-12-29 Thread Keith Packard
the original patch. From f8d1142238a8fe2f274aaeba25484c84f26aaf81 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 29 Dec 2014 14:34:11 -0800 Subject: [PATCH] os: Fix warnings in timer patch --- os/WaitFor.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a

Re: [PATCH] os: Fix timer race conditions

2014-12-29 Thread Keith Packard
> Keith, any chance of getting this in for 1.17? I know you expressed > reservations about it, but the current code definitely corrupts the > timer list and is affecting a bunch of people, so this patch is > certainly better than nothing. Yeah, it's an ugly little bit of code, and still seems

Re: [PATCH] xfree86: rename Xorg.bin to Xorg

2014-12-28 Thread Keith Packard
Peter Hutterer writes: > Haven't sent one yet, I wanted to wait for Hans' ack/nak on this, but with > the holiday period atm it'll take a few more days. I'll send out the pull > after that. Ok, just checking. I'd like to wrap up 1.17 before I take off for LCA if possible; not sure what else you

Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)

2014-12-28 Thread Keith Packard
Eric Anholt writes: > Reviewed-by: Eric Anholt Merged. 09230a2..d723928 master -> master -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xo

Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)

2014-12-27 Thread Keith Packard
Kertesz Laszlo writes: > Tried it and it works. I had a ~10 min Skype call and had no issues. Thanks for testing. -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lis

Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)

2014-12-27 Thread Keith Packard
Eric Anholt writes: >> --- a/glamor/glamor_xv.c >> +++ b/glamor/glamor_xv.c >> @@ -435,7 +435,7 @@ glamor_xv_put_image(glamor_port_private *port_priv, >> } >> >> top = (src_y) & ~1; >> -nlines = (src_y + height) - top; >> +nlines = (src_y + src_h) - top; >> >> switch (i

Re: Skype bi-directional video call crashes X server (xserver, mesa, drm, kernel from git, r600g+glamor)

2014-12-27 Thread Keith Packard
ew only a subset of the image. I think the client is drawing at src_y=1, src_h=239 for some weird reason (I suspect a bug in the client). Try this patch: From eaa4225413b31314070f9a52d9290649e79a3b0f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 27 Dec 2014 09:11:33 -0800 Subject: [PATC

Re: Fwd: x11perf move test performance

2014-12-25 Thread Keith Packard
Michel Dänzer writes: > One possible reason is that in contrast to the M9000, the HD5450 doesn't > have a dedicated 2D engine which can do overlapping blits. It has to > emulate those using two copies via a temporary pixmap. If the difference is glamor vs custom 2d code, then the problem is almo

Re: [PATCH] xfree86: rename Xorg.bin to Xorg

2014-12-25 Thread Keith Packard
Peter Hutterer writes: > true, both changed locally Did I miss a patch/pull request with this change included? -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.

Re: [PATCH] Drop valuator mask argument from GetKeyboardEvents

2014-12-25 Thread Keith Packard
Peter Hutterer writes: > Nothing was using it and if anyone had they would've gotten a warning and > noticed that it doesn't actually work. Drop this, it has been unused for > years. > > Input ABI 22 Seems reasonable to fix the API for this, but the patch will need to wait until after 1.17 is r

Re: [RFC] [PATCH] Extend block and wakeup handling to cover writes as well

2014-12-25 Thread Keith Packard
Pierre Ossman writes: > Please see the attached patch and see if this seems like a reasonable > way to solve this. I thought about changing the BlockHandlerProc > definition, but it is exposed in application headers so it didn't seem > safe to touch. I think we should just change the BlockHandle

Re: [PATCH 3/4] modesetting: Refactor drmmode_glamor_new_screen_pixmap

2014-12-25 Thread Keith Packard
Jason Ekstrand writes: > -glamor_set_screen_pixmap(screen_pixmap, NULL); > +glamor_set_screen_pixmap(pixmap, NULL); This call is only valid for the screen pixmap. We need to fix the glamor APIs (I've posted a long blog article about this, and have a patch sequence proposed already). --

Re: [PATCH 2/4] modesetting: Use a gbm buffer for shadow if we can

2014-12-25 Thread Keith Packard
Jason Ekstrand writes: > Signed-off-by: Jason Ekstrand We probably only want to use a gbm buffer if we're using glamor; otherwise, it's possible we'll get potentially slow video memory for our software rendering path, and that would defeat most of the reason for using a shadow frame buffer. --

Re: [PATCH 1/4] modesetting: Allocate and destroy shadow_fb in drmmode_display

2014-12-25 Thread Keith Packard
symmetrical with drmmode_create_initial_bos and fetch the Screen from the ScrnInfo with xf86ScrnToScreen. Otherwise, this patch is Reviewed-by: Keith Packard -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel@lists.x.org:

Re: [PATCH v2 1/5] present: If present_queue_vblank() fails, do present_execute().

2014-12-25 Thread Keith Packard
Keith Packard writes: > Kenneth Graunke writes: > >> Previously, if present_queue_vblank() failed, we simply dropped the >> present request on the floor, and returned an error. This was rather >> mean to clients - after presenting, they wait for a PresentComplete >

Re: [PATCH v2] Fix "Back", "Forward", and other special mouse buttons in XWayland.

2014-12-25 Thread Keith Packard
Peter Hutterer writes: > On Mon, Dec 22, 2014 at 11:35:29AM -0800, Dima Ryazanov wrote: >> Currently, the indexes are off by 4 because of the scroll buttons. >> >> Signed-off-by: Dima Ryazanov > > Reviewed-by: Peter Hutterer Merged. 70a6f65..f9e22ce master -> master -- keith.pack...@int

Re: [PATCH] glamor: Make sure Xvideo source image data is properly aligned

2014-12-25 Thread Keith Packard
Michel Dänzer writes: > From: Michel Dänzer > > _glamor_upload_bits_to_pixmap_texture currently ignores the stride > parameter, but __glamor_upload_pixmap_to_texture uses 4-byte alignment > via glPixelStorei(GL_UNPACK_ALIGNMENT, 4). > > Also fix up the stride argument passed in though, in case i

Re: [PATCH] glamor: Call glamor_pixmap_destroy_fbo from glamor_set_pixmap_private

2014-12-25 Thread Keith Packard
Michel Dänzer writes: > Fixing Debian bug report address. Merged. 0d37c7e..11b85ab master -> master -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/a

Re: [PATCH 2/2] modesetting: Detect whether damage tracking is needed

2014-12-25 Thread Keith Packard
Jason Ekstrand writes: > Reviewed-by: Jason Ekstrand Merged. 826e7c2..0d37c7e master -> master -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archi

Re: [PATCH v2] Get rid of const warnings in XSERVER_INPUT_EVENT dtrace probe calls

2014-12-23 Thread Keith Packard
you want to stick probes.h in include instead of dix so you don't have a relative include in os/connection.c? I'm easy, it's just a suggestion. Reviewed-by: Keith Packard -- keith.pack...@intel.com signature.asc Description: PGP signature ___

Re: RFC: server-side XCB

2014-12-20 Thread Keith Packard
Jamey Sharp writes: > 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

Re: [PATCH 2/2] modesetting: Detect whether damage tracking is needed

2014-12-19 Thread Keith Packard
Jason Ekstrand writes: >> +if (err != -EINVAL && err != -ENOSYS) { > > I'm not terribly familiar with the ioctls here, but why are we ignoring > EINVAL? The previous patch made it sound like ENOSYS was the "I don't > support this" error and EINVAL was a genuine error. We're treating EINVAL

[PATCH 0/2] modesetting: Get rid of unnecessary damage tracking

2014-12-19 Thread Keith Packard
The modesetting driver has support for informing the kernel driver about all dirty regions of the screen. Frame buffer drivers like DisplayLink use this to minimize the amount of data sent over the link when things change. Most other framebuffer drivers don't need (or want) this. The first patch

[PATCH 2/2] modesetting: Detect whether damage tracking is needed

2014-12-19 Thread Keith Packard
Call drmModeDirtyFB and check the return value to detect whether the driver support for damage tracking is present, only initialize it in that case. Signed-off-by: Keith Packard --- hw/xfree86/drivers/modesetting/driver.c | 27 --- 1 file changed, 16 insertions(+), 11

[PATCH 1/2] modesetting: Fix damage tracking auto-disable code

2014-12-19 Thread Keith Packard
n and let dispatch_dirty deal with them. Signed-off-by: Keith Packard --- hw/xfree86/drivers/modesetting/driver.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index d9a2982..59

Re: [PATCH 00/12] DMX warning cleanup

2014-12-19 Thread Keith Packard
xtensionInit() in dmx.c Yeah, Rémi is right, i/j/k are terrible index variable names, but I've also read through all of these and they look good to me. Reviewed-by: Keith Packard -- keith.pack...@intel.com signature.asc Description: PGP signature ___

Re: [PATCH 2/3] Solaris: Move shared declarations to xf86_OSlib.h

2014-12-19 Thread Keith Packard
Alan Coopersmith writes: > Gets rid of gcc 4.8 warnings: > xf86AutoConfig.c:211:9: warning: nested extern declaration of > 'xf86SolarisFbDev' [-Wnested-externs] > sun_VTsw.c:44:1: warning: no previous prototype for 'xf86VTRelease' > [-Wmissing-prototypes] > sun_VTsw.c:59:1: warning: no pre

Re: [PATCH 3/3] Get rid of const warnings in XSERVER_INPUT_EVENT dtrace probe calls

2014-12-19 Thread Keith Packard
Alan Coopersmith writes: > dtrace generates these as taking non const arguments, so cast away > the constness of the pointers when calling them. I really don't like casting away const. I note that Xserver-dtrace.h.in is in git, so you could (?) add the const there instead? -- keith.pack...@int

Re: [PATCH] modesetting: Enable Xv when using glamor

2014-12-19 Thread Keith Packard
Alex Deucher writes: > On Sun, Dec 14, 2014 at 1:29 AM, Keith Packard wrote: >> This just calls the existing function to create the relevant Xv >> adaptor and hook it up. >> >> Signed-off-by: Keith Packard > > Reviewed-by: Alex Deucher Merged. 5

Re: [PATCH v2 1/5] present: If present_queue_vblank() fails, do present_execute().

2014-12-18 Thread Keith Packard
ust > enough to not lock up people's compositing manager when vblank bugs > happen. > > v2: Don't do present_queue_vblank() /and/ present_execute() (a bug that > snuck in during last minute tidying). With this replacement for the previous patch, the whole series is Revi

Re: [PATCH] xfree86: rename Xorg.bin to Xorg

2014-12-18 Thread Keith Packard
, "%s: Failed to execute %s/Xorg: %s\n", > progname, SUID_WRAPPER_DIR, strerror(errno)); > exit(1); This could be simplified to just use the computed name in the two locations that print it out? Otherwise, this change is r

Re: [PATCH] modesetting: [v2] Don't re-enable the cursor when loading the image

2014-12-18 Thread Keith Packard
Michel Dänzer writes: > Opening curly brace goes on separate line. > > With that fixed, > > Reviewed-by: Michel Dänzer Merged. 0f5fdaf..5a541bd master -> master -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel

Re: [PATCH] modesetting: [v2] Don't re-enable the cursor when loading the image

2014-12-18 Thread Keith Packard
Michel Dänzer writes: > Opening curly brace goes on separate line. Too much java in my life, clearly. > With that fixed, > > Reviewed-by: Michel Dänzer Thanks!. -- keith.pack...@intel.com signature.asc Description: PGP signature ___ xorg-devel@l

[PATCH] modesetting: [v2] Don't re-enable the cursor when loading the image

2014-12-17 Thread Keith Packard
displayed. Signed-off-by: Keith Packard --- hw/xfree86/drivers/modesetting/drmmode_display.c | 76 +--- hw/xfree86/drivers/modesetting/drmmode_display.h | 1 + 2 files changed, 41 insertions(+), 36 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/

Re: [PATCH] modesetting: Don't re-enable the cursor when loading the image

2014-12-17 Thread Keith Packard
Michel Dänzer writes: > I don't think there's any guarantee that the new cursor image will > become visible without calling drmModeSetCursor(2), so this solution > won't work in general (e.g. with virtual hardware). Instead, you need to > remember whether or not the cursor is currently visible, a

[PATCH] modesetting: Don't re-enable the cursor when loading the image

2014-12-16 Thread Keith Packard
drmmode_show_cursor. Signed-off-by: Keith Packard --- hw/xfree86/drivers/modesetting/drmmode_display.c | 30 ++-- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c index

Re: [PATCH 3/3] glx/dri3: Request non-vsynced Present for swapinterval zero.

2014-12-16 Thread Keith Packard
Mario Kleiner writes: > It's just that i need access to both, the old behaviour i described, and > the new "drop frame" behaviour, and i need a way to select what i want > at runtime via api without the need for easily overwhelmed and confused > users to change config files or environment vari

Re: [PATCH 3/3] glx/dri3: Request non-vsynced Present for swapinterval zero.

2014-12-16 Thread Keith Packard
Mario Kleiner writes: > Hmm. For benchmarking i think i'd consider that a mild form of cheating. > You get higher fps because you skip processing like the whole gpu blit > overhead and host processing overhead for queuing / validating / > processing the copy command in the command stream, so t

Re: [PATCH 3/3] glx/dri3: Request non-vsynced Present for swapinterval zero.

2014-12-16 Thread Keith Packard
Mario Kleiner writes: > The 0 case is good for benchmarking. Sure, but the current code does benchmarking just fine. In fact, because it doesn't copy queued frames that aren't the most recent before the vblank, benchmarks tend to run *faster* as a result, and people generally like that aspect of

Re: [PATCH] modesetting: Add vblank synchronization support when using Present.

2014-12-15 Thread Keith Packard
Kenneth Graunke writes: > On Friday, December 12, 2014 02:21:57 PM Jason Ekstrand wrote: >> Another note: With this patch, I had an issue that, when it woke my monitor >> up after a lock, it was entirely black + cursor. VT switching didn't >> help. I killed gnome shell and, when I came back thi

Re: [PATCH 3/3] glx/dri3: Request non-vsynced Present for swapinterval zero.

2014-12-14 Thread Keith Packard
Mario Kleiner writes: > Restores proper immediate tearing swap behaviour for > OpenGL bufferswap under DRI3/Present. Hrm. I'd love for this to be controlled by the GLX_EXT_swap_control_tear extension, but that one uses negative interval values to indicate tearing, instead of providing a new API,

<    8   9   10   11   12   13   14   15   16   17   >