i965/miptree: Add an intel_tiling_supports_hiz helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Jul 2017 15:01:34 +0000 (08:01 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Jul 2017 20:48:38 +0000 (13:48 -0700)
commit138316cc995182b0a3cd72e4ec06b67651a99a2c
tree115aa99dcb62010e398941cb1ace6d522ba40f3b
parente6b8877a54a86374548c8529bba4f1408b2b2b90
i965/miptree: Add an intel_tiling_supports_hiz helper

We need this split for the same reason that we need the split for CCS:
intel_miptree_supports_hiz is called *before* we choose the actual
tiling.  Adding a tiling_supports_hiz helper lets choose_aux_usage
more accurately decide whether or not to enable hiz.  In particular,
this prevents us from enabling HiZ on linear depth buffers.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c