i965: Fix source depth reg setting for FSes reading and writing to depth.
authorEric Anholt <eric@anholt.net>
Thu, 6 Aug 2009 03:12:15 +0000 (20:12 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Sep 2009 21:12:36 +0000 (14:12 -0700)
commit94d3b832cc5c73544c478804531e16644483d8be
treedde07592a3409a0ee5382c0873e6ecc2a4c50fda
parent8c764d5c34548d56e912cdc5990adffb0e8fd9f7
i965: Fix source depth reg setting for FSes reading and writing to depth.

For some IZ setups, we'd forget to account for the source depth register
being present, so we'd both read the wrong reg, and write output depth to
the wrong reg.

Bug #22603.
(cherry picked from commit f44916414ecd2b888c8a680d56b7467ccdff6886)
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/drivers/dri/i965/brw_wm_iz.c