drm/i915/fbc: Moved fence related code away from intel_fbc
authorJouni Högander <jouni.hogander@intel.com>
Wed, 14 Jun 2023 05:17:31 +0000 (08:17 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 7 Aug 2023 05:28:28 +0000 (08:28 +0300)
commit0701760ec0e910ab3c399b607e55346d6c57d244
treef1d4d6c52bcd7be8de9d9d14851894e4e770ea9d
parenta6989c86090e50f03b6b1465053ed6796847bd1d
drm/i915/fbc: Moved fence related code away from intel_fbc

As a preparation for Xe move HW fence details away from intel_fbc code.
Add new functions to check support for legacy fencing and fence id and use
these in fbc code. Xe doesn't support legacy fencing.

v2: Fix intel_gt_support_legacy_fencing macro

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230614051731.745821-4-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/gt/intel_gt_types.h
drivers/gpu/drm/i915/i915_vma.h