Re: [Mesa-dev] [PATCH V3 04/11] i965/fs: Add support for ir_tg4

2013-09-18 Thread Kenneth Graunke
On 09/15/2013 02:58 AM, Chris Forbes wrote: > Lowers ir_tg4 (from textureGather and textureGatherOffset builtins) to > SHADER_OPCODE_TG4. > > The usual post-sampling swizzle workaround can't work for ir_tg4, > so avoid doing that: > > * For R/G/B/A swizzles use the hardware channel select (lives

[Mesa-dev] [PATCH V3 04/11] i965/fs: Add support for ir_tg4

2013-09-15 Thread Chris Forbes
Lowers ir_tg4 (from textureGather and textureGatherOffset builtins) to SHADER_OPCODE_TG4. The usual post-sampling swizzle workaround can't work for ir_tg4, so avoid doing that: * For R/G/B/A swizzles use the hardware channel select (lives in the same dword in the header as the texel offset), a