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 A417ECD4F5F for ; Thu, 13 Nov 2025 08:40:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 417E010E66C; Thu, 13 Nov 2025 08:40:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Q2XaBjLf"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 03D3210E66C for ; Thu, 13 Nov 2025 08:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763023207; x=1794559207; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=83Ghp8o4jqhs0OEVao1pkH2jmQ6DyRb29Hp59uLUrr8=; b=Q2XaBjLfeaRZwx93L8IFKO3A/NDVB986vivKF6+SKXGUnE3nTGEVoJJ+ NNxqF+HfaXl41IfdCNGiX79VqmSobFu+Yj1eAJUEG9FsYSjHA2qeycozR mCdkIVMJi10sUB8P6/2vCKr79ph3kw2mjATsY7yNvl/HnnMXuIRLirGyN jwthVmbXY6vHFy94rcGQbSHXMJlYENZPKZfPUA3k+0XofAS6796jPOldD lPI0lAYzO3FGdnhkbChO/40r+ufsrM5HvuOoyzeBIaC0rwV3M9FAN5+BV y4RHm5x3acc12J0OsbbEJePV6nprVIPLXbWfJ1Icj32/OVdqU1dIUvPMT Q==; X-CSE-ConnectionGUID: edFX8a4aTP+bCkDKUNhCTw== X-CSE-MsgGUID: Ugh5qYC2QaC43juUOaJZHQ== X-IronPort-AV: E=McAfee;i="6800,10657,11611"; a="67696665" X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="67696665" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 00:40:07 -0800 X-CSE-ConnectionGUID: er25XCHmR96nT6zAsA38Ug== X-CSE-MsgGUID: O3wki5naQIOfsbJQ055l2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="194434734" Received: from sowmi-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.56]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 00:40:05 -0800 From: Sowmiya S To: igt-dev@lists.freedesktop.org Cc: swati2.sharma@intel.com, suraj.kandpal@intel.com, Sowmiya S Subject: [PATCH i-g-t v2 1/9] tests/kms_writeback: Add support for intel-specific formats Date: Thu, 13 Nov 2025 14:27:53 +0530 Message-ID: <20251113085801.3088957-2-sowmiya.s@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251113085801.3088957-1-sowmiya.s@intel.com> References: <20251113085801.3088957-1-sowmiya.s@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Integrated BGR formats supported by the intel into the supported format list Signed-off-by: Sowmiya S --- tests/kms_writeback.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c index 1b81088d7..de0f67a58 100644 --- a/tests/kms_writeback.c +++ b/tests/kms_writeback.c @@ -90,6 +90,15 @@ static data_t data; enum { XRGB8888 = 1 << 0, XRGB2101010 = 1 << 1, + XBGR8888 = 1 << 2, + XBGR2101010 = 1 << 3, +}; + +const uint32_t fourcc[] = { + DRM_FORMAT_XRGB8888, + DRM_FORMAT_XRGB2101010, + DRM_FORMAT_XBGR8888, + DRM_FORMAT_XBGR2101010, }; static bool check_writeback_config(igt_display_t *display, igt_output_t *output, @@ -101,11 +110,6 @@ static bool check_writeback_config(igt_display_t *display, igt_output_t *output, int width, height, ret; uint16_t i; - const uint32_t fourcc[] = { - DRM_FORMAT_XRGB8888, - DRM_FORMAT_XRGB2101010, - }; - igt_output_override_mode(output, &override_mode); width = override_mode.hdisplay; -- 2.43.0