From patchwork Thu Feb 13 13:25:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Govindapillai, Vinod" X-Patchwork-Id: 13973267 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4558C021A5 for ; Thu, 13 Feb 2025 13:26:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3499810EAA6; Thu, 13 Feb 2025 13:26:37 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="P3leKQ43"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2B9B210EA93; Thu, 13 Feb 2025 13:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1739453197; x=1770989197; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+QTREULiG8TXn0zDZKiENuzoqdzMfJ7WDZiETu7q+KA=; b=P3leKQ43vsoT2WwwojWdxyAcfUen6Y5brA14cl6Kpqs2KvmOMqfAI6sL lYrPAZpDDzWcuEYAc6bghYxvW6bsEkfVoEpYiiomn1oYJfMUOGUJV7fWc fHS1nP2q6Py+IpoyuljJNyfyPcqG5106F+caXHpI2mogHmV3AKnJrvfCO BQnujDJKW7h1ieKFg1zXV9X1VWDG9gQHslsy9sxqRaXZU2XQGg5ag3TLr KlX9kKffQkaDdwcMJ/geGAylepFz6XMVttJz6wayPvNQ4M9RTUzj5W3PX OFyZS5ShF449CaA4sl1MWIsPXA3kEGvYaj9PN9EYf1QrVC0fVCE229zJJ g==; X-CSE-ConnectionGUID: IzHZ2rkOTcO2W1VTiSN5fA== X-CSE-MsgGUID: EvuRYQLyTMu5KbO3NJC1Cg== X-IronPort-AV: E=McAfee;i="6700,10204,11344"; a="40025368" X-IronPort-AV: E=Sophos;i="6.13,282,1732608000"; d="scan'208";a="40025368" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2025 05:26:36 -0800 X-CSE-ConnectionGUID: dtW1NJ7VShGBHSYqvi8KaQ== X-CSE-MsgGUID: uBfU/ollRDWJnf4rB8l5Uw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,282,1732608000"; d="scan'208";a="113014268" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO vgovind2-mobl3.intel.com) ([10.245.246.251]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2025 05:26:33 -0800 From: Vinod Govindapillai To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, vinod.govindapillai@intel.com, ville.syrjala@intel.com, santhosh.reddy.guddati@intel.com, jani.saarinen@intel.com Subject: [PATCH v8 4/7] drm/i915/fbc: introduce HAS_FBC_DIRTY_RECT() for FBC dirty rect support Date: Thu, 13 Feb 2025 15:25:55 +0200 Message-ID: <20250213132559.136815-5-vinod.govindapillai@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250213132559.136815-1-vinod.govindapillai@intel.com> References: <20250213132559.136815-1-vinod.govindapillai@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Introduce a macro to check if the platform supports FBC dirty rect capability. v2: - update to the patch subject Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_display_device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display/intel_display_device.h index fc33791f02b9..717286981687 100644 --- a/drivers/gpu/drm/i915/display/intel_display_device.h +++ b/drivers/gpu/drm/i915/display/intel_display_device.h @@ -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)