drm/i915: Add the gen12_needs_ccs_aux_inv helper
authorAndi Shyti <andi.shyti@linux.intel.com>
Tue, 25 Jul 2023 00:19:45 +0000 (02:19 +0200)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 1 Aug 2023 09:44:48 +0000 (10:44 +0100)
commitb2f59e9026038a5bbcbc0019fa58f963138211ee
tree7a7864032c64d8cbc1090570dba41892112676f1
parentd14560ac1b595aa2e792365e91fea6aeaee66c2b
drm/i915: Add the gen12_needs_ccs_aux_inv helper

We always assumed that a device might either have AUX or FLAT
CCS, but this is an approximation that is not always true, e.g.
PVC represents an exception.

Set the basis for future finer selection by implementing a
boolean gen12_needs_ccs_aux_inv() function that tells whether aux
invalidation is needed or not.

Currently PVC is the only exception to the above mentioned rule.

Requires: 059ae7ae2a1c ("drm/i915/gt: Cleanup aux invalidation registers")
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: <stable@vger.kernel.org> # v5.8+
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230725001950.1014671-3-andi.shyti@linux.intel.com
(cherry picked from commit c827655b87ad201ebe36f2e28d16b5491c8f7801)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/gt/gen8_engine_cs.c