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 891E5CD4F50 for ; Thu, 13 Nov 2025 07:59:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33CBC10E514; Thu, 13 Nov 2025 07:59:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="EyUCecza"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4D15710E350 for ; Thu, 13 Nov 2025 07:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763020739; x=1794556739; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=83Ghp8o4jqhs0OEVao1pkH2jmQ6DyRb29Hp59uLUrr8=; b=EyUCeczarYAXOpNXXIdLCMzj3fO8EOQOXFAEXPKBGhAo5Ku04oJDqrp+ wOYc4rfhVMlCsbiUMqAdY4jhk1/nikf4Q7JAdy9Hj2Cvr8uB27J9oAPYL 0WyccefKD1y2YSIpcvWwpQHiVmGl2jlwBDrVTIcwtD8MHM1M/1zxyWNYk XCZ2gPn1oNzd5yNVt445QuTo2Vsj47PMAxlAmK+aTTBau0c+zoeiOqFq+ +Lp2rGu21PWwxocfGO0cgwq45zBTGZhQcQHa4MDOBcESehi1bmNT9SiOk eDnZUdzLOALSVzQDC6kw/MHjwuCqX4DN0bsQEqaSLWcKARNIxI5igqt2v Q==; X-CSE-ConnectionGUID: AiuwW0QQSlqrmKNYFaAymQ== X-CSE-MsgGUID: Wuz/EqHJSma5BxDvMwmiAQ== X-IronPort-AV: E=McAfee;i="6800,10657,11611"; a="64298403" X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="64298403" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2025 23:58:54 -0800 X-CSE-ConnectionGUID: DENMdsZ+RY6O4GFWcjlg+Q== X-CSE-MsgGUID: RWkPavdYTmilawmJL8oveA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="189230403" Received: from sowmi-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.56]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2025 23:58:53 -0800 From: Sowmiya S To: igt-dev@lists.freedesktop.org Cc: suraj.kandpal@intel.com, Sowmiya S Subject: [PATCH i-g-t v1 1/9] tests/kms_writeback: Add support for intel-specific formats Date: Thu, 13 Nov 2025 13:45:15 +0530 Message-ID: <20251113081523.3088787-2-sowmiya.s@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251113081523.3088787-1-sowmiya.s@intel.com> References: <20251103103842.3025204-1-sowmiya.s@intel.com> <20251113081523.3088787-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