OSDN Git Service

i915: Fix incorrect depth scaling when enabling/disabling depth buffers.
authorEric Anholt <eric@anholt.net>
Tue, 12 Jul 2011 20:47:21 +0000 (13:47 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 20 Jul 2011 19:50:06 +0000 (12:50 -0700)
commit891073fea30c3f9fc6f4cc216e23a6bc486e454d
treed229d0e4389ba0074280dd49943f0b21d0fe51f4
parentdcaec739ea509bddaacc1e6fc037e540f14fccc3
i915: Fix incorrect depth scaling when enabling/disabling depth buffers.

We were updating our new viewport using the old buffers' _WindowMap.m.
We can do less math and avoid using that deprecated matrix by just
folding the viewport calculation right in to the driver.

Fixes piglit fbo-depthtex.
(cherry picked from commit debf751aeaf0f02b9a7fc0e242ae3b97dde8416f)
src/mesa/drivers/dri/i915/i915_state.c