iris: Drop a GFX12_CCS_E check in can_fast_clear_color
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 18 May 2023 20:11:07 +0000 (13:11 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 23:39:38 +0000 (23:39 +0000)
The 8 bpp restriction isn't specific to the automatic fast clear
behavior of GFX12_CCS_E. It is applicable to both GFX12_CCS_E and CCS_E.
Drop the aux usage check completely.

Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23220>

src/gallium/drivers/iris/iris_clear.c

index e7e896d..c3400c6 100644 (file)
@@ -134,7 +134,7 @@ can_fast_clear_color(struct iris_context *ice,
     * to avoid stomping on other LODs.
     */
    if (level > 0 && util_format_get_blocksizebits(p_res->format) == 8 &&
-       res->aux.usage == ISL_AUX_USAGE_GFX12_CCS_E && p_res->width0 % 64) {
+       p_res->width0 % 64) {
       return false;
    }