i965/gen6 depth surface: calculate depth (array size) for depth surface
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 9 Jul 2013 22:16:35 +0000 (15:16 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 16 Aug 2014 03:11:41 +0000 (20:11 -0700)
commit51b38106d74b1bd4fa2ce552f489c374bdffa812
tree53ae76737f545d385f86b59510a011795d34df99
parent48acf19d2311385f1bbec76ddceb911596f567ec
i965/gen6 depth surface: calculate depth (array size) for depth surface

(bc1acaa for gen6)

This will be used in 3DSTATE_DEPTH_BUFFER in a later patch.

Note: Cube maps are treated as 2D arrays with 6 times as
many array elements as the cube map array would have.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_blorp.cpp
src/mesa/drivers/dri/i965/gen6_depth_state.c