i965: Base HW depth format setup based on MESA_FORMAT, not bpp.
authorEric Anholt <eric@anholt.net>
Thu, 17 Nov 2011 22:45:54 +0000 (14:45 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 30 Nov 2011 00:44:51 +0000 (16:44 -0800)
commitd84a180417d1eabd680554970f1eaaa93abcd41e
treeaa01f69e18c3abc523aa0ed60fa8289a4deac8ab
parentccd4d4367f2b4e5aebfc59b832599812a4a1c7d8
i965: Base HW depth format setup based on MESA_FORMAT, not bpp.

This will make handling new formats (like actually exposing Z32F)
easier and more reliable.

v2: Remove the check for hiz buffer -- the MESA_FORMAT should really
    be giving us the value we want even for hiz.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/gen7_misc_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c
src/mesa/drivers/dri/intel/intel_context.h