From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id EBD7010EED8 for ; Fri, 18 Feb 2022 09:10:24 +0000 (UTC) From: Jeevan B To: igt-dev@lists.freedesktop.org Date: Fri, 18 Feb 2022 14:39:21 +0530 Message-Id: <20220218090936.15857-2-jeevan.b@intel.com> In-Reply-To: <20220218090936.15857-1-jeevan.b@intel.com> References: <20220218090936.15857-1-jeevan.b@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v4 01/16] lib/intel_device_info: Add a flag to indicate tiling 4 support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: juha-pekka.heikkila@intel.com, petri.latvala@intel.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Mika Kahola Add tiling 4 support flag for DG2 platform. This is similar that we have defined in kernel i915_pci.c intel_device_info() for DG2. v2: rebase Signed-off-by: Jeevan B Signed-off-by: Mika Kahola Signed-off-by: Juha-Pekka Heikkilä --- lib/intel_chipset.h | 3 +++ lib/intel_device_info.c | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index e27b9aab..db75a829 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -40,6 +40,7 @@ struct intel_device_info { unsigned graphics_ver; unsigned display_ver; unsigned gt; /* 0 if unknown */ + bool has_4tile : 1; bool has_flatccs; bool is_mobile : 1; bool is_whitney : 1; @@ -216,6 +217,8 @@ void intel_check_pch(void); IS_CHERRYVIEW(devid) || \ IS_BROXTON(devid))) +#define HAS_4TILE(devid) (intel_get_device_info(devid)->has_4tile) + #define HAS_FLATCCS(devid) (intel_get_device_info(devid)->has_flatccs) #endif /* _INTEL_CHIPSET_H */ diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 9f191367..e55841df 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -393,6 +393,7 @@ static const struct intel_device_info intel_dg1_info = { static const struct intel_device_info intel_dg2_info = { .graphics_ver = 12, .display_ver = 13, + .has_4tile = true, .is_dg2 = true, .codename = "dg2", .has_flatccs = true, -- 2.17.1