Re: [Mesa-dev] [PATCH 19/22] glsl: Add a saturate range optimization

2015-01-30 Thread Matt Turner
On Sat, Jan 3, 2015 at 2:16 PM, Matt Turner wrote: > On Sat, Jan 3, 2015 at 11:18 AM, Thomas Helland > wrote: >> This improves one shader from Brutal Legend. >> It does a lrp that yields a result larger than 1, >> that then gets saturated. This is replaced by a constant 1. > > Not a comment on yo

Re: [Mesa-dev] [PATCH 19/22] glsl: Add a saturate range optimization

2015-01-03 Thread Matt Turner
On Sat, Jan 3, 2015 at 11:18 AM, Thomas Helland wrote: > This improves one shader from Brutal Legend. > It does a lrp that yields a result larger than 1, > that then gets saturated. This is replaced by a constant 1. Not a comment on your patch, but the code in question does this: > const vec4 ps

[Mesa-dev] [PATCH 19/22] glsl: Add a saturate range optimization

2015-01-03 Thread Thomas Helland
This improves one shader from Brutal Legend. It does a lrp that yields a result larger than 1, that then gets saturated. This is replaced by a constant 1. shaders/BrutalLegend/214.shader_test fs16:84 -> 73 (-13.10%) shaders/BrutalLegend/214.shader_test fs8: 84 -> 73 (-13.10%) ---