Re: [Mesa-dev] Add support for GLSL IR saturate()

2014-06-24 Thread Matt Turner
On Mon, Jun 23, 2014 at 10:27 PM, Abdiel Janulgue wrote: > 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

Re: [Mesa-dev] Add support for GLSL IR saturate()

2014-06-24 Thread Abdiel Janulgue
On 24.06.2014 10:34, Matt Turner wrote: > On Mon, Jun 23, 2014 at 10:27 PM, Abdiel Janulgue > wrote: >> 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 per

Re: [Mesa-dev] Add support for GLSL IR saturate()

2014-06-24 Thread Matt Turner
On Mon, Jun 23, 2014 at 10:27 PM, Abdiel Janulgue wrote: > 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

[Mesa-dev] Add support for GLSL IR saturate()

2014-06-23 Thread Abdiel Janulgue
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 as a single instruction. In additio