iris: Move some BO setup to iris_resource_init_aux_buf
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 20 Oct 2021 00:26:34 +0000 (17:26 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Dec 2021 04:14:20 +0000 (04:14 +0000)
commit4027337004e900b3b98cc4ca7e44b60322dca891
treedd0f52ec42a1f270e8b916c2ee67529948172183
parent9acf0316ec1051d85bfd731830c8fa6fba7ec4a9
iris: Move some BO setup to iris_resource_init_aux_buf

To ease verification, place the assignment and reference of the aux BO
right before the same operations are done for the clear color BO. Also,
move the call to map_aux_addresses that's in the same if-block.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13555>
src/gallium/drivers/iris/iris_resource.c