Re: [Mesa-dev] [PATCH 4/5] glsl: Vectorize multiple scalar assignments

2014-01-10 Thread Matt Turner
On Fri, Jan 10, 2014 at 5:53 PM, Ian Romanick wrote: > On 01/10/2014 03:27 PM, Matt Turner wrote: >> On Thu, Jan 9, 2014 at 11:28 AM, Ian Romanick wrote: >>> On 01/08/2014 12:43 PM, Matt Turner wrote: +/** + * \file opt_vectorize.cpp + * + * Combines scalar assignments of the

Re: [Mesa-dev] [PATCH 4/5] glsl: Vectorize multiple scalar assignments

2014-01-10 Thread Ian Romanick
On 01/10/2014 03:27 PM, Matt Turner wrote: > On Thu, Jan 9, 2014 at 11:28 AM, Ian Romanick wrote: >> On 01/08/2014 12:43 PM, Matt Turner wrote: >>> +/** >>> + * \file opt_vectorize.cpp >>> + * >>> + * Combines scalar assignments of the same expression (modulo swizzle) to >>> + * multiple channels

Re: [Mesa-dev] [PATCH 4/5] glsl: Vectorize multiple scalar assignments

2014-01-10 Thread Matt Turner
On Thu, Jan 9, 2014 at 11:28 AM, Ian Romanick wrote: > On 01/08/2014 12:43 PM, Matt Turner wrote: >> +/** >> + * \file opt_vectorize.cpp >> + * >> + * Combines scalar assignments of the same expression (modulo swizzle) to >> + * multiple channels of the same variable into a single vectorized >> e

Re: [Mesa-dev] [PATCH 4/5] glsl: Vectorize multiple scalar assignments

2014-01-09 Thread Ian Romanick
On 01/08/2014 12:43 PM, Matt Turner wrote: > Reduces vertex shader instruction counts in DOTA2 by 6.42%, L4D2 by > 4.61%, and CS:GO by 5.71%. > > total instructions in shared programs: 1500153 -> 1498191 (-0.13%) > instructions in affected programs: 59919 -> 57957 (-3.27%) > --- > src/glsl/Ma

[Mesa-dev] [PATCH 4/5] glsl: Vectorize multiple scalar assignments

2014-01-08 Thread Matt Turner
Reduces vertex shader instruction counts in DOTA2 by 6.42%, L4D2 by 4.61%, and CS:GO by 5.71%. total instructions in shared programs: 1500153 -> 1498191 (-0.13%) instructions in affected programs: 59919 -> 57957 (-3.27%) --- src/glsl/Makefile.sources | 1 + src/glsl/glsl_parser_extras