summaryrefslogtreecommitdiff
path: root/tests/kms_frontbuffer_tracking.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-04-06 14:42:01 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-04-09 10:29:59 +0200
commit8cc6f71c8afd6948723d577b9dd810d42a2fdacd (patch)
treedda8b90289ecafa69f44e82e8d7b0a2459c958bb /tests/kms_frontbuffer_tracking.c
parenta86714b95838dd20a091b04f8c4139d0acf7f16b (diff)
kms_frontbuffer_tracking: Remove unnecessary modeset from get_sink_crc.
get_sink_crc() wants the eDP panel enabled to collect a CRC, but this is already required for opening the pipe CRC. This was broken in the conversion to igt_display, because the call to setup_sink_crc was moved. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105503 Reported-by: Marta Löfstedt <marta.lofstedt@intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r--tests/kms_frontbuffer_tracking.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index a20e7118..97455c22 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1416,14 +1416,6 @@ static void setup_sink_crc(void)
return;
}
- /* We need to make sure there's a mode set on the eDP screen and it's
- * not on DPMS state, otherwise we fall into the "Unexpected sink CRC
- * error" case. */
- prim_mode_params.primary.fb = &fbs[FORMAT_DEFAULT].prim_pri;
- prim_mode_params.primary.x = prim_mode_params.primary.y = 0;
- fill_fb_region(&prim_mode_params.primary, COLOR_PRIM_BG);
- set_mode_for_params(&prim_mode_params);
-
sink_crc.fd = openat(drm.debugfs, "i915_sink_crc_eDP1", O_RDONLY);
igt_assert_lte(0, sink_crc.fd);