Re: [Mesa-dev] Clamp/saturate optimizations V2

2014-07-07 Thread Matt Turner
On Mon, Jul 7, 2014 at 6:56 AM, Abdiel Janulgue wrote: > V2 of clamp/saturate optimizations > > This patch series add the plumbing to support the GLSL IR instruction > saturate(). > Previously, saturate is implemented as min/max instructions. Most GPUs, > however, > can probably perform saturate

[Mesa-dev] Clamp/saturate optimizations V2

2014-07-07 Thread Abdiel Janulgue
V2 of clamp/saturate optimizations This patch series add the plumbing to support the GLSL IR instruction saturate(). Previously, saturate is implemented as min/max instructions. Most GPUs, however, can probably perform saturate for free. With these changes, we can allow saturate to be optimized