From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from letterbox.kde.org (letterbox.kde.org [46.43.1.242]) by gabe.freedesktop.org (Postfix) with ESMTPS id A50C910E0F5 for ; Tue, 29 Nov 2022 17:27:30 +0000 (UTC) From: Zack Rusin To: igt-dev@lists.freedesktop.org Date: Tue, 29 Nov 2022 12:27:17 -0500 Message-Id: <20221129172718.151773-3-zack@kde.org> In-Reply-To: <20221129172718.151773-1-zack@kde.org> References: <20221129172718.151773-1-zack@kde.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 2/3] lib/igt_kms: vmwgfx returns 8 crtc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Zack Rusin Cc: krastevm@vmware.com, banackm@vmware.com, mombasawalam@vmware.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Zack Rusin To avoid crashes in multiple tests we need to extend the number of available pipe's to match the numbers returned by the virtualized drivers. Signed-off-by: Zack Rusin --- lib/igt_kms.c | 2 +- lib/igt_kms.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 921a623d..f9ee6328 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -807,7 +807,7 @@ static igt_plane_t *igt_get_assigned_primary(igt_output_t *output, igt_pipe_t *p */ const char *kmstest_pipe_name(enum pipe pipe) { - static const char str[] = "A\0B\0C\0D\0E\0F"; + static const char str[] = "A\0B\0C\0D\0E\0F\0G\0H"; _Static_assert(sizeof(str) == IGT_MAX_PIPES * 2, "Missing pipe name"); diff --git a/lib/igt_kms.h b/lib/igt_kms.h index b09441d0..f330d97a 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -62,6 +62,8 @@ enum pipe { PIPE_D, PIPE_E, PIPE_F, + PIPE_G, + PIPE_H, IGT_MAX_PIPES }; const char *kmstest_pipe_name(enum pipe pipe); -- 2.37.2