]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/i915/fbc: introduce HAS_FBC_DIRTY_RECT() for FBC dirty rect support
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Fri, 28 Feb 2025 09:37:58 +0000 (11:37 +0200)
committerMika Kahola <mika.kahola@intel.com>
Mon, 3 Mar 2025 12:45:42 +0000 (14:45 +0200)
Introduce a macro to check if the platform supports FBC dirty
rect capability.

v2: - update to the patch subject

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250228093802.27091-6-vinod.govindapillai@intel.com
drivers/gpu/drm/i915/display/intel_display_device.h

index fc33791f02b9de678322372cc2bec7f71578ee9c..717286981687a2d6e254d3f555a6c61de695673d 100644 (file)
@@ -163,6 +163,7 @@ struct intel_display_platforms {
 #define HAS_DSC(__display)             (DISPLAY_RUNTIME_INFO(__display)->has_dsc)
 #define HAS_DSC_MST(__display)         (DISPLAY_VER(__display) >= 12 && HAS_DSC(__display))
 #define HAS_FBC(__display)             (DISPLAY_RUNTIME_INFO(__display)->fbc_mask != 0)
+#define HAS_FBC_DIRTY_RECT(__display)  (DISPLAY_VER(__display) >= 30)
 #define HAS_FPGA_DBG_UNCLAIMED(__display)      (DISPLAY_INFO(__display)->has_fpga_dbg)
 #define HAS_FW_BLC(__display)          (DISPLAY_VER(__display) >= 3)
 #define HAS_GMBUS_IRQ(__display)       (DISPLAY_VER(__display) >= 4)