Re: [Mesa-dev] [PATCH] i965/nir: Use uniform index instead of lookup by name

2016-03-18 Thread Samuel Iglesias Gonsálvez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/03/16 19:58, Matt Turner wrote: > On Thu, Mar 10, 2016 at 10:13 AM, Topi Pohjolainen > wrote: >> Uniform linking in (see link_assign_uniform_locations()) already >> stores the index to the storage in ir_variable which is further >> stored

Re: [Mesa-dev] [PATCH] i965/nir: Use uniform index instead of lookup by name

2016-03-10 Thread Matt Turner
On Thu, Mar 10, 2016 at 10:13 AM, Topi Pohjolainen wrote: > Uniform linking in (see link_assign_uniform_locations()) already > stores the index to the storage in ir_variable which is further > stored into nir_variable (see nir_visitor::visit(ir_variable *)). > > Instead of doing uniform_num^2 stri

[Mesa-dev] [PATCH] i965/nir: Use uniform index instead of lookup by name

2016-03-10 Thread Topi Pohjolainen
Uniform linking in (see link_assign_uniform_locations()) already stores the index to the storage in ir_variable which is further stored into nir_variable (see nir_visitor::visit(ir_variable *)). Instead of doing uniform_num^2 string comparisons one can recur over the uniform type the same way unif