Re: [PATCH xserver] dri2: Invalidate DRI2 buffers for all windows with the same pixmap on swap.

2011-03-25 Thread Mario Kleiner
(haven't touched that part of the code for multiple months), you can also have a ... Reviewed-by: Mario Kleiner mario.klei...@tuebingen.mpg.de Acked-by: Mario Kleiner mario.klei...@tuebingen.mpg.de ... from me. I was suffering the same problems and was just about to spend my weekend on hunting

Re: Why no activity on this (nasty X segfault) bug?

2011-04-27 Thread Mario Kleiner
-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076

Re: Why no activity on this (nasty X segfault) bug?

2011-04-27 Thread Mario Kleiner
On Apr 27, 2011, at 5:12 PM, Ian Pilcher wrote: On 04/27/2011 10:00 AM, Mario Kleiner wrote: Original thread was this, between Michel and Keith: http://lists.x.org/archives/xorg-devel/2011-March/020716.html The refined patch of Keith that needs testing: http://www.mail-archive.com/xorg

Re: [RFC] swap event handling fixes

2011-04-29 Thread Mario Kleiner
On Apr 29, 2011, at 11:37 PM, Jesse Barnes wrote: On Thu, 28 Apr 2011 13:27:18 -0700 Jesse Barnes jbar...@virtuousgeek.org wrote: I obviously failed to count the swap event structure size after adding and removing fields a few times, and didn't even account for padding. The end result is

Re: xf86-video-ati page flipping fixes

2011-05-05 Thread Mario Kleiner
On May 5, 2011, at 4:23 PM, Ville Syrjälä wrote: On Thu, May 05, 2011 at 11:46:45AM +0200, Michel Dänzer wrote: On Mit, 2011-05-04 at 23:51 +0300, Ville Syrjala wrote: I came to the conclusion that the xserver DRI2 invalidate patches that have been discussed aren't really fixing the problem.

Re: xf86-video-ati page flipping fixes

2011-05-05 Thread Mario Kleiner
On May 5, 2011, at 6:06 PM, Ville Syrjälä wrote: On Thu, May 05, 2011 at 05:09:56PM +0200, Mario Kleiner wrote: On May 5, 2011, at 4:23 PM, Ville Syrjälä wrote: On Thu, May 05, 2011 at 11:46:45AM +0200, Michel Dänzer wrote: On Mit, 2011-05-04 at 23:51 +0300, Ville Syrjala wrote: I came

Re: [PATCH 2/2] DRI2: Add error message when working around driver bug

2010-10-06 Thread Mario Kleiner
Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076 Tuebingen Germany e-mail: mario.klei

Re: [PATCH 1/2] DRI2: Avoid call to NULL pointer

2010-10-06 Thread Mario Kleiner
___ 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 * Mario Kleiner Max Planck Institute for Biological

Re: [PATCH 1/2] DRI2: Avoid call to NULL pointer

2010-10-13 Thread Mario Kleiner
On Oct 7, 2010, at 10:06 AM, Pauli Nieminen wrote: On 07/10/10 00:42 +0200, ext Mario Kleiner wrote: On Oct 6, 2010, at 1:05 PM, Pauli Nieminen wrote: DDX driver may implement schedule swap without GetMSC. In that case we can't call GetMSC in DRI2SwapBuffers. I don't think this check

Re: [PATCH 1/2] DRI2: Avoid call to NULL pointer

2010-10-13 Thread Mario Kleiner
You can add a... Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de to your patch if you like. As far as i can see, such a driver would be limited to simple glXSwapBuffers() calls though if it doesn't know its own Oops, of course i meant a Reviewed-by: Mario Kleiner

Re: [PATCH] DRI2: Expose API to set drawable swap limit.

2010-10-25 Thread Mario Kleiner
, not the windowed case. thanks, -mario * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076 Tuebingen Germany e-mail: mario.klei...@tuebingen.mpg.de office: +49 (0)7071/601-1623 fax:+49 (0)7071/601-616

Re: [PATCH 2/2] DRI2: Add error message when working around driver bug

2010-10-25 Thread Mario Kleiner
On Oct 25, 2010, at 6:52 PM, Jesse Barnes wrote: On Mon, 25 Oct 2010 17:13:58 +0300 Pauli Nieminen ext-pauli.niemi...@nokia.com wrote: There isn't API that allows application atomically query for msc changes and schedule swaps. If msc changes dramatically between query and scheduling

Re: [PATCH 2/2] DRI2: Add error message when working around driver bug

2010-10-27 Thread Mario Kleiner
be unblocked and which are valid calls again? Ideas? Thanks again for all your work on this. These are good improvements. Indeed! -mario * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38

Re: [PATCH] DRI2: Expose API to set drawable swap limit.

2010-10-28 Thread Mario Kleiner
On Oct 28, 2010, at 6:10 PM, Pauli Nieminen wrote: I think we should have some way for the drivers to back out of this gracefully or at least cover their tails. E.g., allow the ddx to set a hard upper limit for the swap_limit, in a new field max_swap_limit. Your patch could make sure that

Re: [PATCH 2/2] DRI2: Add error message when working around driver bug

2010-10-28 Thread Mario Kleiner
On Oct 28, 2010, at 6:02 PM, Jesse Barnes wrote: On Thu, 28 Oct 2010 18:47:09 +0300 Pauli Nieminen ext-pauli.niemi...@nokia.com wrote: Most of what you have in (b) is pretty straightfoward; even the shared drawable case shouldn't be too bad, since each X connection could have bits

Re: [PATCH v2 5/5] DRI2: Allow DDX to validate swap_limit changes

2010-11-03 Thread Mario Kleiner
The whole patch series looks now good to me. For all of them: Reviewed-by: Mario Kleiner mario.klei...@tuebingen.mpg.de thanks, -mario On Nov 1, 2010, at 3:22 PM, Pauli Nieminen wrote: DDX can now implement validation for swap_limit changes to prevent configurations that are not support

Re: [PATCH] glx: Remove swap barrier and hyperpipe support

2010-11-22 Thread Mario Kleiner
On 11/19/2010 07:52 PM, Adam Jackson wrote: Never implemented in any open source driver. The implementation assumed explicit DDX driver knowledge of how the client-side driver worked, since at the time the server's GL renderer was not a DRI driver. But now, it is, so any implementation of these

Re: Swap limit

2010-12-10 Thread Mario Kleiner
On 12/08/2010 05:15 PM, Pauli Nieminen wrote: On 08/12/10 16:55 +0100, ext Alex Deucher wrote: One other thing that might be worth adding to DRI2 is a way for the driver to access the swap interval. If we could, then the driver could dynamically disable things like vline waits for buffer

Re: Swap limit

2010-12-13 Thread Mario Kleiner
On Dec 13, 2010, at 11:21 AM, Michel Dänzer wrote: On Mon, 2010-12-13 at 11:35 +0200, Pauli Nieminen wrote: On 12/12/10 19:49 -0500, ext Jerome Glisse wrote: On Fri, Dec 10, 2010 at 9:40 AM, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: On 12/08/2010 05:15 PM, Pauli Nieminen wrote

Re: Swap limit

2010-12-13 Thread Mario Kleiner
On Dec 10, 2010, at 8:00 PM, Jesse Barnes wrote: On Fri, 10 Dec 2010 15:40:38 +0100 Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: It schedules an immediate copy-swap via blitting. Unfortunately the ddx doesn't know about the swap_interval, so it still synchronizes the execution

[PATCH xserver/dri2 2/3] DRI2WaitSbc(): Fixes for correct semantic of glXWaitForSbcOML()

2010-02-20 Thread Mario Kleiner
scheduling a wait due to sbc = target_sbc. Now if function doesn't schedule a wait, but returns immediately, it returns the (ust,msc,sbc) of the most recently completed swap, i.e., the UST and MSC corresponding to the time when the returned current SBC was reached. Signed-off-by: Mario Kleiner mario.klei

[PATCH xserver/dri2] Improvements to DRI2 2.2 protocol bits.

2010-02-20 Thread Mario Kleiner
The following series of 3 patches contains some bug fixes and adds some missing functionality to the new DRI2 2.2 protocol requests for implementation of the SGI_swap_interval and OML_sync_control GLX extensions. Jesse Barnes already had a positive look at these patches, but i couldn't test any

[PATCH xserver/dri2] Fixes and Improvements for DRI 2.2 protocol bits

2010-02-20 Thread Mario Kleiner
at the patches. Due to lack of suitable hardware i wasn't able to test any of these, not even if they compile. Could somebody please test these and apply them if appropriate? Thanks, mario * Mario Kleiner Max Planck Institute

Improvements to Intel DDX for implementation of DRI2 OML_sync_control extensions.

2010-02-21 Thread Mario Kleiner
This series of 2 patches fixes issues in the Intel DDX implementation of I830DRI2ScheduleWaitMSC() and I830DRI2ScheduleSwap(). The previous implementation should mostly work in the simple glXSwapBuffers() case, although it may reduce the maximum swaprate to half the video refresh interval, e.g.,

[PATCH xf86-video-intel 2/2] Fix handling of target_msc, divisor, remainder in I830DRI2ScheduleSwap()

2010-02-21 Thread Mario Kleiner
manual adjustments to the returned vbl.reply.sequence number. This patch adds the needed adjustments. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/i830_dri.c | 110 +++ 1 files changed, 70 insertions(+), 40 deletions(-) diff

[PATCH xf86-video-intel 1/2] Fix I830DRI2ScheduleWaitMSC() to correctly handle target_msc, divisor and remainder.

2010-02-21 Thread Mario Kleiner
Previous code only handled divisor == 0 case correctly. This should honor a given target_msc for the divisor 0 case and handle the (msc % divisor) == remainder constraint correctly. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/i830_dri.c | 19 +++ 1

Re: Improvements to Intel DDX for implementation of DRI2 OML_sync_control extensions.

2010-03-03 Thread Mario Kleiner
://cgit.freedesktop.org/~jbarnes/xf86-video-intel/commit/? id=dd1930673565e70ec247f7f96ca0bdc575eecfb0 Ideas to fix? I'm a git newbie. thanks, -mario On Mar 4, 2010, at 1:28 AM, Eric Anholt wrote: On Sun, 21 Feb 2010 18:45:46 +0100, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: This series of 2 patches

Re: [PATCH] DRI2: fixup handling of last_swap_target

2010-03-04 Thread Mario Kleiner
. ___ xorg-devel mailing list xorg-devel@lists.x.org http://lists.x.org/mailman/listinfo/xorg-devel * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076 Tuebingen Germany

Re: Improvements to Intel DDX for implementation of DRI2 OML_sync_control extensions.

2010-03-04 Thread Mario Kleiner
everything to master. The tree to generate fixes against is git://git.freedesktop.org/git/xorg/driver/xf86-video-intel. Jesse On Thu, 4 Mar 2010 05:24:38 +0100 Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: They are against Jesse Barnes xf86-video-intel tree: http://cgit.freedesktop.org

Re: [PATCH] DRI2: fixup handling of last_swap_target

2010-03-04 Thread Mario Kleiner
will probably fail to merge and looking at it it seems that the amount of breakage/merge conflicts to fix will be much smaller if my patch is applied first, then yours on top of it instead of the other way round. -mario Thanks, Jesse On Thu, 4 Mar 2010 19:03:15 +0100 Mario Kleiner mario.klei

Re: [PATCH] DRI2: fixup handling of last_swap_target

2010-03-06 Thread Mario Kleiner
* Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076 Tuebingen Germany e-mail: mario.klei...@tuebingen.mpg.de office: +49 (0)7071/601-1623 fax:+49 (0)7071/601-616 www:http://www.kyb.tuebingen.mpg.de/~kleinerm

Re: [PATCH xf86-video-intel 2/2] Fix handling of target_msc, divisor, remainder in I830DRI2ScheduleSwap()

2010-03-07 Thread Mario Kleiner
; ... accidentally got copied twice into the if () clause, which is not harmful, but a bit redundant :-) best, -mario * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076 Tuebingen Germany e

