i965: Make the precompile ignore DEPTH_TEXTURE_MODE on Gen7.5+.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Jan 2015 02:06:41 +0000 (18:06 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 5 Jan 2015 05:31:40 +0000 (21:31 -0800)
commit0b98b2bf535d6e6b6b02c0d47ea03f98adf42f15
tree487c13bf558d349180de02578c9a91e37c728e66
parentd41cf9fb60cc4f2183daa4fd58fad72bf7e75f85
i965: Make the precompile ignore DEPTH_TEXTURE_MODE on Gen7.5+.

Gen7.5+ platforms that support the "Shader Channel Select" feature leave
key->tex.swizzles[i] as SWIZZLE_NOOP except when GL_DEPTH_TEXTURE_MODE
is GL_ALPHA (which is really uncommon).  So, the precompile should leave
them as SWIZZLE_NOOP (aka SWIZZLE_XYZW) as well.

We didn't notice this because prog->ShadowSamplers is not set correctly.
The next patch will fix that problem.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87886
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp