i965/miptree: Create a hiz mcs type
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 21 Oct 2016 14:10:56 +0000 (15:10 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 8 Nov 2016 16:13:57 +0000 (16:13 +0000)
commitc53e9c97802ce3041d2da380f90ec7fc41a9f5b0
tree6e7666fa800f67a112343896661e27efb655137e
parent36d1c555edef238648cf18f3a3adb4ea3805f1b9
i965/miptree: Create a hiz mcs type

This seems counter to the goal of consolidating hiz, mcs, and later ccs buffers.
Unfortunately, hiz on gen6 is a thing the code supports, and this wart will be
helpful to achieve that. Overall, I believe it does help unify AUX buffers on
gen7+.

I updated the size field which I introduced in the previous patch, even though
we have no use for it.

XXX: As I mentioned in the last patch, the height given to the MCS buffer
allocation in intel_miptree_alloc_mcs() looks wrong, but I don't claim to fully
understand how the MCS buffer is laid out.

v2: rebase on master (Lionel)

Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> (v1)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (v2)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/gen7_misc_state.c
src/mesa/drivers/dri/i965/gen8_depth_state.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h