Re: [PATCH] DRI2: fixup handling of last_swap_target

2010-03-07 Thread Mario Kleiner
is finished and out there. -mario On Mar 7, 2010, at 6:10 PM, Jesse Barnes wrote: On Sun, 7 Mar 2010 08:44:51 +0100 Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: On Mar 5, 2010, at 6:50 PM, Jesse Barnes wrote: Ok pushed fixes for these issues to the repo above. I know you've put

Re: [PATCH xf86-video-intel 2/2] Fix handling of target_msc, divisor, remainder in I830DRI2ScheduleSwap()

2010-03-07 Thread Mario Kleiner
On Mar 7, 2010, at 6:18 PM, Jesse Barnes wrote: Arg, I did botch that patch. And of course I only tested the swap buffers behavior and not OML's WaitMSC so I didn't catch it. I'll improve the test and push the fix. No problem. Just fyi: I noticed you added a test in

Re: [PATCH] DRI2: fixup handling of last_swap_target

2010-03-07 Thread Mario Kleiner
in bad MSC values is a good goal though too; I'd definitely be interested in making that aspect more robust. -- Jesse Barnes, Intel Open Source Technology Center * Mario Kleiner Max Planck Institute for Biological Cybernetics

Re: [PATCH] DRI2: fixup handling of last_swap_target

