Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-17 Thread Marek Olšák
On Sat, Nov 17, 2012 at 10:28 PM, Dave Airlie wrote: >> The thread offloading has been implemented in the radeon driver for >> more than a year. We just can't fully use it because of what I've >> written above. I'm not inventing anything here. >> >> I wasn't at XDC and I don't really know much abo

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-17 Thread Dave Airlie
> The thread offloading has been implemented in the radeon driver for > more than a year. We just can't fully use it because of what I've > written above. I'm not inventing anything here. > > I wasn't at XDC and I don't really know much about the protocol and > why there are roundtrips. All I want

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-17 Thread Marek Olšák
On Sat, Nov 17, 2012 at 5:25 PM, Mathias Fröhlich wrote: > > Hi, > > On Thursday, November 15, 2012 19:04:51 Marek Olšák wrote: >> Yes, that's what I am looking for, though I'd like to have a solution >> that works with current DRI2 as well. >> >> The triple flush is unrelated to DRI2, it's actual

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-17 Thread Mathias Fröhlich
Hi, On Thursday, November 15, 2012 19:04:51 Marek Olšák wrote: > Yes, that's what I am looking for, though I'd like to have a solution > that works with current DRI2 as well. > > The triple flush is unrelated to DRI2, it's actually an internal issue > with libGL and can be fixed easily. So may b

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-15 Thread Michel Dänzer
On Don, 2012-11-15 at 18:48 +0100, Marek Olšák wrote: > On Thu, Nov 15, 2012 at 3:30 PM, Michel Dänzer wrote: > > On Don, 2012-11-15 at 04:43 +0100, Marek Olšák wrote: > >> > >> For the asynchronous SwapBuffers to work, there must be a separate X > >> connection, because Xlib isn't thread-safe at

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-15 Thread Marek Olšák
On Thu, Nov 15, 2012 at 6:47 PM, Mathias Fröhlich wrote: > > Marek, > > Regarding swap handling, there was a lengthy discussion about this topic at > XDC in Nürnberg. > May be Keith can comment on that as he also presented these ideas. > But short, the overall aim of this discusstion was to make t

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-15 Thread Marek Olšák
On Thu, Nov 15, 2012 at 3:30 PM, Michel Dänzer wrote: > On Don, 2012-11-15 at 04:43 +0100, Marek Olšák wrote: >> >> For the asynchronous SwapBuffers to work, there must be a separate X >> connection, because Xlib isn't thread-safe at all. >> >> Now the bad news. The DRI invalidate events may be re

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-15 Thread Mathias Fröhlich
Marek, Regarding swap handling, there was a lengthy discussion about this topic at XDC in Nürnberg. May be Keith can comment on that as he also presented these ideas. But short, the overall aim of this discusstion was to make the dri2 buffer swap more asynchronous. This does not exactly solve t

Re: [Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-15 Thread Michel Dänzer
On Don, 2012-11-15 at 04:43 +0100, Marek Olšák wrote: > > For the asynchronous SwapBuffers to work, there must be a separate X > connection, because Xlib isn't thread-safe at all. > > Now the bad news. The DRI invalidate events may be received too late. > We can't wait for the events in glXSwapB

[Mesa-dev] [PATCH 0/2] First attempt at asynchronous SwapBuffers

2012-11-14 Thread Marek Olšák
Hi, this series adds a new DRI2 extension to the libGL-Mesa interface, which consolidates the 3 flushes (glFlush, drawable flush, throttling) into one flush call like my previous patch series did, but it also allows thread offloading of SwapBuffers. The motivation for the thread offloading is