anv: Use isl_aux_state for HiZ resolves
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 6 Jan 2020 18:49:51 +0000 (12:49 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 17:42:36 +0000 (17:42 +0000)
commitf8a4de6316f2b9b298a63dcb3bc6fa216d0076ad
treeba0201f2216d72c80f94a78f2f64de5adbf13db0
parent9a1232a745cba8f6782ae3833aa2cbdba710fd80
anv: Use isl_aux_state for HiZ resolves

Rather than looking at the aux usage, we look at the isl_aux_state which
provides us with more detailed information.  This commit adds a couple
helpers to isl which let us quickly determine if we have valid depth/hiz
on the initial layout and if we need valid depth/hiz for the final
layout.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2605>
src/intel/isl/isl.h
src/intel/vulkan/genX_cmd_buffer.c