2010-03-08 Thread Mario Kleiner
On Mar 8, 2010, at 6:07 PM, Jesse Barnes wrote: On Sun, 7 Mar 2010 21:16:21 +0100 Florian Mickler flor...@mickler.org wrote: On Sun, 7 Mar 2010 09:10:51 -0800 Jesse Barnes jbar...@virtuousgeek.org wrote: On Sun, 7 Mar 2010 08:44:51 +0100 Mario Kleiner mario.klei...@tuebingen.mpg.de wrote

Re: [PATCH xf86-video-intel 2/2] Fix handling of target_msc, divisor, remainder in I830DRI2ScheduleSwap()

2010-03-08 Thread Mario Kleiner
On Mar 8, 2010, at 8:34 PM, Jesse Barnes wrote: Ok just pushed these fixes; omlsync seems to do the right thing now with both waits and swaps. Sorry to torture you further, almost there ;-) -- the devil is in the details. In I830DRI2ScheduleWaitMSC(): At the end, in this if statement...

Re: DRI2 fixes

2010-03-24 Thread Mario Kleiner
On Mar 22, 2010, at 11:03 PM, Jesse Barnes wrote: This is a collection of fixes from my personal server tree targeting the 1.8 release. They're mostly small fixes, but they fix a few important (i.e. common) cases with the new protocol code. Please review; I'll make any necessary changes,

