iris: Clean up iris_sample_with_depth_aux()
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Aug 2022 01:41:25 +0000 (18:41 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 17 Aug 2022 01:20:25 +0000 (01:20 +0000)
commit781f5fc499b18b16a8eba42faa41334440e7c8d8
treeeea081bcdca92dcbcbfb8aca05421a2d22738412
parentbf93229c859d7315a6332ebeee52a56f848f33c1
iris: Clean up iris_sample_with_depth_aux()

The majority of the logic here was for the Gfx8-9 sample-from-hiz
hardware feature, which only applies to AUX_USAGE_HIZ, and neither
of the combined HiZ+CCS modes.  So, reorganize the function to put
the logic for each case in the case itself.

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4674>
src/gallium/drivers/iris/iris_resolve.c