On Tue, Jun 18, 2002 at 10:19:12PM +0200, Denis Oliver Kropp wrote: > > I haven't found any decent docs on the agpgart interface so I'm not sure > > if what I'm doing is correct. Currently I allocate 64MB of AGP memory but > > I adjust the heap offset to 32MB so only the upper half of that gets used. > > This way I can check if the buffer is in card memory or AGP memory. Card < > > 32MB, AGP >= 32MB. > > With the introduction of memory pools (currently hardcoded to system and video) > this hack shouldn't be needed,
Yes. I just did it this way to keep it as simple and non-intrusive as possible. The allocation of buffers should be made dynamic but because the bind ioctl needs the starting offset, something like the current Chunk approach is still needed to manage it. This should work as long as no one else decides to use the gart. Maybe the size and stating offset should be configurable from the command line? This might allow more than one user at a time. > I think there were some AGP registers to be initialized, did you try it with > drm enabled? No I didn't. And as I said there may be a problem with multiple things using the gart. I didn't call the setup ioctl because I assumed that the BIOS should know what it's doing, but maybe the ioctl is necessary even when the registers aren't changed. I don't think the matrox driver needs any changes apart from the ORG registers but I may be wrong. -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