[Patches][nouveau/ddx]: Improvements to bufferswap implementation and timestamping

2012-02-15 Thread Mario Kleiner
Hi, here a set of patches against the nouveau-ddx. This is an extended and revised set, based on Francisco Jerez feedback from autumn last year. [1/9] Makes pageflipping work again on X-Server 1.12rc. It apparently stopped working somewhere around Xorg 1.11+. [2/9] Implements handling of

[PATCH 1/9] dri2: Fix can_exchange() to allow page-flipping on new servers.

2012-02-15 Thread Mario Kleiner
can_exchange() fails on at least Xorg 1.12+. This fixes it in the same way it was fixed in the ati intel ddx. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/nouveau_dri2.c b/src

[PATCH 2/9] dri2: Implement handling of pageflip completion events.

2012-02-15 Thread Mario Kleiner
of the crtc whose vblank event initially triggered the swap is used, but handler waits for flip completion on all involved crtc's before completing the swap and releasing the old framebuffer. This code is almost identical to the code used in the ati/radeon ddx and intel ddx. Signed-off-by: Mario

[PATCH 3/9] dri2: Add support for DRI2SwapLimit() API.

2012-02-15 Thread Mario Kleiner
-buffering on XOrg 1.12+, 1 for double-buffering on older servers, as we can't change the swap limit there. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- man/nouveau.man| 11 +++ src/nouveau_dri2.c | 29 +++-- src/nv_const.h |2

[PATCH 4/9] dri2: Update front buffer pixmap and name before exchanging buffers

2012-02-15 Thread Mario Kleiner
for the ati/radeon ddx to fix the same bug there. See thread at: http://lists.x.org/archives/xorg-devel/2011-May/021908.html Fixes FDO bug #35452. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 45 ++--- 1 files changed, 42

[PATCH 5/9] dri2: Fixes to swap scheduling.

2012-02-15 Thread Mario Kleiner
/nouveau/2011-September/009143.html Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 23 +-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index 8608678..719b3bb 100644 --- a/src

[PATCH 6/9] dri2: Allow vblank controlled swaps for redirected windows. Part I

2012-02-15 Thread Mario Kleiner
(), glXGetSyncValuesOML(), glXWaitVideoSyncSGI, ... Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index 719b3bb..6a0800c 100644 --- a/src/nouveau_dri2.c +++ b/src

[PATCH 7/9] dri2: Allow vblank controlled swaps for redirected windows. Part II

2012-02-15 Thread Mario Kleiner
vblank, at least if sync to vblank for the compositor is on. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 32 +--- 1 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index

[PATCH 8/9] dri2: Reimplement hack for triple-buffering on old X-Servers.

2012-02-15 Thread Mario Kleiner
-servers. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- man/nouveau.man|6 +- src/nouveau_dri2.c | 32 +--- src/nv_driver.c| 11 ++- 3 files changed, 40 insertions(+), 9 deletions(-) diff --git a/man/nouveau.man b/man/nouveau.man

[PATCH 9/9] dri2: Fix corner case crash for swaplimit 1

2012-02-15 Thread Mario Kleiner
this throttling is not needed or done. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index f0c7fec..7878a5a 100644 --- a/src

Re: [PATCH 1/9] dri2: Fix can_exchange() to allow page-flipping on new servers.

2012-02-19 Thread Mario Kleiner
On 02/16/2012 11:04 AM, Michel Dänzer wrote: On Don, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: can_exchange() fails on at least Xorg 1.12+. This fixes it in the same way it was fixed in the ati intel ddx. Signed-off-by: Mario Kleinermario.klei...@tuebingen.mpg.de --- src/nouveau_dri2

Re: [PATCH 9/9] dri2: Fix corner case crash for swaplimit 1

