Re: [Mesa-dev] [PATCH] i965: Actually use the Mesa IR optimizer.

2014-06-11 Thread Eric Anholt
Ian Romanick i...@freedesktop.org writes: On 06/09/2014 12:36 AM, Kenneth Graunke wrote: We have this wonderful thing called an optimizer---maybe we should consider calling it? That's really weird. The *only* place this is called is in ir_to_mesa. It seems like the assember should just

Re: [Mesa-dev] [PATCH] i965: Actually use the Mesa IR optimizer.

2014-06-10 Thread Ian Romanick
On 06/09/2014 12:36 AM, Kenneth Graunke wrote: We have this wonderful thing called an optimizer---maybe we should consider calling it? That's really weird. The *only* place this is called is in ir_to_mesa. It seems like the assember should just call it after assembling any program. Weird.

[Mesa-dev] [PATCH] i965: Actually use the Mesa IR optimizer.

2014-06-09 Thread Kenneth Graunke
We have this wonderful thing called an optimizer---maybe we should consider calling it? Slightly improves the vertex shaders in Shadowrun Returns, which uses ARB_vertex_program and ARB_fragment_program: total instructions in shared programs: 117131 - 117016 (-0.10%) instructions in affected