i965/mt: Disable HiZ when sharing depth buffer externally (v2)
authorChad Versace <chadversary@chromium.org>
Sat, 10 Dec 2016 00:22:52 +0000 (16:22 -0800)
committerChad Versace <chadversary@chromium.org>
Sat, 10 Dec 2016 16:05:11 +0000 (08:05 -0800)
commit42011be1e27f59d750b781c10766e19ec0ee6ff5
tree414501ee4a78845dca14f9847bd22cf84630fbcf
parent1c8be049bea786c2c054a770025976beba5b8636
i965/mt: Disable HiZ when sharing depth buffer externally (v2)

intel_miptree_make_shareable() discarded and disabled CCS. Fix it so
that it discards and disables HiZ too.

Fixes dEQP-EGL.functional.image.render_multiple_contexts.gles2_renderbuffer_depth16_depth_buffer
on Skylake.

v2: Actually do what the commit message says. Discard the HiZ buffer.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=98329
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Nanley Chery <nanley.g.chery@intel.com
Cc: Haixia Shi <hshi@chromium.org>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/intel_mipmap_tree.c