Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-21 Thread Zack Rusin
On Monday 21 May 2007 03:11:28 pm Keith Whitwell wrote: > > It seems that either the LLVM IR would need some extensions for those > > things or the back-end code generator/instruction selector would have to > > look for patterns of scalar instructions and figure out where vector ops > > should be u

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-21 Thread Keith Whitwell
Brian Paul wrote: > Zack Rusin wrote: >> On Friday 18 May 2007 05:07:08 am Keith Whitwell wrote: >>> Sounds good. >>> >>> I've been thinking about LLVM and Mesa a little bit the last few days. >>> If it can be made to work, it seems like a good way to go. There are a >>> couple of practical issues

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-21 Thread Brian Paul
Zack Rusin wrote: > On Friday 18 May 2007 05:07:08 am Keith Whitwell wrote: >> Sounds good. >> >> I've been thinking about LLVM and Mesa a little bit the last few days. >> If it can be made to work, it seems like a good way to go. There are a >> couple of practical issues that should be taken into

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-21 Thread Keith Whitwell
Zack Rusin wrote: > On Friday 18 May 2007 05:07:08 am Keith Whitwell wrote: >> Sounds good. >> >> I've been thinking about LLVM and Mesa a little bit the last few days. >> If it can be made to work, it seems like a good way to go. There are a >> couple of practical issues that should be taken into

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-21 Thread Zack Rusin
On Friday 18 May 2007 01:53:53 pm Ian Romanick wrote: > > Yeah, that's where Roberto came in :) We used QLALR which is simply > > amazing and for those who ever used Bison a lot more convenient than what > > we had right now. > > > > http://labs.trolltech.com/page/Projects/Compilers/QLALR > > > > I

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-21 Thread Zack Rusin
On Friday 18 May 2007 05:07:08 am Keith Whitwell wrote: > Sounds good. > > I've been thinking about LLVM and Mesa a little bit the last few days. > If it can be made to work, it seems like a good way to go. There are a > couple of practical issues that should be taken into account though: > > - Fi

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-18 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zack Rusin wrote: > On Thursday 17 May 2007 05:36:45 pm Keith Whitwell wrote: I think the Zack/Roberto LLVM tree has done just this. Unfortunately for this immediate problem, they target a whole new intermediate representation. >>> Zack

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-18 Thread Keith Whitwell
Brian Paul wrote: > Zack Rusin wrote: >> On Thursday 17 May 2007 05:36:45 pm Keith Whitwell wrote: > I think the Zack/Roberto LLVM tree has done just this. Unfortunately > for this immediate problem, they target a whole new intermediate > representation. Zack, what tools did you u

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-18 Thread Brian Paul
Zack Rusin wrote: > On Thursday 17 May 2007 05:36:45 pm Keith Whitwell wrote: I think the Zack/Roberto LLVM tree has done just this. Unfortunately for this immediate problem, they target a whole new intermediate representation. >>> Zack, what tools did you use for the front-end/pars

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-18 Thread Keith Whitwell
Zack Rusin wrote: > On Thursday 17 May 2007 05:36:45 pm Keith Whitwell wrote: I think the Zack/Roberto LLVM tree has done just this. Unfortunately for this immediate problem, they target a whole new intermediate representation. >>> Zack, what tools did you use for the front-end/pars

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-18 Thread Zack Rusin
On Thursday 17 May 2007 05:36:45 pm Keith Whitwell wrote: > >> I think the Zack/Roberto LLVM tree has done just this. Unfortunately > >> for this immediate problem, they target a whole new intermediate > >> representation. > > > > Zack, what tools did you use for the front-end/parser? I've been >

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-17 Thread Keith Whitwell
Brian Paul wrote: > Keith Whitwell wrote: >> Micha? Król wrote: >>> On 17/05/07, Brian Paul <[EMAIL PROTECTED]> wrote: Ian Romanick wrote: > Is there an easy way in this parser generator to change the grammar for > the TXP instruction? Basically, I want it to be invalid to use TXP >>

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith Whitwell wrote: > I think the Zack/Roberto LLVM tree has done just this. Unfortunately > for this immediate problem, they target a whole new intermediate > representation. Hmm...that makes me wonder if redoing the parse shouldn't wait until

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-17 Thread Brian Paul
Keith Whitwell wrote: > Micha? Król wrote: >> On 17/05/07, Brian Paul <[EMAIL PROTECTED]> wrote: >>> Ian Romanick wrote: Is there an easy way in this parser generator to change the grammar for the TXP instruction? Basically, I want it to be invalid to use TXP with the SHADOWAR

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-17 Thread Keith Whitwell
Micha? Król wrote: > On 17/05/07, Brian Paul <[EMAIL PROTECTED]> wrote: >> Ian Romanick wrote: >>> Is there an easy way in this parser generator to change the grammar for >>> the TXP instruction? Basically, I want it to be invalid to use TXP with >>> the SHADOWARRAY2D target. >> Michael would have

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-17 Thread Michał Król
On 17/05/07, Brian Paul <[EMAIL PROTECTED]> wrote: > Ian Romanick wrote: > > Is there an easy way in this parser generator to change the grammar for > > the TXP instruction? Basically, I want it to be invalid to use TXP with > > the SHADOWARRAY2D target. > > Michael would have to answer that. Mic

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-17 Thread Brian Paul
Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Where is the tool to process the .syn files in src/mesa/shader? See src/mesa/shader/slang/library/Makefile The syn_to_c program is built there. > Is there an easy way in this parser generator to change the grammar for >

Re: [Mesa3d-dev] Tool to process .syn files?

2007-05-16 Thread Oliver McFadden
On 5/16/07, Ian Romanick <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Where is the tool to process the .syn files in src/mesa/shader? > > Is there an easy way in this parser generator to change the grammar for > the TXP instruction? Basically, I want it to be in

[Mesa3d-dev] Tool to process .syn files?

2007-05-16 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Where is the tool to process the .syn files in src/mesa/shader? Is there an easy way in this parser generator to change the grammar for the TXP instruction? Basically, I want it to be invalid to use TXP with the SHADOWARRAY2D target. Alternately, is