Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-02-08 Thread Francisco Jerez
Francisco Jerez writes: > Francisco Jerez writes: > >> The current buffer validation approach (AKA the DRI2 glViewport hack) >> is both incorrect (because a compliant OpenGL application may opt for >> the identity as viewport transform and work with window coordinates >> directly) and inefficien

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-22 Thread Francisco Jerez
Francisco Jerez writes: > The current buffer validation approach (AKA the DRI2 glViewport hack) > is both incorrect (because a compliant OpenGL application may opt for > the identity as viewport transform and work with window coordinates > directly) and inefficient (some programs have the habit o

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-18 Thread Francisco Jerez
Kristian Høgsberg writes: > On Sun, Jan 17, 2010 at 11:18 PM, Francisco Jerez > wrote: >> Kristian Høgsberg writes: >>> No, it sounds good, I'm happy that you're looking into this.  I'll >>> have a closer look tomorrow, but what I've had in mind for this kind >>> of thing was that we could jus

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-18 Thread Kristian Høgsberg
On Sun, Jan 17, 2010 at 11:18 PM, Francisco Jerez wrote: > Kristian Høgsberg writes: >> No, it sounds good, I'm happy that you're looking into this.  I'll >> have a closer look tomorrow, but what I've had in mind for this kind >> of thing was that we could just allocate the new buffers up front i

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-17 Thread Francisco Jerez
Kristian Høgsberg writes: > On Sat, Jan 16, 2010 at 4:58 PM, Francisco Jerez > wrote: >> The current buffer validation approach (AKA the DRI2 glViewport hack) >> is both incorrect (because a compliant OpenGL application may opt for >> the identity as viewport transform and work with window coor

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-17 Thread Kristian Høgsberg
On Sat, Jan 16, 2010 at 4:58 PM, Francisco Jerez wrote: > The current buffer validation approach (AKA the DRI2 glViewport hack) > is both incorrect (because a compliant OpenGL application may opt for > the identity as viewport transform and work with window coordinates > directly) and inefficient

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-17 Thread Luca Barbieri
> How do you make sure events are ordered correctly? Say a window is > resized and the client receives the ConfigureNotify event before us, and > it reacts drawing on the newly exposed areas: we aren't guaranteed to > have received our event yet, so it might end up rendered in the old > buffers. OK

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-17 Thread Francisco Jerez
Luca Barbieri writes: > How about just having GLX open another connection to the X server and > use that to receive ConfigureNotify? > Since we are using direct rendering, we must be on the same machine, > so it's just a unix/TCP loopback connection and should always work. > Xlib stores the displ

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-16 Thread Luca Barbieri
Using SIGIO would be a problem in a library. However, the kernel can be told to send an arbitrary signal (see F_SETSIG) and glibc can allocate realtime signals with __libc_allocate_rtsig() (pthread uses this for internal signals). ---

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-16 Thread Luca Barbieri
How about just having GLX open another connection to the X server and use that to receive ConfigureNotify? Since we are using direct rendering, we must be on the same machine, so it's just a unix/TCP loopback connection and should always work. Xlib stores the display name in _XDisplay.display_name

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-16 Thread Chia-I Wu
On Sat, Jan 16, 2010 at 10:58:28PM +0100, Francisco Jerez wrote: > The current buffer validation approach (AKA the DRI2 glViewport hack) > is both incorrect (because a compliant OpenGL application may opt for > the identity as viewport transform and work with window coordinates > directly) and inef

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-16 Thread Francisco Jerez
Hi, Luca Barbieri writes: > What are the advantages of the new DRI2 event over the existing > ConfigureNotify? > Couldn't that be used as a fallback on older servers? ConfigureNotify is a core event, so: * All the methods we have to catch them are nasty hacks (or at least all the methods I c

Re: [Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-16 Thread Luca Barbieri
What are the advantages of the new DRI2 event over the existing ConfigureNotify? Couldn't that be used as a fallback on older servers? -- Throughout its 18-year history, RSA Conference consistently attracts the world's bes

[Mesa3d-dev] [RFC] Event-based buffer validation for DRI2.

2010-01-16 Thread Francisco Jerez
The current buffer validation approach (AKA the DRI2 glViewport hack) is both incorrect (because a compliant OpenGL application may opt for the identity as viewport transform and work with window coordinates directly) and inefficient (some programs have the habit of calling glViewport several times