iris: Refactor the assignment to possible_usages
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 20 Jul 2021 18:46:51 +0000 (11:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 Oct 2021 20:21:26 +0000 (20:21 +0000)
commit7daff157bb3474373a03fceb1ffd2c98f115653e
tree222f9c6170a63836a54e184d20c504c5446b9f96
parent114f87c1c70e56587cbc3d53f7593b633a008028
iris: Refactor the assignment to possible_usages

* Make the outer if-ladder dependent on the has_* variables.
* Make the possible_usages assignments happen at the same nesting level.
* Move the combined HIZ/MCS assert closer to relevant if-else blocks.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11960>
src/gallium/drivers/iris/iris_resource.c