2012-02-19 Thread Mario Kleiner
On 02/16/2012 10:46 AM, Michel Dänzer wrote: On Don, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: If a swaplimit 1 is set on a server which supports the swaplimit api (XOrg 1.12.0+), the following can happen: 1. Client calls glXSwapBuffersMscOML() with a swap target 1 vblank

Re: [PATCH] dri2: Pass AsyncSwap [swap_interval=0] requests to the drivers

2012-02-21 Thread Mario Kleiner
to benchmark how fast the whole rendering loop could go in the best case, so i want it to tear. Same for benchmarks. Other than that Reviewed-by: Mario Kleiner mario.klei...@tuebingen.mpg.de thanks, -mario * Mario Kleiner Max Planck

Re: [PATCH 1/9] dri2: Fix can_exchange() to allow page-flipping on new servers.

2012-02-21 Thread Mario Kleiner
On 02/20/2012 11:27 AM, Michel Dänzer wrote: On Mon, 2012-02-20 at 05:59 +0100, Mario Kleiner wrote: On 02/16/2012 11:04 AM, Michel Dänzer wrote: On Don, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: can_exchange() fails on at least Xorg 1.12+. This fixes it in the same way it was fixed

[PATCH 01/10] dri2: Fix can_exchange() to allow page-flipping on more mesa versions.

2012-03-01 Thread Mario Kleiner
. Tested for screen DefaultDepth 24 and also 30 bits (for RGB10 framebuffers) on NV-50. The problem was fixed in the same way in the ati intel ddx. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 10/10] dri2: Testpatch: Fix corner case crash but not the problem.

2012-03-01 Thread Mario Kleiner
, so not useful in practice. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- src/nouveau_dri2.c | 57 +++- 1 files changed, 34 insertions(+), 23 deletions(-) diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index 7878a5a..eb008c9

Re: [Nouveau] [Patches][nouveau/ddx]: Improvements to bufferswap implementation and timestamping

2012-03-01 Thread Mario Kleiner
On 02/29/2012 08:17 AM, Ben Skeggs wrote: On Thu, 2012-02-16 at 00:45 +0100, Mario Kleiner wrote: Hi, Hey Mario, What's your plan with this patchset? Do you intend on taking Michel's comments into account? CC'ing Francisco as he had some comments on IRC. I'd like to get this all sorted

Re: [PATCH 01/10] dri2: Fix can_exchange() to allow page-flipping on more mesa versions.

2012-03-02 Thread Mario Kleiner
On Mar 1, 2012, at 9:37 PM, Daniel Stone wrote: Hi, On 1 March 2012 18:11, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: can_exchange() returns false and thereby prevents page flipping on some drawables where page flipping would work fine. This due to non-matching drawable depths

[PATCH] DRI2: Don't return junk reply instead of blocking in glXWaitForSbcOML()

2010-06-05 Thread Mario Kleiner
. This patch fixes the problem by implementing DRI2WaitSBC similar to the clean and proven DRI2WaitMSC implementation. Signed-off-by: Mario Kleiner mario.klei...@tuebingen.mpg.de --- hw/xfree86/dri2/dri2.c| 10 -- hw/xfree86/dri2/dri2.h|3 +-- hw/xfree86/dri2/dri2ext.c | 16

[PATCH] DRI2/xserver: Don't hang in glXSwapBuffers if drawable moves between crtc's

2010-06-13 Thread Mario Kleiner
Hi This patch fixes a hang in glXSwapBuffers if a user moves a drawable from a fast running crtc, e.g., 60 Hz to a slower running crtc, e.g., 50 Hz, when using the new DRI2 sync swap bits. It should fix Bugzilla bug #28383. https://bugs.freedesktop.org/show_bug.cgi?id=28383 I've tested this

[PATCH] DRI2/xserver: Don't hang in glXSwapBuffers if drawable moves between crtc's

2010-06-13 Thread Mario Kleiner
the baseline for scheduling the next swap. If a movement between crtc's is not taken into account, the swap may schedule for a vblank count on the new crtc far in the future, resulting in a apparent hang of the drawable for a long time. Fixes Bugzilla bug #28383. Signed-off-by: Mario Kleiner mario.klei

Re: [PATCH] DRI2/xserver: Don't hang in glXSwapBuffers if drawable moves between crtc's

2010-06-17 Thread Mario Kleiner
of different refresh rate. It would be good to apply it to 1.9 and 1.8.2 if possible, for a more enjoyable multi-display OpenGL experience. thanks, -mario On Jun 14, 2010, at 6:13 PM, Jesse Barnes wrote: On Sun, 13 Jun 2010 18:05:26 +0200 Mario Kleiner mario.klei...@tuebingen.mpg.de wrote

