On Thursday 21 March 2002 00:54, Jerome Roussel wrote: > Hello, Bonjour mon ami.
> I am intersted like a lot of people in writing a DRI for S3 Savage So join the Savage crew. > (in my case the mx one at least) but I don't know the spec of the chip. You are lucky. The MX (like Savage3D) was already supported in Utah. So everything you need to know is already documented in savage Utah driver (see utah-glx.sf.net). > I do not know how you work for the virge but I have read that it is very > hard to get the Spec from S3graphic. Yep. You will have to be very patient. Like everything else in life it will take its time. Are you sure you want to code? It is a painful (though exciting) path to get a 3d driver working under linux... > Could you give some advice please? Ok. (I suppose you can code C). That is what I did [devoting around 1 hour a day to this task, for the last 5 months]: a) read Linux Device Drivers 2nd edition (one of the authors, Alessandro, is italian like me and a nice chap too, so this is a must). It will help you very much to refine your kernel knowledge and to code a fast and stable drm kernel module. b) study DRI code: start with drm and try to get a working kernel module. Next analyze the XFree drivers that support DRI (like r128 or mga) and try to understand what you need to add to patch your X driver and make it DRI aware. c) study a couple of Mesa/DRI driver (I studied i810 and gamma) to understand how Mesa calling are converted in driver specific regs command. d) don'f forget to read all the docs around DRI site. e) if everything fails, I will be here to help and share my knowledge. [BTW: I even started a doc (step by step intro to code a DRM/DRI driver), but it is still too cahotic to be helpful] > Could you explain me how you manage to build you driver alone??? You got to be clever, determined, patient and willy to spend at least 1 hour a day for some times (if you are a good coder nut work all alone and can just spend ~1 hour per day on this project, it could take you [including studing time] up to 6 months) > And with which material??? VirgeMX docs (since I tend to be a smart chap they sent it to me in a couple of days, but this was a lucky case). Rubini's book. DRI code. Vale, - max _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel