i965/gen7: Enable HiZ
authorChad Versace <chad.versace@linux.intel.com>
Thu, 22 Dec 2011 01:09:58 +0000 (17:09 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 10 Jan 2012 23:52:38 +0000 (15:52 -0800)
commit06ad9adcb031b97af2ce9cd22b919b8befcec43b
tree0ab7a009b8241d2cb75f32b1e4d242ddf05ca687
parentbebc91f0f3a1f2d19d36a7f1a4f7c992ace064e9
i965/gen7: Enable HiZ

This patch modifies all batches needed for HiZ. The batch length for
3DSTATE_HIER_DEPTH_BUFFER is also corrected from 4 to 3.

Performance +6.7% on Citybench.
    num-frames: 400
    resolution: 1918x1031
    avg-hiz-off: 127.90 fps
    avg-hiz-on: 136.50 fps
    kernel: git://people.freedesktop.org/~anholt/linux.git branch=gen7-reset-sol sha=23360e4

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/gen7_clip_state.c
src/mesa/drivers/dri/i965/gen7_misc_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/intel/intel_screen.c