From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2041.outbound.protection.outlook.com [40.107.92.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id A592E10E43E for ; Wed, 14 Dec 2022 18:19:37 +0000 (UTC) From: Alex Hung To: Date: Wed, 14 Dec 2022 11:19:06 -0700 Message-ID: <20221214181906.561644-1-alex.hung@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Subject: [igt-dev] [PATCH][V2] tests/kms_bw: Test outputs with fb of the same resolutions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: The hardcoded fb resolution (1920x1080) is replaced by the output resolution. Signed-off-by: Alex Hung --- [V2] Drop PATCH 2 tests/kms_bw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kms_bw.c b/tests/kms_bw.c index 2a8df5b3..27100587 100644 --- a/tests/kms_bw.c +++ b/tests/kms_bw.c @@ -167,8 +167,8 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo force_output_mode(data, output, mode); - igt_create_color_fb(display->drm_fd, test_mode[0].hdisplay, - test_mode[0].vdisplay, DRM_FORMAT_XRGB8888, + igt_create_color_fb(display->drm_fd, mode->hdisplay, + mode->vdisplay, DRM_FORMAT_XRGB8888, DRM_FORMAT_MOD_NONE, 1.f, 0.f, 0.f, &buffer[i]); -- 2.38.1