i965/gen8: Don't allocate hiz miptree structure
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 29 Jun 2014 19:06:33 +0000 (12:06 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 10 Mar 2015 06:56:51 +0000 (23:56 -0700)
commit6626e3548b5365dcb284504ea863d2ccdba2c7a5
treee507aeb7acdd7f28393d6fed4466bc23a469310d
parent81124aefe8a2f61d5af4257e5b9989019bfed518
i965/gen8: Don't allocate hiz miptree structure

We now skip allocating a hiz miptree for gen8. Instead, we calculate
the required hiz buffer parameters and allocate a bo directly.

v2:
 * Update hz_height calculation as suggested by Topi
v3:
 * Bail if we failed to create the bo (Ben)
v4:
 * CEILING => DIV_ROUND_UP
 * Make sure mt->logical_depth0 being 0 would not cause trouble
 * Fail if Y tiling is not returned

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67564
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c