Re: [Mesa-dev] [PATCH 2/3] i965: Do texture swizzling in hardware on Haswell.

2012-09-14 Thread Kenneth Graunke
On 09/13/2012 01:50 PM, Paul Berry wrote: > On 10 September 2012 14:15, Kenneth Graunke > wrote: > > Haswell supports EXT_texture_swizzle and legacy DEPTH_TEXTURE_MODE > swizzling by setting SURFACE_STATE entries. This means we don't have to > bake the s

Re: [Mesa-dev] [PATCH 2/3] i965: Do texture swizzling in hardware on Haswell.

2012-09-13 Thread Paul Berry
On 10 September 2012 14:15, Kenneth Graunke wrote: > Haswell supports EXT_texture_swizzle and legacy DEPTH_TEXTURE_MODE > swizzling by setting SURFACE_STATE entries. This means we don't have to > bake the swizzle settings into the shader code by emitting MOV > instructions, and thus don't have t

[Mesa-dev] [PATCH 2/3] i965: Do texture swizzling in hardware on Haswell.

2012-09-10 Thread Kenneth Graunke
Haswell supports EXT_texture_swizzle and legacy DEPTH_TEXTURE_MODE swizzling by setting SURFACE_STATE entries. This means we don't have to bake the swizzle settings into the shader code by emitting MOV instructions, and thus don't have to recompile shaders whenever the swizzles change. Signed-off