i`ve been working on something similar, the
solution we`re looking at is to use a run time linker
that links in the correct module for the cpu/renderer
in use. kind of like shared libs on unix, that way all
the routines are pointers or table lookups. It doesn`t
help much with asm thats inlined with top level stuff
of course, but it does help with other longer routines.

It`d be really cool if you had a run time loadable module
that could be specific to say k6,katmai,mips etc that
just could be loaded by mesa,. 

there would be a `c` version for easy porting as
there is now, ..

That was theres no ugly ifdefs or such its all
handled at runtime. Means users can just get
say the vector/matrix/math lib/dll/bin whatever
for their system, mesa detects and loads it instead

charlie


Reply via email to