Re: [Mesa-dev] [PATCH 01/22] glsl: Reorder optimization-passes

2015-01-27 Thread Matt Turner
On Sat, Jan 17, 2015 at 10:33 AM, Matt Turner wrote: > On Sat, Jan 17, 2015 at 8:31 AM, Thomas Helland > wrote: >> 2015-01-03 22:48 GMT+01:00 Matt Turner : >>> On Sat, Jan 3, 2015 at 11:18 AM, Thomas Helland >>> wrote: This allows opt_algebraic to resolve open-coded saturates into ir_u

Re: [Mesa-dev] [PATCH 01/22] glsl: Reorder optimization-passes

2015-01-17 Thread Matt Turner
On Sat, Jan 17, 2015 at 8:31 AM, Thomas Helland wrote: > 2015-01-03 22:48 GMT+01:00 Matt Turner : >> On Sat, Jan 3, 2015 at 11:18 AM, Thomas Helland >> wrote: >>> This allows opt_algebraic to resolve open-coded >>> saturates into ir_unop_saturate before we potentially >>> mess it up by removing t

Re: [Mesa-dev] [PATCH 01/22] glsl: Reorder optimization-passes

2015-01-17 Thread Thomas Helland
2015-01-03 22:48 GMT+01:00 Matt Turner : > On Sat, Jan 3, 2015 at 11:18 AM, Thomas Helland > wrote: >> This allows opt_algebraic to resolve open-coded >> saturates into ir_unop_saturate before we potentially >> mess it up by removing the min or max in min/max-pruning. >> >> Since we are now emitti

Re: [Mesa-dev] [PATCH 01/22] glsl: Reorder optimization-passes

2015-01-03 Thread Matt Turner
On Sat, Jan 3, 2015 at 11:18 AM, Thomas Helland wrote: > This allows opt_algebraic to resolve open-coded > saturates into ir_unop_saturate before we potentially > mess it up by removing the min or max in min/max-pruning. > > Since we are now emitting more free saturates on i965 > this gives us som

[Mesa-dev] [PATCH 01/22] glsl: Reorder optimization-passes

2015-01-03 Thread Thomas Helland
This allows opt_algebraic to resolve open-coded saturates into ir_unop_saturate before we potentially mess it up by removing the min or max in min/max-pruning. Since we are now emitting more free saturates on i965 this gives us some decrease in instruction count. total instructions in shared prog