[Mesa-dev] [PATCH] i965: Micro-optimize swizzle_to_scs() and make it inlinable.

2015-01-02 Thread Kenneth Graunke
brw_swizzle_to_scs has been showing up in my CPU profiling, which is rather silly - it's a tiny amount of code. It really should be inlined, and can easily be implemented with fewer instructions. The enum translation is as follows: SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_W, SWIZZLE_ZERO, SWIZZL

Re: [Mesa-dev] [PATCH] i965: Micro-optimize swizzle_to_scs() and make it inlinable.

2015-01-02 Thread Jason Ekstrand
On Jan 2, 2015 7:26 PM, "Kenneth Graunke" wrote: > > brw_swizzle_to_scs has been showing up in my CPU profiling, which is > rather silly - it's a tiny amount of code. It really should be inlined, > and can easily be implemented with fewer instructions. > > The enum translation is as follows: > >

[Mesa-dev] [PATCH] i965: Micro-optimize swizzle_to_scs() and make it inlinable.

2015-01-02 Thread Kenneth Graunke
brw_swizzle_to_scs has been showing up in my CPU profiling, which is rather silly - it's a tiny amount of code. It really should be inlined, and can easily be implemented with fewer instructions. The enum translation is as follows: SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_W, SWIZZLE_ZERO, SWIZZL