Re: New DRI interface changes landed

2007-10-17 Thread Vincent Vanackere
2007/10/17, Michel Dänzer <[EMAIL PROTECTED]>: > > Here's what I get if I attach a debugger : > > > > (gdb) bt > > #0 0x2aed809c16c7 in ioctl () from /lib/libc.so.6 > > #1 0x2aed81fc2926 in drmFenceWait (fd=10, flags=, > > fence=0x1611fa0, flush_type=) at xf86drm.c:2520 > > #2 0x

Re: New DRI interface changes landed

2007-10-17 Thread Michel Dänzer
On Tue, 2007-10-16 at 20:30 +0200, Vincent Vanackere wrote: > > On 10/16/07, Michel Dänzer <[EMAIL PROTECTED]> wrote: > > > > > > On Mon, 2007-10-15 at 19:54 +0200, Vincent Vanackere wrote: > > > > > > > > (II) AIGLX: enabled GLX_MESA_copy_sub_buffer > > > > (II) AIGLX: enabled GLX_SGI_swap_contro

Re: New DRI interface changes landed

2007-10-16 Thread Kristian Høgsberg
On 10/16/07, Michel Dänzer <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-10-15 at 19:54 +0200, Vincent Vanackere wrote: > > > > (II) AIGLX: enabled GLX_MESA_copy_sub_buffer > > (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control > > Update from xserver and mesa Git and try again. Than

Re: New DRI interface changes landed

2007-10-16 Thread Michel Dänzer
On Mon, 2007-10-15 at 19:54 +0200, Vincent Vanackere wrote: > > (II) AIGLX: enabled GLX_MESA_copy_sub_buffer > (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control Update from xserver and mesa Git and try again. -- Earthling Michel Dänzer | http://tungstengrap

Re: Merging DRI interface changes

2007-10-15 Thread Kristian Høgsberg
On 10/13/07, Keith Packard <[EMAIL PROTECTED]> wrote: > > I do > > think it's worth moving forward with this though. Personally, I get > > these patches off of my plate and can focus on the next steps. > > I'm all for making forward progress and abandoning broken interfaces as > early as possible

Re: New DRI interface changes landed

2007-10-15 Thread Vincent Vanackere
2007/10/15, Michel Dänzer <[EMAIL PROTECTED]>: > > On Sat, 2007-10-13 at 19:44 +0200, Vincent Vanackere wrote: > > > > I built everything from git after your changes, and I now have a crash > > in the xserver when launching compiz. > > Configuration : > > - Intel G33 chipset using the driver from g

Re: New DRI interface changes landed

2007-10-15 Thread Michel Dänzer
On Sat, 2007-10-13 at 19:44 +0200, Vincent Vanackere wrote: > > I built everything from git after your changes, and I now have a crash > in the xserver when launching compiz. > Configuration : > - Intel G33 chipset using the driver from git > (e04333a6352040bc883655d606923c912d005981) > - git mes

Re: New DRI interface changes landed

2007-10-13 Thread Vincent Vanackere
2007/10/13, Kristian Høgsberg <[EMAIL PROTECTED]>: > Hi, > > I've committed the new DRI interface that will enable GLX 1.4 and > redirected rendering. The interface is not backwards compatible, so > the git X server will not be able to load older DRI drivers for AIGLX > and the DRI drivers from Me

Re: Merging DRI interface changes

2007-10-13 Thread Keith Packard
On Fri, 2007-10-12 at 11:53 -0400, Kristian Høgsberg wrote: > They do drop support, yes, but of course, I'm committing a series of X > server patches along with this to let AIGLX load the new driver API. > This means that you can't load a git dri driver with any released X > server, which is the

Re: Merging DRI interface changes

2007-10-13 Thread Michel Dänzer
On Fri, 2007-10-12 at 10:36 +0100, Keith Whitwell wrote: > Michel Dänzer wrote: > > On Fri, 2007-10-12 at 10:19 +0100, Keith Whitwell wrote: > >> Michel Dänzer wrote: > >>> On Thu, 2007-10-11 at 18:44 -0400, Kristian Høgsberg wrote: > On 10/11/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: > >

New DRI interface changes landed

2007-10-12 Thread Kristian Høgsberg
Hi, I've committed the new DRI interface that will enable GLX 1.4 and redirected rendering. The interface is not backwards compatible, so the git X server will not be able to load older DRI drivers for AIGLX and the DRI drivers from Mesa git wont work with older X servers. So to get AIGLX runnin

Re: Merging DRI interface changes

2007-10-12 Thread Kristian Høgsberg
On 10/12/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: ... > So the question is - how much effort do we want to put into the case > where there are multiple clients PLUS buffer resizes. Multiple clients > is a rare case in itself, and resizes are a transient varient on a rare > case. Also just wh

Re: Merging DRI interface changes

2007-10-12 Thread Michel Dänzer
On Fri, 2007-10-12 at 11:53 -0400, Kristian Høgsberg wrote: > > Finally, along with the X server patches, this does land new features. > With these patches I can land the X server work to enable GLX 1.4 > support and the visual cleanup, we just wont be able to advertise any > GLXPixmap or GLXPbu

Re: Merging DRI interface changes

2007-10-12 Thread Kristian Høgsberg
On 10/12/07, Michel Dänzer <[EMAIL PROTECTED]> wrote: ... > > The DRI driver interface changes I'm proposing here should not be > > affected by these issues though. Detecting that the buffers changed > > and allocating and attaching new ones is entirely between the DRI > > driver and the DRM. Whe

Re: Merging DRI interface changes

2007-10-12 Thread Keith Whitwell
Michel Dänzer wrote: > On Fri, 2007-10-12 at 10:19 +0100, Keith Whitwell wrote: >> Michel Dänzer wrote: >>> On Thu, 2007-10-11 at 18:44 -0400, Kristian Høgsberg wrote: On 10/11/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: > 3) Share buffers with a reference counting scheme.

Re: Merging DRI interface changes

2007-10-12 Thread Michel Dänzer
On Fri, 2007-10-12 at 10:19 +0100, Keith Whitwell wrote: > Michel Dänzer wrote: > > On Thu, 2007-10-11 at 18:44 -0400, Kristian Høgsberg wrote: > >> On 10/11/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: > >> > >>> 3) Share buffers with a reference counting scheme. When a client > >>> not

