Re: [Mesa-dev] [PATCH] i965/vec4/nir: Emit single MOV to generate a scalar constant.

2015-08-14 Thread Eduardo Lima Mitev
On 08/12/2015 10:58 PM, Matt Turner wrote: > If an immediate is written to multiple channels, we can load it in a > single writemasked MOV. > > total instructions in shared programs: 6285144 -> 6261991 (-0.37%) > instructions in affected programs: 718991 -> 695838 (-3.22%) > helped:

Re: [Mesa-dev] [PATCH] i965/vec4/nir: Emit single MOV to generate a scalar constant.

2015-08-12 Thread Jason Ekstrand
On Wed, Aug 12, 2015 at 1:58 PM, Matt Turner wrote: > If an immediate is written to multiple channels, we can load it in a > single writemasked MOV. > > total instructions in shared programs: 6285144 -> 6261991 (-0.37%) > instructions in affected programs: 718991 -> 695838 (-3.22%) > helped:

[Mesa-dev] [PATCH] i965/vec4/nir: Emit single MOV to generate a scalar constant.

2015-08-12 Thread Matt Turner
If an immediate is written to multiple channels, we can load it in a single writemasked MOV. total instructions in shared programs: 6285144 -> 6261991 (-0.37%) instructions in affected programs: 718991 -> 695838 (-3.22%) helped:5762 --- The shader-db numbers are