Re: IgnoreClient question

2010-06-28 Thread Mario Kleiner
could ignore IgnoreClient and solve the multi-threading / multiple drawable issues i believe exist. -mario * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076 Tuebingen Germany e-mail

Re: IgnoreClient question

2010-06-28 Thread Mario Kleiner
On Jun 29, 2010, at 2:24 AM, Keith Packard wrote: On Tue, 29 Jun 2010 02:18:31 +0200, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: What i assume but didn't check is that xlib doesn't have a problem with getting replies out of sequence The X protocol is purely sequential -- you

Re: IgnoreClient question

2010-07-07 Thread Mario Kleiner
On Jul 2, 2010, at 11:43 PM, Jesse Barnes wrote: On Tue, 29 Jun 2010 04:07:48 +0200 Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: ... Then i think the idea of multiple wait queues doesn't allow to get rid of IgnoreClient(), but we will still need those wait queues in addition

Re: glXSwapBuffers fix for moving between crtcs is not following the OML_sync_control specification

2010-07-09 Thread Mario Kleiner
displays. If such a virtualized counter wouldn't be very accurate or if the associated ust timestamps wouldn't be very accurate, i'd be in trouble and the OML_sync_control extension would lose most of its value to me. * Mario

Re: glXSwapBuffers fix for moving between crtcs is not following the OML_sync_control specification

2010-07-09 Thread Mario Kleiner
On Jul 9, 2010, at 3:20 PM, Pauli Nieminen wrote: But actual patch has two problems. First, GetMSC is not NULL checked before calling it. This causes crash with driver that is using flipping without OML_sync_control. Second, same freeze would happen I avoided a ds-GetMSC() NULL check because

Re: glXSwapBuffers fix for moving between crtcs is not following the OML_sync_control specification

2010-07-09 Thread Mario Kleiner
On Jul 9, 2010, at 6:15 PM, Michel Dänzer wrote: [...] For the old intel DRI1 swap scheduling hack, I solved this by making the MSC not correspond to any specific CRTC counter directly but making it a 'virtual' counter which increases at the same rate as the CRTC the window is currently being

Bug: Deadlock for multi-threaded glx apps inside __glXInitialize()

2010-07-26 Thread Mario Kleiner
/lib/octave-3.2.3/liboctinterp.so * Mario Kleiner Max Planck Institute for Biological Cybernetics Spemannstr. 38 72076 Tuebingen Germany e-mail: mario.klei...@tuebingen.mpg.de office: +49 (0)7071/601-1623 fax:+49 (0)7071/601

Re: [RFC] DRI2 synchronization and swap bits

2009-11-01 Thread Mario Kleiner
Hello everybody My name is Mario Kleiner and i'm new to this list, so i apologize beforehand should i violate some rules of netiquette, state the totally obvious, or if this post is somehow considered off-topic or way too long. Please tell me if so, and how to do better next time. First

Re: [RFC] DRI2 synchronization and swap bits

2009-11-07 Thread Mario Kleiner
for UST being the time of start of scanout of the first scanline of a new video frame, instead of start of vblank. Let me know what you think about this, -mario * Mario Kleiner Max Planck Institute for Biological Cybernetics

DRI3/Present fixes for XServers 1.16 and 1.17rc

2014-11-24 Thread Mario Kleiner
Hi, i finally figured out why dri3/present failed so miserably with my neuro-science application, which relies on OML_sync_control and INTEL_swap_events extensively and worked nicely under dri2 for years. I found so far two bugs in the x-server and 3 bugs in mesas dri/present backend. I'll send

[PATCH 1/2] present: Avoid crashes in DebugPresent(), a bit more info.

2014-11-24 Thread Mario Kleiner
quite a bit more easy. Please also cherry-pick this for a 1.16.x stable update. Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- present/present.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/present/present.c b/present/present.c index cf283f4..d84bdef

[PATCH 2/2] present: Fix use of vsynced pageflips and honor PresentOptionAsync.

2014-11-24 Thread Mario Kleiner
fixes the problem, as tested on top of XOrg 1.16.2 on nouveau and intel. Please also apply to XOrg 1.16 stable. Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- present/present.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/present/present.c b/present

Re: [PATCH] dri2: add initial prime support. (v1.2)

2012-07-03 Thread Mario Kleiner
On 03.07.2012, at 16:22, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com This adds the initial prime support for dri2 offload. The main thing is when we get a connection from a prime client, we stored the information and mark all drawables from that client as prime. We then create

Re: [PATCH] dri2: add initial prime support. (v1.2)

