Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-27 Thread Sven Luther
On Wed, Mar 26, 2003 at 09:08:51AM -0800, Ian Romanick wrote: Michel Dänzer wrote: On Mit, 2003-03-26 at 08:45, Philip Brown wrote: Video mem is a core X server resource, and should be reserved through the core server, always. Actually, I thought we're talking about a scheme where the

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-27 Thread Sven Luther
On Wed, Mar 26, 2003 at 12:22:48PM -0800, Ian Romanick wrote: Philip Brown wrote: So since it is orthogonal, you should have no objections to lowest-level allocation of video memory being done by GLX calling xf86Allocate routines, yes? (ie: leave the X core code alone) That is what's

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-27 Thread Sven Luther
On Thu, Mar 27, 2003 at 03:06:03AM +0100, Michel Dänzer wrote: On Don, 2003-03-27 at 00:37, Keith Whitwell wrote: Ian Romanick wrote: Michel Dänzer wrote: On Mit, 2003-03-26 at 21:22, Ian Romanick wrote: If the paged memory system is only used when DRI is enabled, does it

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Keith Whitwell
Ian Romanick wrote: Alan Hourihane wrote: On Tue, Mar 25, 2003 at 11:27:17PM +, Keith Whitwell wrote: Alan Hourihane wrote: If there's any architectural reason why we can't use XFree86's module loader for OS indepence here ? The whole point of the drmCommand*() interface is that it's

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Philip Brown
On Wed, Mar 26, 2003 at 12:10:48AM -0800, Ian Romanick wrote: Philip Brown wrote: Well, okay, there needs to be a little extra handholding between server and client. So, you add a GLX_dri_reserve_mem extension or something that reserves video memory by proxy. Or do it in some more direct

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Alan Cox
On Wed, 2003-03-26 at 01:15, Ian Romanick wrote: From a security perspective, people may want to disable direct rendering. There is a shared memory segment that an evil program could muck with and cause DoS problems. I probably haven't thought about it enough, but I can't see how would

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Suzy Deffeyes
Jens- I agree with you, supporting HW accelerated indirect rending would be a good thing. Take a look at the DRI high level design doc: http://dri.sourceforge.net/doc/design_high_level.html In section 4.3, Indirect Rendering, there's a section on Multi-rendering in a single address

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Alan Cox
http://www.realitydiluted.com/mirrors/reality.sgi.com/ --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today!

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Michel Dänzer
On Mit, 2003-03-26 at 08:45, Philip Brown wrote: Video mem is a core X server resource, and should be reserved through the core server, always. Actually, I thought we're talking about a scheme where the server is only a client of the DRM memory manager. -- Earthling Michel Dänzer

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Ian Romanick
Michel Dänzer wrote: On Mit, 2003-03-26 at 08:45, Philip Brown wrote: Video mem is a core X server resource, and should be reserved through the core server, always. Actually, I thought we're talking about a scheme where the server is only a client of the DRM memory manager. Yes. It would be a

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Ian Romanick
Philip Brown wrote: On Wed, Mar 26, 2003 at 12:10:48AM -0800, Ian Romanick wrote: Philip Brown wrote: Well, okay, there needs to be a little extra handholding between server and client. So, you add a GLX_dri_reserve_mem extension or something that reserves video memory by proxy. Or do it in some

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Ian Romanick
Jens Owen wrote: Ian, I think you're making a mountain out of a mole hill, but I like the mountain that you're trying to build. Supporting HW accellerated indirect rendering would be a good thing, but it's not necessary for the change you're trying to make. Right. It's not required for what

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Philip Brown
On Wed, Mar 26, 2003 at 09:14:37AM -0800, Ian Romanick wrote: Philip Brown wrote: Consider the GLX_dri_reserve_mem as equivalent to sbrk() Then have a more local memory allocator for subdividing the large chunk. That's going to be a lot more efficient that relying on the XFree routines to

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Ian Romanick
Philip Brown wrote: On Wed, Mar 26, 2003 at 09:14:37AM -0800, Ian Romanick wrote: Philip Brown wrote: Consider the GLX_dri_reserve_mem as equivalent to sbrk() Then have a more local memory allocator for subdividing the large chunk. That's going to be a lot more efficient that relying on the

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Keith Whitwell
The current memory management system looks like this: Core X routines | V Coarse grained, block oriented cache / paged memory system | V Keith's mmHeap_t code Actually that's not my code at all, if you're talking about the stuff in

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Philip Brown
On Wed, Mar 26, 2003 at 11:18:18AM -0800, Ian Romanick wrote: Philip Brown wrote: New client comes in. Requests new corse chunk o' VRAM from GLX Oops. we've used up the 16 megs pre-allocated. Used to be 11 megs free, but X server has been busy, and there is now only 8 megs

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Keith Whitwell
Andreas Ehliar wrote: On Wed, Mar 26, 2003 at 07:23:09PM +, Keith Whitwell wrote: Actually that's not my code at all, if you're talking about the stuff in common/mm.[ch]. I know it's ended up with my name on it, but that's bogus. I can't remember who's it is, but it's lifted from Utah so

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Ian Romanick
Philip Brown wrote: So since it is orthogonal, you should have no objections to lowest-level allocation of video memory being done by GLX calling xf86Allocate routines, yes? (ie: leave the X core code alone) That is what's currently done. The goal was two fold. One (very minor, IMO) goal was

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Philip Brown
On Wed, Mar 26, 2003 at 12:22:48PM -0800, Ian Romanick wrote: ... The memory management code that is in the 3D driver (for doing the allocations and communicating with the DRM) really has to be there. Moving it into the X server would really hurt performance. There's really only four

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Jens Owen
Suzy Deffeyes wrote: Jens- I agree with you, supporting HW accelerated indirect rending would be a good thing. Take a look at the DRI high level design doc: http://dri.sourceforge.net/doc/design_high_level.html In section 4.3, Indirect Rendering, there's a section on Multi-rendering in a

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Michel Dänzer
On Mit, 2003-03-26 at 21:22, Ian Romanick wrote: If the paged memory system is only used when DRI is enabled, does it really matter where the code the X server calls is located? Could we make the memory manager some sort of API-registered callback? It would be one that only DRI (and

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Ian Romanick
Michel Dänzer wrote: On Mit, 2003-03-26 at 21:22, Ian Romanick wrote: If the paged memory system is only used when DRI is enabled, does it really matter where the code the X server calls is located? Could we make the memory manager some sort of API-registered callback? It would be one that

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-26 Thread Michel Dänzer
On Don, 2003-03-27 at 00:37, Keith Whitwell wrote: Ian Romanick wrote: Michel Dänzer wrote: On Mit, 2003-03-26 at 21:22, Ian Romanick wrote: If the paged memory system is only used when DRI is enabled, does it really matter where the code the X server calls is located? Could we

[Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Ian Romanick
As many of you know, I've been doing a lot of thinking lately about the GLX part of XFree86 DRI. In that process I've come across a few stumbling blocks. A few things that make forward progress more difficult. To this point my efforts have been focused on the client-side of things. Some

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Keith Whitwell
Ian Romanick wrote: As many of you know, I've been doing a lot of thinking lately about the GLX part of XFree86 DRI. In that process I've come across a few stumbling blocks. A few things that make forward progress more difficult. To this point my efforts have been focused on the

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Alan Cox
On Tue, 2003-03-25 at 21:48, Keith Whitwell wrote: The final point that I would like to make is that we're going to NEED to load the DRI driver on the server-side at some point in order to support accelerated server-side rendering. We could then implemented a server-side software-only

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Gareth Hughes
Keith Whitwell wrote: Yes, very nice. Utah did have some stuff going for it. It was designed as a server-side-only accelerated indirect renderer. My innovation was to figure out that the client could pretty easily play a few linker tricks load that server module with dlopen(), and then with

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Keith Whitwell
Gareth Hughes wrote: Keith Whitwell wrote: Yes, very nice. Utah did have some stuff going for it. It was designed as a server-side-only accelerated indirect renderer. My innovation was to figure out that the client could pretty easily play a few linker tricks load that server module with

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Philip Brown
On Tue, Mar 25, 2003 at 09:48:21PM +, Keith Whitwell wrote: Utah did have some stuff going for it. It was designed as a server-side-only accelerated indirect renderer. My innovation was to figure out that the client could pretty easily play a few linker tricks load that server

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Philip Brown
On Tue, Mar 25, 2003 at 12:37:17PM -0800, Ian Romanick wrote: This could also pave the way for the X server to use the new memory manager that is being developed. We could make some sort of a conduit for the X server to call into the DRI driver to allocate graphics / AGP memory. There

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Brian Paul
Keith Whitwell wrote: Gareth Hughes wrote: Keith Whitwell wrote: Yes, very nice. Utah did have some stuff going for it. It was designed as a server-side-only accelerated indirect renderer. My innovation was to figure out that the client could pretty easily play a few linker tricks load

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Keith Whitwell
My impression is that a patch trying to add a dlopen() call to one of the xfree86 hosted ddx drivers would be rejected. Last I looked at the XF86 loader, it had some stuff in it that implied to me that it couldn't simply be treated as a wrapper for dlopen(), dlsym(), etc. I don't remember

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Alan Hourihane
On Tue, Mar 25, 2003 at 10:51:05PM +, Keith Whitwell wrote: Gareth Hughes wrote: Keith Whitwell wrote: Yes, very nice. Utah did have some stuff going for it. It was designed as a server-side-only accelerated indirect renderer. My innovation was to figure out that the client

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Alan Cox
On Tue, 2003-03-25 at 23:15, Philip Brown wrote: There are already AGP (and memory alloc) related calls in the X server framework; xf86BindGARTMemory(), xf86EnableAGP(), etc. The core X server should not be making calls into extension modules. Extension modules should be making calls to

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Keith Whitwell
Alan Hourihane wrote: On Tue, Mar 25, 2003 at 10:51:05PM +, Keith Whitwell wrote: Gareth Hughes wrote: Keith Whitwell wrote: Yes, very nice. Utah did have some stuff going for it. It was designed as a server-side-only accelerated indirect renderer. My innovation was to figure out that

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Philip Brown
On Wed, Mar 26, 2003 at 12:37:08AM +, Alan Cox wrote: On Tue, 2003-03-25 at 23:15, Philip Brown wrote: There are already AGP (and memory alloc) related calls in the X server framework; xf86BindGARTMemory(), xf86EnableAGP(), etc. The core X server should not be making calls into

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Alan Hourihane
On Tue, Mar 25, 2003 at 11:18:45PM +, Keith Whitwell wrote: My impression is that a patch trying to add a dlopen() call to one of the xfree86 hosted ddx drivers would be rejected. Last I looked at the XF86 loader, it had some stuff in it that implied to me that it couldn't simply

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Michel Dänzer
On Die, 2003-03-25 at 21:37, Ian Romanick wrote: In the current GLX visual mechanism, the DDX driver exports an array of __GLXvisualConfigRec objects that is used by the GLX extension. This is done because the DDX driver is the only place in the server that knows what display modes the

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Ian Romanick
Philip Brown wrote: On Tue, Mar 25, 2003 at 12:37:17PM -0800, Ian Romanick wrote: This could also pave the way for the X server to use the new memory manager that is being developed. We could make some sort of a conduit for the X server to call into the DRI driver to allocate graphics / AGP

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Ian Romanick
Alan Cox wrote: On Tue, 2003-03-25 at 21:48, Keith Whitwell wrote: The final point that I would like to make is that we're going to NEED to load the DRI driver on the server-side at some point in order to support accelerated server-side rendering. We could then implemented a server-side

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Ian Romanick
Alan Hourihane wrote: On Tue, Mar 25, 2003 at 11:27:17PM +, Keith Whitwell wrote: Alan Hourihane wrote: If there's any architectural reason why we can't use XFree86's module loader for OS indepence here ? The whole point of the drmCommand*() interface is that it's portable, so I don't see

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Philip Brown
On Tue, Mar 25, 2003 at 05:07:38PM -0800, Ian Romanick wrote: Philip Brown wrote: The core X server should not be making calls into extension modules. Extension modules should be making calls to xfree-exported functions. If there arent sufficient xfree-exported functions, extend or add new

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Keith Whitwell
Alan Hourihane wrote: On Tue, Mar 25, 2003 at 11:18:45PM +, Keith Whitwell wrote: My impression is that a patch trying to add a dlopen() call to one of the xfree86 hosted ddx drivers would be rejected. Last I looked at the XF86 loader, it had some stuff in it that implied to me that it

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Alan Hourihane
On Tue, Mar 25, 2003 at 11:27:17PM +, Keith Whitwell wrote: Alan Hourihane wrote: On Tue, Mar 25, 2003 at 10:51:05PM +, Keith Whitwell wrote: Gareth Hughes wrote: Keith Whitwell wrote: Yes, very nice. Utah did have some stuff going for it. It was designed as a

Re: [Dri-devel] Server-side GLX / DRI issues

2003-03-25 Thread Alan Hourihane
On Tue, Mar 25, 2003 at 11:33:31PM +, Keith Whitwell wrote: Alan Hourihane wrote: On Tue, Mar 25, 2003 at 11:18:45PM +, Keith Whitwell wrote: My impression is that a patch trying to add a dlopen() call to one of the xfree86 hosted ddx drivers would be rejected. Last I looked at