Re: [Mesa3d-dev] Why I don't use TGSI

2009-07-27 Thread Keith Whitwell
On Sat, 2009-07-25 at 02:52 -0700, Nicolai Hähnle wrote: Am Saturday 25 July 2009 05:15:13 schrieben Sie: On Friday 24 July 2009 20:25:19 Nicolai Hähnle wrote: Most importantly and crucially, the stream-based nature of TGSI is, in my opinion, harmful. Essentially, it forces one to use

Re: [Mesa3d-dev] Why I don't use TGSI

2009-07-26 Thread Nicolai Hähnle
Thank you for the reply - it's pretty much what I thought, though it doesn't really address my criticism. After having some other discussions on this as well, maybe I should clarify the issues. Here's the summary for lazy people: 1. The TGSI instruction set is fine 2. TGSI is a reasonable

Re: [Mesa3d-dev] Why I don't use TGSI

2009-07-26 Thread Nicolai Hähnle
I apologize for the last mail, since it's tone was probably too inflammatory (I leave final judgement on that to others). Bottom line: I believe TGSI is good for *communicating* programs, but it's needlessly complicated for *transforming* programs. If you want to transform a list of

Re: [Mesa3d-dev] Why I don't use TGSI

2009-07-26 Thread Nicolai Hähnle
Am Sunday 26 July 2009 18:51:22 schrieb Younes Manton: On Sun, Jul 26, 2009 at 11:19 AM, Nicolai Hähnlenhaeh...@gmail.com wrote: I apologize for the last mail, since it's tone was probably too inflammatory (I leave final judgement on that to others). Bottom line: I believe TGSI is good

Re: [Mesa3d-dev] Why I don't use TGSI

2009-07-25 Thread Nicolai Hähnle
Am Saturday 25 July 2009 05:15:13 schrieben Sie: On Friday 24 July 2009 20:25:19 Nicolai Hähnle wrote: Most importantly and crucially, the stream-based nature of TGSI is, in my opinion, harmful. Essentially, it forces one to use only forward-scan-based algorithms that look at one single

Re: [Mesa3d-dev] Why I don't use TGSI

2009-07-25 Thread Zack Rusin
On Saturday 25 July 2009 05:52:01 Nicolai Hähnle wrote: Am Saturday 25 July 2009 05:15:13 schrieben Sie: I'm not sure I understand what you mean by stream-based nature of TGSI. It's just just an array of struct tgsi_token's. So technically you could iterate from the back, middle, 2+middle

[Mesa3d-dev] Why I don't use TGSI

2009-07-24 Thread Nicolai Hähnle
As anyone visiting #radeon could see, I occasionally vented my frustration at TGSI while working on refactoring the r300 program compiler for use in Gallium. Now to give you a bit of background: Radeon hardware is quite quirky, to the point that several hardware-specific optimizations in the

Re: [Mesa3d-dev] Why I don't use TGSI

2009-07-24 Thread Zack Rusin
On Friday 24 July 2009 20:25:19 Nicolai Hähnle wrote: Most importantly and crucially, the stream-based nature of TGSI is, in my opinion, harmful. Essentially, it forces one to use only forward-scan-based algorithms that look at one single instruction at a time. I'm not sure I understand what