i965: Set up swizzling of shadow compare results for GL_DEPTH_TEXTURE_MODE.
authorEric Anholt <eric@anholt.net>
Sun, 3 Oct 2010 06:27:31 +0000 (23:27 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 3 Oct 2010 06:48:14 +0000 (23:48 -0700)
commita7fa00dfc5ab5782b2e497fbf4ca292dde69cdbd
treecb4de56e2f3c6c647cbfba0c61499f4d51090d76
parent4fb0c92c6986cf4e88296bab8837320210f1794f
i965: Set up swizzling of shadow compare results for GL_DEPTH_TEXTURE_MODE.

The brw_wm_surface_state.c handling of GL_DEPTH_TEXTURE_MODE doesn't
apply to shadow compares, which always return an intensity value.  The
texture swizzles can do the job for us.

Fixes:
glsl1-shadow2D(): 1
glsl1-shadow2D(): 3
src/mesa/drivers/dri/i965/brw_wm.c