Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH v3] tests/kms_plane: Handle hw without legacy gamma support
@ 2023-08-07 16:54 Rob Clark
  2023-08-07 18:29 ` Juha-Pekka Heikkila
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Rob Clark @ 2023-08-07 16:54 UTC (permalink / raw)
  To: igt-dev; +Cc: Rob Clark

From: Rob Clark <robdclark@chromium.org>

Skip the tests which require legacy gamma, instead of failing, if the hw
does not support legacy gamma.

v2: igt_require(lut_size > 0) instead
v3: simplify patch

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

diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 67cff61d6cd1..44cad2bf2491 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -469,6 +469,8 @@ static void set_legacy_lut(data_t *data, enum pipe pipe,
 	lut_size = crtc->gamma_size;
 	drmModeFreeCrtc(crtc);
 
+	igt_require(lut_size > 0);
+
 	lut = malloc(sizeof(uint16_t) * lut_size);
 
 	for (i = 0; i < lut_size; i++)
-- 
2.41.0

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

end of thread, other threads:[~2023-08-07 23:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 16:54 [igt-dev] [PATCH v3] tests/kms_plane: Handle hw without legacy gamma support Rob Clark
2023-08-07 18:29 ` Juha-Pekka Heikkila
2023-08-07 18:48   ` Rob Clark
2023-08-07 20:01     ` Rob Clark
2023-08-07 18:50 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane: Handle hw without legacy gamma support (rev3) Patchwork
2023-08-07 19:18 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-08-07 23:52 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

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