summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@linux.intel.com>2017-06-14 14:47:46 +0300
committerLyude <lyude@redhat.com>2017-06-14 18:16:52 -0400
commitc9cbe3b63bd7af1594150aa583dc67157607e68b (patch)
tree23d2dd34c88c4c79884b3adac1bfed37a9af8cab
parent6311a19d2dcdc611a68f18eaccef7effcc0b7e72 (diff)
tests/chamelium: Set output pipe after mode change to refresh output
This adds a call to igt_output_set_pipe in orde to refresh output via igt_output_refresh and ensure that mode override can take effect. Without this change, using a lower resolution during frame dumps series with mode changes (e.g. test_display_frame_dump) would not commit the mode change to the output and leave it with a framebuffer too small for the previously-commited resolution. This would cause the test to fail. This allows it to pass. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
-rw-r--r--tests/chamelium.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/chamelium.c b/tests/chamelium.c
index 2e14ccb9..76b14e95 100644
--- a/tests/chamelium.c
+++ b/tests/chamelium.c
@@ -322,6 +322,8 @@ enable_output(data_t *data,
igt_plane_set_fb(primary, fb);
igt_output_override_mode(output, mode);
+ igt_output_set_pipe(output, output->config.pipe);
+
/* Clear any color correction values that might be enabled */
igt_pipe_set_degamma_lut(primary->pipe, NULL, 0);
igt_pipe_set_gamma_lut(primary->pipe, NULL, 0);