iris: Use the aux BO and surf less during init
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 19 Oct 2021 15:12:30 +0000 (08:12 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Dec 2021 04:14:20 +0000 (04:14 +0000)
commit9acf0316ec1051d85bfd731830c8fa6fba7ec4a9
treeb4bbe9635b8c3804985c9ac558d40cea50bc13dc
parent02bbdb0e92006a37d8b2d75e6d95475262199f92
iris: Use the aux BO and surf less during init

res->aux.bo and res->aux.surf will be NULL and zeroed, respectively, for
CCS on XeHP. Move and modify iris_resource_init_aux_buf to support this.

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