Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/dumb_buffer: Fix invalid bpp subtest
@ 2024-08-19 20:26 Rob Clark
  2024-08-19 23:01 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Rob Clark @ 2024-08-19 20:26 UTC (permalink / raw)
  To: igt-dev; +Cc: Rob Clark

From: Rob Clark <robdclark@chromium.org>

Only zero is actually considered an invalid value by the kernel.

Signed-off-by: Rob Clark <robdclark@chromium.org>
---
 tests/dumb_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/dumb_buffer.c b/tests/dumb_buffer.c
index 1d4bf296c53e..e1c18c70b09b 100644
--- a/tests/dumb_buffer.c
+++ b/tests/dumb_buffer.c
@@ -143,7 +143,7 @@ static void invalid_dimensions_test(int fd)
 	memset(&create, 0, sizeof(create));
 	create.width = 4032;
 	create.height = 2016;
-	create.bpp = 24;
+	create.bpp = 0;
 	igt_assert_eq(__dumb_create(fd, &create), -EINVAL);
 
 	create.bpp = 32;
-- 
2.46.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-20 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19 20:26 [PATCH] tests/dumb_buffer: Fix invalid bpp subtest Rob Clark
2024-08-19 23:01 ` ✓ CI.xeBAT: success for " Patchwork
2024-08-19 23:10 ` ✓ Fi.CI.BAT: " Patchwork
2024-08-20  6:56 ` ✗ CI.xeFULL: failure " Patchwork
2024-08-20 11:42 ` ✗ Fi.CI.IGT: " Patchwork
2024-08-20 12:49 ` [PATCH] " Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox