On 2002.05.18 10:41 Ian Molton wrote:
> Hi.
> 
> What do I need to do to get started on DRI hacking?
> 
> I want to track down a bug in radeon_dri.so
> 
> how do I build it? what sources do I need?

Ian,

First thing you need is to download the cvs tree and build it. You can 
follow the instructions on http://dri.sourceforge.net/doc/DRIcompile.html. 
If you don't want to override your distro's XFree, then follow instead 
Leif's instructions on http://www.retinalburn.net/linux/dri_HOWTO.html 
replacing mach64-?-?-?-branch for the branch you're interested (either 
HEAD or tcl-0-0-branch).

All this process can be quite tricky on the first time you make it, so 
make sure that you have you new Xfree running properly before you start 
playing with it.

After, go to the radeon Mesa driver sources (see 
http://dri.sourceforge.net/doc/faq/architecture.html#ED-DRIVER-WHERE) and 
start debugging them, either by putting debug output statements, or 
running gdb on it, like:

   gdb glxgears
   run
                (there is always a breakpoint here due to the SSE 
detection - it's best the time to add breakpoints in radeon_dri.so)
   break nauthy-function-in-radeon-dri-so
   continue
                (it should popup)
   list
   step
   step
   next
   print foo
   ...

if your app segfaults then when you run it with gdb it will breakpoint 
there.

You don't need to recompile the whole X when you change parts of it. Just 
do "make", (if you mess with header is better to do "make clean" first 
because the dependencies may be wrong) and then " su -c "make install" "


When you got so far come to us again giving more details about the bug 
you're keen, and we'll give hints of places to look and answer any doubt 
you may have.

José Fonseca

_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to