Re: [Mesa-dev] [PATCH 1/4] glsl: Merge opt_noop_swizzle, and opt_swizzle_swizzle

2017-05-15 Thread Thomas Helland
2017-05-16 0:24 GMT+02:00 Ian Romanick : > On 04/06/2017 12:49 PM, Thomas Helland wrote: >> The pass to optimize two swizzles in a row can be interpreted as >> a noop swizzle optimization. Merge the two passes, and avoid having >> the extra pass that runs a visitor pattern.

Re: [Mesa-dev] [PATCH 1/4] glsl: Merge opt_noop_swizzle, and opt_swizzle_swizzle

2017-05-15 Thread Ian Romanick
On 04/06/2017 12:49 PM, Thomas Helland wrote: > The pass to optimize two swizzles in a row can be interpreted as > a noop swizzle optimization. Merge the two passes, and avoid having > the extra pass that runs a visitor pattern. > --- > src/compiler/Makefile.sources | 1 - >

[Mesa-dev] [PATCH 1/4] glsl: Merge opt_noop_swizzle, and opt_swizzle_swizzle

2017-04-06 Thread Thomas Helland
The pass to optimize two swizzles in a row can be interpreted as a noop swizzle optimization. Merge the two passes, and avoid having the extra pass that runs a visitor pattern. --- src/compiler/Makefile.sources | 1 - src/compiler/glsl/glsl_parser_extras.cpp | 1 -