Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: don't mix hdr and sdr planes
@ 2020-09-14 14:16 Juha-Pekka Heikkila
  2020-09-14 15:32 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Juha-Pekka Heikkila @ 2020-09-14 14:16 UTC (permalink / raw)
  To: igt-dev

Run test only on hdr planes as that's where crc to compare
against is gotten from. Also reset display in beginning of test.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 tests/kms_available_modes_crc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/kms_available_modes_crc.c b/tests/kms_available_modes_crc.c
index 09785ed8..be9689e1 100644
--- a/tests/kms_available_modes_crc.c
+++ b/tests/kms_available_modes_crc.c
@@ -43,7 +43,6 @@ typedef struct {
 	bool separateprimaryplane;
 
 	uint32_t gem_handle;
-	uint32_t gem_handle_yuv;
 	unsigned int size;
 	unsigned char* buf;
 
@@ -355,6 +354,8 @@ test_available_modes(data_t* data)
 		uint16_t reserved;
 	} *lut = NULL;
 
+	igt_display_reset(&data->display);
+
 	for_each_pipe_with_valid_output(&data->display, pipe, output) {
 		igt_output_set_pipe(output, pipe);
 		igt_display_commit2(&data->display, data->commit);
@@ -397,7 +398,8 @@ test_available_modes(data_t* data)
 			modePlane = drmModeGetPlane(data->gfx_fd,
 						    plane->drm_plane->plane_id);
 
-			if (plane->type == DRM_PLANE_TYPE_CURSOR)
+			if (plane->type == DRM_PLANE_TYPE_CURSOR
+			    || plane->index > 2)
 				continue;
 
 			for (modeindex = 0;
-- 
2.26.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2020-09-22  8:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-14 14:16 [igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: don't mix hdr and sdr planes Juha-Pekka Heikkila
2020-09-14 15:32 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-09-14 19:53 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2020-09-15  9:38 ` [igt-dev] [PATCH i-g-t] " Kahola, Mika
2020-09-22  7:43   ` Juha-Pekka Heikkila
2020-09-22  8:51     ` Kahola, Mika

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