Re: Merging DRI interface changes

2007-10-12 Thread Keith Whitwell
Michel Dänzer wrote: > On Thu, 2007-10-11 at 18:44 -0400, Kristian Høgsberg wrote: >> On 10/11/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: >> >>> 3) Share buffers with a reference counting scheme. When a client >>> notices the buffer needs a resize, do the resize and adjust refcounts - >

Re: Merging DRI interface changes

2007-10-12 Thread Michel Dänzer
On Thu, 2007-10-11 at 18:44 -0400, Kristian Høgsberg wrote: > On 10/11/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: > > > 3) Share buffers with a reference counting scheme. When a client > > notices the buffer needs a resize, do the resize and adjust refcounts - > > other clients contin

Re: Merging DRI interface changes

2007-10-11 Thread Keith Packard
On Fri, 2007-10-12 at 00:19 +0100, Keith Whitwell wrote: > Basically any API-generated event that implies a flush. Internally > generated events, like running out of some resource and having to fire > buffers to recover generally don't count. If I understand this, then the only time you'll ch

Re: Merging DRI interface changes

2007-10-11 Thread Keith Packard
On Thu, 2007-10-11 at 23:39 +0100, Keith Whitwell wrote: > Maybe we're examining the wrong spec here. My concerns are all about > what happens when the window changes size -- what does X tell us about > the contents of a window under those circumstances? Does the GLX spec > actually specify

Re: Merging DRI interface changes

2007-10-11 Thread Allen Akin
On Fri, Oct 12, 2007 at 12:08:09AM +0100, Keith Whitwell wrote: | Just to clarify, would things look a bit like this: | | Master: | clear, | glFlush, | signal slaves somehow | | Slave0..n: | wait for signal, | don't clear, just draw triangles | glFlush |

Re: Merging DRI interface changes

2007-10-11 Thread Keith Whitwell
Kristian Høgsberg wrote: > On 10/11/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: >> Brian Paul wrote: > ... >>> If two GLX clients render to the same double-buffered GLX window, each >>> is going to have a different/private back color buffer, right? That >>> doesn't really obey the GLX spec. The

Re: Merging DRI interface changes

2007-10-11 Thread Keith Whitwell
Allen Akin wrote: > On Thu, Oct 11, 2007 at 10:35:28PM +0100, Keith Whitwell wrote: > | Suppose 2 clients render to the same backbuffer... > > The (rare) cases in which I've seen this used, the clients are aware of > one another, and restrict their rendering to non-overlapping portions of > the dr

Re: Merging DRI interface changes

2007-10-11 Thread Brian Paul
Keith Whitwell wrote: > Brian Paul wrote: >> Keith Whitwell wrote: >>> Brian Paul wrote: >>>> Kristian Høgsberg wrote: >>>>> Hi, >>>>> >>>>> I have this branch with DRI interface changes that I've been >>>>

