[Mesa-dev] [PATCH] glsl: optimize list handling in opt_dead_code

Jan Ziak 0xe2.0x9a.0x9b at gmail.com
Tue Oct 18 13:40:16 UTC 2016


On Tue, Oct 18, 2016 at 3:32 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 17 October 2016 at 23:07, Jan Ziak <0xe2.0x9a.0x9b at gmail.com> wrote:
>
>> -   exec_list assign_list;
>> +   arraylist<ir_assignment*,4> assign_list;
>>
> Just an FYI - when people started using C++ for glsl there was an
> agreement that templating is not to be used.

In my opinion, avoiding templates for the very basic datatypes (such
as lists, sets and maps) in a language supporting templates is highly
unusual and counter-productive.

I can agree with Mesa not wanting to use templates in other cases.

> Not sure if it still holds true, nowadays.
> Emil


More information about the mesa-dev mailing list