All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/2] kms_cursor_crc: Force the test to run in full RGB range
@ 2017-04-06  7:40 Ander Conselvan de Oliveira
  2017-04-06  7:40 ` [PATCH i-g-t 2/2] kms_cursor_limited: Test crc matches between cursor and overlay planes Ander Conselvan de Oliveira
  2017-04-11 11:13 ` [PATCH i-g-t v2] kms_cursor_crc: Force the test to run in full RGB range Ander Conselvan de Oliveira
  0 siblings, 2 replies; 6+ messages in thread
From: Ander Conselvan de Oliveira @ 2017-04-06  7:40 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ander Conselvan de Oliveira

In at least SKL and GLK (possibly other devices too), using a cursor
plane to scan out an fb might result in a different pipe crc than when
using a regular plane at the same position with the same fb. The
differences could be caused by the cursor plane being limited to 8 bpc
while the regular planes support higher bit depths, since the failures
happens with specific color values, but that's speculation.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
---
 tests/kms_cursor_crc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 206f852..1208d90 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -372,6 +372,14 @@ static void run_test(data_t *data, void (*testfunc)(data_t *), int cursor_w, int
 			  kmstest_pipe_name(data->pipe),
 			  igt_output_name(output));
 
+		/*
+		 * Force test to use full range RGB. Limited range causes CRC
+		 * mismatches in SKL and GLK.
+		 */
+		kmstest_set_connector_broadcast_rgb(data->drm_fd,
+						    data->output->config.connector,
+						    BROADCAST_RGB_FULL);
+
 		testfunc(data);
 
 		igt_info("\n%s on pipe %s, connector %s: PASSED\n\n",
-- 
2.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2017-05-10  6:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-06  7:40 [PATCH i-g-t 1/2] kms_cursor_crc: Force the test to run in full RGB range Ander Conselvan de Oliveira
2017-04-06  7:40 ` [PATCH i-g-t 2/2] kms_cursor_limited: Test crc matches between cursor and overlay planes Ander Conselvan de Oliveira
2017-04-11 11:13 ` [PATCH i-g-t v2] kms_cursor_crc: Force the test to run in full RGB range Ander Conselvan de Oliveira
2017-04-18 13:04   ` [PATCH i-g-t v3] lib/igt_kms: Force outputs to use full range RGB Ander Conselvan de Oliveira
2017-05-09 10:22     ` Mika Kahola
2017-05-10  6:37       ` Conselvan De Oliveira, Ander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.