Ian Romanick wrote:
> Brian Paul wrote:
>> Ian Romanick wrote:

>>> I haven't looked at the code or docs yet, so this question may already
>>> be answered.  What level of effort is required to create a new backend
>>> (e.g., for R300 or PowerPC or ...).
>> It's a matter of translating Mesa's GPU instructions to the particular
>> target.  This has been done in the i965, i945, r300, etc. drivers.  I
>> haven't updated any drivers for the newer GPU instructions for
>> conditionals, branching, looping, etc.  I'm hoping others will help out
>> with that.
> 
> At one point you had mentioned using (creating?) a backend generator.
> Did anything ever happen with that?

Not sure what you mean.  Do you mean a pattern-matching code 
generator-generator like Twig/BURG?

I'm finding that the code quality is pretty good without those tools 
(just doing an in-order traversal of the IR tree).  Also, it was pretty 
easy to identify MUL/ADD patterns and emit MAD without a general pattern 
matcher.

-Brian


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to