iris: Init CCS_E to COMPRESSED_NO_CLEAR for XeHP
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 12 Apr 2023 02:10:46 +0000 (19:10 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 19:54:02 +0000 (19:54 +0000)
commita0e51fcc4eccf1c543c098deb615013953edab0d
treeb13b6a64fa4718284c42007391a57408d93a6568
parentf220f3fdaed5e15fa65644164fe8b1e1b9ed5064
iris: Init CCS_E to COMPRESSED_NO_CLEAR for XeHP

Use COMPRESSED_NO_CLEAR for the initial CCS aux state instead of
COMPRESSED_CLEAR. This removes a dependency on the initial clear color,
meaning that some resolves related to clear color management are now
avoided.

In the Car Chase benchmark, this avoids all 50 CCS resolves. These only
happen during the warm-up phase of the benchmark, so I'm not sure there
is an impact on FPS. This was tested on a DG2 in small-BAR mode.

Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22857>
src/gallium/drivers/iris/iris_resource.c