2012-07-05 Thread Mario Kleiner
On 03.07.2012, at 20:47, Dave Airlie wrote: On Tue, Jul 3, 2012 at 7:39 PM, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: On 03.07.2012, at 16:22, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com This adds the initial prime support for dri2 offload. The main thing is when

Re: Initial DRI3000 protocol specs available

2013-02-20 Thread Mario Kleiner
On 02/20/2013 09:27 PM, Keith Packard wrote: Chris Wilson ch...@chris-wilson.co.uk writes: What I don't see here is how the client instructs the server to handle a missed swap. Right, this first pass was just trying to replicate the DRI2 semantics; figuring out how to improve those seems like

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

2014-11-24 Thread Mario Kleiner
Restores proper immediate tearing swap behaviour for OpenGL bufferswap under DRI3/Present. Cc: 10.3 10.4 mesa-sta...@lists.freedesktop.org Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- src/glx/dri3_glx.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src

[PATCH 2/3] glx/dri3: Track separate (ust, msc) for PresentPixmap vs. PresentNotifyMsc

2014-11-24 Thread Mario Kleiner
on this not regressing under DRI3/Present, e.g., Neuro-Science software like Psychtoolbox-3. This patch fixes the problem. Cc: 10.3 10.4 mesa-sta...@lists.freedesktop.org Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- src/glx/dri3_glx.c | 11 +++ src/glx/dri3_priv.h | 5 - 2 files

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

2014-11-30 Thread Mario Kleiner
one. I'll send it out after giving it some testing. thanks, -mario On 25/11/2014 04:00, Mario Kleiner wrote : Restores proper immediate tearing swap behaviour for OpenGL bufferswap under DRI3/Present. Cc: 10.3 10.4 mesa-sta...@lists.freedesktop.org Signed-off-by: Mario Kleiner mario.kleiner

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

2014-11-30 Thread Mario Kleiner
... thanks, -mario On 25/11/14 03:00, Mario Kleiner wrote: Restores proper immediate tearing swap behaviour for OpenGL bufferswap under DRI3/Present. Cc: 10.3 10.4 mesa-sta...@lists.freedesktop.org Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- src/glx/dri3_glx.c | 6 +- 1 file

[PATCH 2/2] present: Fix use of vsynced pageflips and honor PresentOptionAsync. (v3)

2014-12-03 Thread Mario Kleiner
and XOrg 1.16.2 stable. Applying on top of XOrg 1.16.2 may require cherry-picking commit 2051514652481a83bd7cf22e57cb0fcd40333f33 which trivially fixes lack of support for protocol option PresentOptionCopy - get two bug fixes for the price of one! Signed-off-by: Mario Kleiner mario.kleiner

[PATCH 1/2] present: Avoid crashes in DebugPresent(), a bit more info.

2014-12-03 Thread Mario Kleiner
quite a bit more easy. Please also cherry-pick this for a 1.16.x stable update. Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- present/present.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/present/present.c b/present/present.c index ac9047e..e5d3fd5

DRI3/Present fixes for XServers 1.16 and 1.17rc - (v2)

2014-12-03 Thread Mario Kleiner
Hi, an updated set of patches to fix the bugs i found in the xserver dri3/present implementation and one bug in intel-ddx uxa/dri3/present implementation. Axel Davys comments made me rethink my original xserver patch and the new solution is simple and better and afaics how this was actually

[PATCH] uxa/present: Handle sync_flip flag in intel_present_check_flip()

2014-12-03 Thread Mario Kleiner
Make sure we reject async flips if we don't support async flips. Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- src/uxa/intel_present.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/uxa/intel_present.c b/src/uxa/intel_present.c index d20043f..d2aa9ee 100644 --- a/src

Re: [PATCH 2/2] present: Fix use of vsynced pageflips and honor PresentOptionAsync. (v3)

2014-12-04 Thread Mario Kleiner
this is the minimal fix to cover all cases. Thoughts? Keith, maybe an opinion if my story here is correct? thanks, -mario Axel Davy On 02/12/2014 20:08, Mario Kleiner wrote : Pageflips for Pixmap presents were not synchronized to vblank on drivers with support for PresentCapabilityAsync, due to some

Re: [PATCH 2/2] present: Fix use of vsynced pageflips and honor PresentOptionAsync. (v3)

2014-12-05 Thread Mario Kleiner
On 12/05/2014 12:56 AM, Eric Anholt wrote: Mario Kleiner mario.kleiner...@gmail.com writes: Pageflips for Pixmap presents were not synchronized to vblank on drivers with support for PresentCapabilityAsync, due to some missing init for vblank-sync_flips. The PresentOptionAsync flag

[PATCH 1/2] present: Avoid crashes in DebugPresent(), a bit more info.

