intel/isl: Allow multisampling with ISL_FORMAT_HiZ
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Sep 2016 01:57:18 +0000 (18:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Oct 2016 21:53:01 +0000 (14:53 -0700)
commitb1311a48e093ebe7ee6162e2afe1886728866918
tree95fbcf9ede2e94e03e8626c63522c49fd696f4f8
parentbaade41a5c0c0342ad9db4b5123714dcedc66937
intel/isl: Allow multisampling with ISL_FORMAT_HiZ

HiZ buffers can be multisampled and, on Broadwell and earlier, simply using
interleaved multisampling with a compression block size of 8x4 samples
yields the correct HiZ surface size calculations.  Unfortunately,
choose_msaa_layout was rejecting multisampled HiZ buffers because of format
checks.  Now that we have a simple helper for determining if a format
supports multisampling, that's an easy enough issue to fix.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/isl/isl.c
src/intel/isl/isl_format.c