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)
committerAndi Shyti <andi.shyti@linux.intel.com>
Wed, 26 Jul 2023 12:35:29 +0000 (14:35 +0200)
commitc827655b87ad201ebe36f2e28d16b5491c8f7801
tree1ec4e0231fe4427a6d485c7b6081d121a303d3b0
parent2f0b927d3ca3440445975ebde27f3df1c3ed6f76
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
drivers/gpu/drm/i915/gt/gen8_engine_cs.c