2014-12-05 Thread Mario Kleiner
quite a bit more easy. Please also cherry-pick this for a 1.16.x stable update. Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com Reviewed-by: Eric Anholt e...@anholt.net --- present/present.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/present/present.c b

DRI3/Present fixes for XServers 1.16 and 1.17rc - reviewed

2014-12-05 Thread Mario Kleiner
Ok, the final patchset. I made the changes Eric Anholt proposed, retested, and got them reviewed by him. With those on top of XServer 1.16.2, DRI3/Present works for me on all drivers and backends (intel sna, uxa and nouveau exa, glamor), single and dual-display fullscreen and windowed,

[PATCH] sna: Also fix ZaphodHeads on Linux kernels older than 3.19

2014-12-06 Thread Mario Kleiner
() function. Fixes fdo bug #84744 on older kernels. Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com --- src/sna/sna_display.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 163..a7ad6cc 100644 --- a/src

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

2014-12-15 Thread Mario Kleiner
On 12/15/2014 06:46 AM, Keith Packard wrote: Mario Kleiner mario.kleiner...@gmail.com 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

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

2014-12-16 Thread Mario Kleiner
On 12/16/2014 09:23 AM, Keith Packard wrote: Mario Kleiner mario.kleiner...@gmail.com 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

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

2014-12-16 Thread Mario Kleiner
On 12/17/2014 04:17 AM, Keith Packard wrote: Mario Kleiner mario.kleiner...@gmail.com 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

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

2014-12-16 Thread Mario Kleiner
On 12/17/2014 05:49 AM, Keith Packard wrote: Mario Kleiner mario.kleiner...@gmail.com 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

Re: [RFC 5/5] modesetting: Implement page flipping support for Present.

2015-02-08 Thread Mario Kleiner
flip, so the FB would be in use? Not sure though... Feel free to add a Reviewed-and-Tested-by: Mario Kleiner mario.kleiner...@gmail.com for the bits i tested and reviewed if that helps. The other patches in the series seem to be fine, thanks, -mario +for (i = 0; i config-num_crtc; i

Re: [PATCH 0/3] present: Improve interactions with compositing manager

2015-02-08 Thread Mario Kleiner
Hi Keith and Owen, it's a bit too late for XOrg 1.17, but i reviewed and tested Keith's patchset, after rebasing the 3rd patch on top of 1.17-rc2. The series has my Reviewed-and-Tested-by: Mario Kleiner mario.kleiner...@gmail.com My patch 1/3 is Keith's patch 3/3, just rebased and with my

[PATCH 2/3] present: Extend compositor optimization to presents 1 vblank into future.

2015-02-08 Thread Mario Kleiner
?) Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com Tested-by: Mario Kleiner mario.kleiner...@gmail.com --- present/present.c | 90 +-- 1 file changed, 68 insertions(+), 22 deletions(-) diff --git a/present/present.c b/present/present.c

[PATCH 1/3] present: When composited, get the bits into the window pixmap immediately (v2)

2015-02-08 Thread Mario Kleiner
Packard kei...@keithp.com Reviewed-by: Mario Kleiner mario.kleiner...@gmail.com v2 (mario): Trivial rebase on top of 1.17.0-rc2 Signed-off-by: Mario Kleiner mario.kleiner...@gmail.com Tested-by: Mario Kleiner mario.kleiner...@gmail.com --- present/present.c | 19 ++- 1 file changed

Re: [PATCH 5/5] modesetting: Implement page flipping support for Present.

2015-05-04 Thread Mario Kleiner
On 04/28/2015 06:31 AM, Kenneth Graunke wrote: On Tuesday, April 21, 2015 05:58:44 PM Kenneth Graunke wrote: Based on code by Keith Packard, Eric Anholt, and Jason Ekstrand. v2: - Fix double free and flip_count underrun (caught by Mario Kleiner). - Don't leak flip_vblank_event on the error_out

Re: [PATCH] present: Fix missed notify MSC computation

2015-05-08 Thread Mario Kleiner
, NULL, NULL, NULL, - PresentOptionAsync, + divisor == 0 ? PresentOptionAsync : 0, target_msc, divisor, remainder, NULL, 0); } Reviewed-by: Mario Kleiner mario.kleiner

Re: [PATCH 1/2] present: Improve scaling of vblank handler

2015-05-08 Thread Mario Kleiner
-and-tested-by: Mario Kleiner mario.kleiner...@gmail.com -mario ___ 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 2/2] present: Fix presentation of flips out of order

2015-05-08 Thread Mario Kleiner
good to me, also no problems during testing on top of current master, so Reviewed-and-tested-by: Mario Kleiner mario.kleiner...@gmail.com -mario ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http

  1   2   >