anv: Rework depth_stencil_attachment_compute_aux_usage
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 25 Mar 2020 20:31:55 +0000 (15:31 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 22:45:39 +0000 (22:45 +0000)
commit3fe45a9b6cd956cf5215d9a382de4dde06eab1a8
tree0926503617e17bd4398ee2aa8e025e8b484c35ef
parent26e6da90ab387f50be40ca5ff16f143bc9555cbd
anv: Rework depth_stencil_attachment_compute_aux_usage

Instead of making it a function that pretends to choose aux usage (which
isn't what it does at all), make it a function which returns whether or
not we want to do a fast clear.  This is far more accurate to the
purpose of the function.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4393>
src/intel/vulkan/genX_cmd_buffer.c