Re: [Dri-devel] DRI sw only mode

2003-10-29 Thread Chris Ison
further example using glxgears recompiled for debugging Breakpoint 2, event_loop (dpy=0x804c050, win=31457282) at /usr/src/xfree86-cvs/xc/programs/glxgears/glxgears.c:383 383 while (XPending(dpy) > 0) { (gdb) p glXSwapBuffers $1 = {void (Display *, GLXDrawable)} 0x40076010 (gdb) n

Re: [Dri-devel] DRI sw only mode

2003-10-29 Thread Chris Ison
On Thu, 2003-10-30 at 17:08, Chris Ison wrote: > I'm wondering what happened to the full sw mode for 3d you could use > before when DRI wasn't enabled. Now GL apps just seg (including > glxgears) where a few months ago you could still run them without DRI > although very slow. > Further investiga

[Dri-devel] DRI sw only mode

2003-10-29 Thread Chris Ison
I'm wondering what happened to the full sw mode for 3d you could use before when DRI wasn't enabled. Now GL apps just seg (including glxgears) where a few months ago you could still run them without DRI although very slow. --- This SF.net email

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Ian Romanick
Mike Mestnik wrote: --- Ian Romanick <[EMAIL PROTECTED]> wrote: Basically, queuing commands while we wait for a swap to complete is like building a display list. Maybe it would be easier to tackle the problem from that point of view? When a swap is pending we'd "somehow" switch to build-displ

[Dri-devel] SGI_make_current_read for MGA

2003-10-29 Thread Ian Romanick
Here is a patch that enables SGI_make_current_read for the MGA driver. I have only tested this with progs/xdemos/wincopy, and it works as expected. It should be fairly trivial for people to make similar patches for the other drivers. Drivers that support pageflipping will be a bit more tricky

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Mike Mestnik
--- Ian Romanick <[EMAIL PROTECTED]> wrote: > Felix Kühling wrote: > > > On Wed, 29 Oct 2003 08:56:09 -0800 > > Ian Romanick <[EMAIL PROTECTED]> wrote: > > > > > >>Felix Kühling wrote: > >> > >> > >>>I've been thinking about ways to implement a combined "wait for vblank > >>>and buffer swap" ope

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Ian Romanick
Felix Kühling wrote: On Wed, 29 Oct 2003 08:56:09 -0800 Ian Romanick <[EMAIL PROTECTED]> wrote: Felix Kühling wrote: I've been thinking about ways to implement a combined "wait for vblank and buffer swap" operation. But somehow I can't get the pieces together partly because I have a pretty vagu

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Ian Romanick
Felix Kühling wrote: On Wed, 29 Oct 2003 17:07:50 +0100 Michel Dänzer <[EMAIL PROTECTED]> wrote: Why suspend the engine at all? Isn't it enough to know when it's finished rendering? You don't want to overwrite the buffer that is still being displayed as front buffer while the swap is delayed until

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Felix Kühling
On Wed, 29 Oct 2003 08:56:09 -0800 Ian Romanick <[EMAIL PROTECTED]> wrote: > Felix Kühling wrote: > > > I've been thinking about ways to implement a combined "wait for vblank > > and buffer swap" operation. But somehow I can't get the pieces together > > partly because I have a pretty vague under

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Felix Kühling
On Wed, 29 Oct 2003 17:07:50 +0100 Michel Dänzer <[EMAIL PROTECTED]> wrote: > On Wed, 2003-10-29 at 01:04, Felix Kühling wrote: > > > > First a short summary of the problem. Currently the user space driver > > waits for a vblank and then issues a buffer swap ioctl. That ioctl puts > > the actual

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Felix Kühling
On Wed, 29 Oct 2003 16:21:44 + Keith Whitwell <[EMAIL PROTECTED]> wrote: > Felix Kühling wrote: > > On Wed, 29 Oct 2003 11:43:43 + > > Keith Whitwell <[EMAIL PROTECTED]> wrote: > > >>You don't want to shut the entire dma engine down waiting for vblank as this > >>would kill performance w

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Ian Romanick
Felix Kühling wrote: I've been thinking about ways to implement a combined "wait for vblank and buffer swap" operation. But somehow I can't get the pieces together partly because I have a pretty vague understanding what the hardware does or can do on a low level. I've thought about this problem a

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Keith Whitwell
Felix Kühling wrote: On Wed, 29 Oct 2003 11:43:43 + Keith Whitwell <[EMAIL PROTECTED]> wrote: You don't want to shut the entire dma engine down waiting for vblank as this would kill performance with >1 3d application, or even where 2d apps and a single 3d app are mixed. Yeah, if one 3D app

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Michel Dänzer
On Wed, 2003-10-29 at 01:04, Felix KÃhling wrote: > > First a short summary of the problem. Currently the user space driver > waits for a vblank and then issues a buffer swap ioctl. That ioctl puts > the actual swap instructions on the command queue of the 3D hardware. > After that it may take an

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Felix Kühling
On Wed, 29 Oct 2003 11:43:43 + Keith Whitwell <[EMAIL PROTECTED]> wrote: > Felix Kühling wrote: > > Hi list, > > > > I've been thinking about ways to implement a combined "wait for vblank > > and buffer swap" operation. But somehow I can't get the pieces together > > partly because I have a p

Re: [Dri-devel] Combined vblank-waiting and buffer swapping

2003-10-29 Thread Keith Whitwell
Felix Kühling wrote: Hi list, I've been thinking about ways to implement a combined "wait for vblank and buffer swap" operation. But somehow I can't get the pieces together partly because I have a pretty vague understanding what the hardware does or can do on a low level. First a short summary of