anv: Flatten the logic add_aux_surface_if_supported (v3)
authorChad Versace <chad@kiwitree.net>
Wed, 12 Feb 2020 22:31:52 +0000 (14:31 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:40:41 +0000 (23:40 +0000)
commitc652ff8caa8fc7608fc6b98b56324ffc230c118f
treefefd7bbe5efaf02fc58e93c9b1c71a6c667f4b60
parent615c65ba1ba6a79536cbced85c13dafbd8a33375
anv: Flatten the logic add_aux_surface_if_supported (v3)

Reduces the function's max indentation level from 5 to 3 inside the big
'if' tree. And enables more comments to be attached to the condition
they describe.

v2:
  - Add missing DEBUG_NO_RBC check.
v3:
  - Return early on DISABLE_AUX_BIT.
  - Restore original order of gen7 hiz check.

Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4096>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4096>
src/intel/vulkan/anv_image.c