i965: Set "Shader Channel Select" fields in Haswell's SURFACE_STATE.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Oct 2011 09:00:52 +0000 (02:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 30 Mar 2012 21:39:31 +0000 (14:39 -0700)
commit4848122a96a46d6725cbfe92041459d11aea70fc
tree16f800e3e3b9d1f55620fcec807318fe5b8acd08
parenta23dcc18e71e905da117d14b5d56c4e49c66ab79
i965: Set "Shader Channel Select" fields in Haswell's SURFACE_STATE.

These can be used to implement EXT_texture_swizzle without baking
state-dependent swizzle instructions into the shader and forcing
recompiles.

For now, just set them to pass-through mode, so everything continues to
work as it did on Ivybridge.  We can optimize this later.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_structs.h
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c