Re: Merging DRI interface changes

2007-10-11 Thread Kristian Høgsberg
On 10/11/07, Brian Paul <[EMAIL PROTECTED]> wrote: > Keith Whitwell wrote: ... > > Kristian - I apologize that I only ever look at this briefly & under > > duress... I'm off to read the spec properly now. > > Kristian, I also apologize for not tracking this stuff closer and don't > mean to cause y

Re: Merging DRI interface changes

2007-10-11 Thread Kristian Høgsberg
On 10/11/07, Keith Whitwell <[EMAIL PROTECTED]> wrote: > Brian Paul wrote: ... > > If two GLX clients render to the same double-buffered GLX window, each > > is going to have a different/private back color buffer, right? That > > doesn't really obey the GLX spec. The renderbuffers which compose a

Re: Merging DRI interface changes

2007-10-11 Thread Keith Whitwell
Brian Paul wrote: > Keith Whitwell wrote: >> Brian Paul wrote: >>> Kristian Høgsberg wrote: >>>> Hi, >>>> >>>> I have this branch with DRI interface changes that I've been >>>> threatening to merge on several occasions: >&

Re: Merging DRI interface changes

2007-10-11 Thread Brian Paul
Keith Whitwell wrote: > Brian Paul wrote: >> Kristian Høgsberg wrote: >>> Hi, >>> >>> I have this branch with DRI interface changes that I've been >>> threatening to merge on several occasions: >>> >>> http://cgit.freedesktop.or

Re: Merging DRI interface changes

2007-10-11 Thread Allen Akin
On Thu, Oct 11, 2007 at 10:35:28PM +0100, Keith Whitwell wrote: | Suppose 2 clients render to the same backbuffer... The (rare) cases in which I've seen this used, the clients are aware of one another, and restrict their rendering to non-overlapping portions of the drawable. A "master" client is

Re: Merging DRI interface changes

2007-10-11 Thread Kristian Høgsberg
On 10/11/07, Brian Paul <[EMAIL PROTECTED]> wrote: > Kristian Høgsberg wrote: > > Hi, > > > > I have this branch with DRI interface changes that I've been > > threatening to merge on several occasions: > > > > http://cgit.freedesktop.org/~krh/me

Re: Merging DRI interface changes

2007-10-11 Thread Keith Whitwell
Brian Paul wrote: > Kristian Høgsberg wrote: >> Hi, >> >> I have this branch with DRI interface changes that I've been >> threatening to merge on several occasions: >> >> http://cgit.freedesktop.org/~krh/mesa/log/?h=dri2 >> >> I'

Re: Merging DRI interface changes

2007-10-11 Thread Brian Paul
Kristian Høgsberg wrote: > Hi, > > I have this branch with DRI interface changes that I've been > threatening to merge on several occasions: > > http://cgit.freedesktop.org/~krh/mesa/log/?h=dri2 > > I've just rebased to todays mesa and it's ready to mer

Merging DRI interface changes

2007-10-11 Thread Kristian Høgsberg
Hi, I have this branch with DRI interface changes that I've been threatening to merge on several occasions: http://cgit.freedesktop.org/~krh/mesa/log/?h=dri2 I've just rebased to todays mesa and it's ready to merge. Ian reviewed the changes a while back gave his ok, a

Re: [Mesa3d-dev] DRI interface changes

2007-05-21 Thread Kristian Høgsberg
On 5/18/07, Ian Romanick <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Kristian Høgsberg wrote: > > Hi, > > > > I've been working on updating the DRI interface > > (GL/internal/dri_interface.h) the last few days and I though I'd post ... > > struct __DRIexte

Re: [Mesa3d-dev] DRI interface changes

2007-05-18 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kristian Høgsberg wrote: > Hi, > > I've been working on updating the DRI interface > (GL/internal/dri_interface.h) the last few days and I though I'd post > a heads up to the lists to get some feedback. The work I've been > doing starts out with the

DRI interface changes

2007-05-18 Thread Kristian Høgsberg
Hi, I've been working on updating the DRI interface (GL/internal/dri_interface.h) the last few days and I though I'd post a heads up to the lists to get some feedback. The work I've been doing starts out with the patches in bug 5714, implements Ians suggestions in comment #20, and quite a bit mor

DRI interface changes

2007-05-18 Thread Kristian Høgsberg
Hi, I've been working on updating the DRI interface (GL/internal/dri_interface.h) the last few days and I though I'd post a heads up to the lists to get some feedback. The work I've been doing starts out with the patches in bug 5714, implements Ians suggestions in comment #20, and quite a bit mor