On Wed, Feb 26, 2003 at 11:29:57PM +0100, Andreas Karrenbauer wrote:
> José Fonseca wrote:
> 
> As a second task, I bootstrapped a kernel module from the tdfx driver by 
> simply replacing every (hopefully ;-) occurence of 'tdfx' with 'savage'. 
> The two files are attached. I also added the pci id for the card in my 
> laptop (VT8751) in the file "savage_drv.c". This is the only entry right 
> now because I can only test on this hardware. But if some people join, 
> the id list could be extended easily. Other questions are the vendor and 
> author strings and stuff like that. I added my name as author but I am 
> not happy with that. Because I don't want to blame someone for the 
> errors and mistakes I made and on the other side I don't want to claim 
> that I have put any brain in this so far.

I'll commit your patch shortly.

> Nevertheless, as of yet we have a ddx driver in the branch wich compiles 
> (at least on my system) and a bootstrapped kernel module (with working 
> insmod). But I haven't put any knowledge of DRI into these things. Thus, 
> there is a lot of work to do. 

> As I consider myself to be a newbie I 
> would like to ask the gurus how to proceed from this point?

We need to get SAVAGEDRIKernelInit to work properly.  First thing is get
the framebuffer mappings supported in savage_dri.c (i.e., fix those "we
do not support framebuffer right now"), for it's needed for software
rendering.

Then it's needed to write the DMA initialization ioctl (there won't be
any DMA right away, but this ioctl is used to initialize a series of
stuff). You can see examples in r128_do_init_cce in r128_cce.c, or
radeon_do_init_cp in radeon_cp.c, mga_do_init_dma in mga_dma.c. "CCE"
and "CP" are the names of the DMA engines of Rage128 and Radeon,
respectively, and work as a ring buffer. Savage's DMA engine is called
BCE. I don't know which of the above engines matches the Savage best,
but you'll see that the *_do_init_{cp,cce,dma} is always standard boiler
plate.

Note that tdfx uses Glide for the actual primitive drawing, so its DRM
is really more simple than all other cards.

In the meanwhile I'm going to look to Utah-GLX Savage4 driver to get a
grasp of what DMA works there so that, een though they just use MMIO
internally, we get the DRM interfaces right from the beginning.

Regards,

José Fonseca
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to