From: Zack Rusin <zack@kde.org>
To: igt-dev@lists.freedesktop.org
Cc: banackm@vmware.com, krastevm@vmware.com, iforbes@vmware.com,
mombasawalam@vmware.com
Subject: [igt-dev] [PATCH i-g-t v3 8/8] lib: Fix igt_kms for drivers with 8 crtc's
Date: Tue, 11 Apr 2023 22:33:29 -0400 [thread overview]
Message-ID: <20230412023329.465551-9-zack@kde.org> (raw)
In-Reply-To: <20230412023329.465551-1-zack@kde.org>
From: Zack Rusin <zackr@vmware.com>
To avoid crashes in multiple tests on vmwgfx we need to extend the
number of available pipe's to be at least as big as the the number
returned by the virtualized drivers (which is 8).
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
---
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 50655f13..a23999cb 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -840,7 +840,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 2b917925..d3a39e24 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.39.2
next prev parent reply other threads:[~2023-04-12 2:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-12 2:33 [igt-dev] [PATCH i-g-t v3 0/8] Add vmwgfx support Zack Rusin
2023-04-12 2:33 ` [igt-dev] [PATCH i-g-t v3 1/8] lib/svga: Add generated headers for the svga device Zack Rusin
2023-04-12 2:33 ` [igt-dev] [PATCH i-g-t v3 2/8] lib: Add vmwgfx support Zack Rusin
2023-04-12 2:33 ` [igt-dev] [PATCH i-g-t v3 3/8] tests/vmwgfx: Add triangle test Zack Rusin
2023-04-12 2:33 ` [igt-dev] [PATCH i-g-t v3 4/8] tests/vmwgfx: Add execution buffer test Zack Rusin
2023-04-12 2:33 ` [igt-dev] [PATCH i-g-t v3 5/8] tests/vmwgfx: Add surface copy test Zack Rusin
2023-04-12 2:33 ` [igt-dev] [PATCH i-g-t v3 6/8] tests/vmwgfx: Add mob stress test Zack Rusin
2023-04-12 2:33 ` [igt-dev] [PATCH i-g-t v3 7/8] tests/vmwgfx: Add reference counting tests Zack Rusin
2023-04-12 2:33 ` Zack Rusin [this message]
2023-04-12 3:11 ` [igt-dev] ✓ Fi.CI.BAT: success for Add vmwgfx support (rev3) Patchwork
2023-04-12 14:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-04-12 16:32 ` [igt-dev] [PATCH i-g-t v3 0/8] Add vmwgfx support Kamil Konieczny
2023-04-12 17:30 ` Zack Rusin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230412023329.465551-9-zack@kde.org \
--to=zack@kde.org \
--cc=banackm@vmware.com \
--cc=iforbes@vmware.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=krastevm@vmware.com \
--cc=mombasawalam@vmware.com \
--cc=zackr@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox