i965: Use the miptree format for texture surface format choice.
authorEric Anholt <eric@anholt.net>
Tue, 13 Dec 2011 20:40:09 +0000 (12:40 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 19 Dec 2011 21:20:11 +0000 (13:20 -0800)
commite71fc6a8200cd78037a9788230ec0cc9f451a4b1
treed7b0bd09e9078e8bcd62d946790feb129e3ae2a7
parent353f7ba4abbfd15d1e4e4b7a38f88e64ce85f6a2
i965: Use the miptree format for texture surface format choice.

With separate stencil GL_DEPTH32F_STENCIL8, the miptree will have a
really different format (MESA_FORMAT_Z32_FLOAT) from the teximage
(MESA_FORMAT_Z32_FLOAT_X24S8).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c