iris: Avoid extra CCS_E flushes for aux mode changes
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 24 May 2023 17:05:45 +0000 (10:05 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 23:39:39 +0000 (23:39 +0000)
commit39ec3c180e37ca910bbd32da08ea4dd9be48da18
treed4a5385967edb23bb514748ded92f1603e7af264
parent0c204277e71eb4a08aec33f55a41ad12f5d44594
iris: Avoid extra CCS_E flushes for aux mode changes

We're going to start toggling between FCV_CCS_E and CCS_E. When
switching aux modes, flush_previous_aux_mode would typically perform
cache flushes for good reason. In the case of switching between CCS_E
with FCV on vs off, we haven't found aux mode flushing to matter. Treat
both CCS_E variants as equivalent to avoid extra cache flushing.

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