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 9289ECD4F5E for ; Thu, 13 Nov 2025 08:18:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28EB510E358; Thu, 13 Nov 2025 08:18:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="oGzHALeM"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id C2FF810E09A for ; Thu, 13 Nov 2025 08:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763021903; x=1794557903; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EbCic03XMXyzD6jTaXMO1qX4mWVbdsjafzj0u/8xdcU=; b=oGzHALeMlOWaECm2pKFNqhKptwoW+pzGrmfZDO800KfCSeFOS/TaggvJ JQ73+uoEnWF18qCLrhuUWYkeykNRfKnzZ7lyNEXAd1g7mK3JPltnZtlg4 n5fHDrDdyoWHBsNd8H+bCKblRV/zyFGvEq+mIiwCe0eaJVF/EBX2r9Z+7 xVHonAc/FFIE/LwDv0OeNWZd3vqd/DLGa926Y5+O8GhniuKltE90n+qsm tiirxk3Q3kvEADBRsNn92sAcbzHxA0E/HKPu8+fWWfqtMGtHr0FkKfzhz cWaIEC6XS3oIX/TaS8DoHVQQmQ0vIUQFzZczYBsWyv+Waa50JMrR9PwTV g==; X-CSE-ConnectionGUID: 9dMWU+BJT6K1pMqsuuSFhQ== X-CSE-MsgGUID: swjNW5KlTkugrbCGYdcABw== X-IronPort-AV: E=McAfee;i="6800,10657,11611"; a="65000537" X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="65000537" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 00:18:22 -0800 X-CSE-ConnectionGUID: 7C00YA76TCC1Jmvdf3SzVQ== X-CSE-MsgGUID: KMkf2fIJTWSy7Qiy8KG+JQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="212822415" Received: from sowmi-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.74.56]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 00:18:21 -0800 From: Sowmiya S To: igt-dev@lists.freedesktop.org Cc: Sowmiya S Subject: [PATCH i-g-t v2 7/9] tests/kms_writeback: FB creation within subtest Date: Thu, 13 Nov 2025 14:05:53 +0530 Message-ID: <20251113083555.3088873-8-sowmiya.s@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251113083555.3088873-1-sowmiya.s@intel.com> References: <20251103103842.3025204-1-sowmiya.s@intel.com> <20251113083555.3088873-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" Moved input framebuffer creation into the subtest to allow platform-specific handling. This ensures that the correct format and configuration are applied based on the target platform. Signed-off-by: Sowmiya S --- tests/kms_writeback.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c index d031a9f54..f724cd33f 100644 --- a/tests/kms_writeback.c +++ b/tests/kms_writeback.c @@ -688,12 +688,25 @@ igt_main_args("b:c:f:dl", long_options, help_str, opt_handler, NULL) "(output framebuffer and fence); this test goes through" "the combination of possible bad options"); igt_subtest("writeback-invalid-parameters") { + uint32_t format; igt_fb_t invalid_output_fb; igt_skip_on(data.dump_check || data.list_modes); + if (is_intel_device(display.drm_fd)) + format = DRM_FORMAT_XBGR8888; + else + format = DRM_FORMAT_XRGB8888; + + fb_id = igt_create_fb(display.drm_fd, mode.hdisplay, + mode.vdisplay, + format, + DRM_FORMAT_MOD_LINEAR, + &input_fb); + igt_require(fb_id > 0); + fb_id = igt_create_fb(display.drm_fd, mode.hdisplay / 2, mode.vdisplay / 2, - DRM_FORMAT_XRGB8888, + format, DRM_FORMAT_MOD_LINEAR, &invalid_output_fb); igt_require(fb_id > 0); -- 2.43.0