summaryrefslogtreecommitdiff
path: root/tests/kms_plane.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2021-04-14 05:09:36 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-04-20 12:30:45 +0300
commitd293ad78a035dcf681345ca15e0256e0c3b1e7bb (patch)
tree4ec62070b7056fc2b40775f6cc9a1af0e5ea9d7f /tests/kms_plane.c
parent907705f0c3f6b5ae6358a4822434dd6d7a070cff (diff)
tests/kms_plane: Ignore the crc frame count with --skip-crc-compare
While debugging one might run things with "--interacive-debug=modeset --skip-crc-compare" to actually see what things look like on the screen. To do that without the asserts failing we need to ignore the crc frame count value since we may be sitting there for an arbitrary amount of time staring at the screen. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/kms_plane.c')
-rw-r--r--tests/kms_plane.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index f20f5bee..9fe253a8 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -549,7 +549,8 @@ static void capture_crc(data_t *data, unsigned int vblank, igt_crc_t *crc)
{
igt_pipe_crc_get_for_frame(data->drm_fd, data->pipe_crc, vblank, crc);
- igt_fail_on_f(crc->has_valid_frame && crc->frame != vblank,
+ igt_fail_on_f(!igt_skip_crc_compare &&
+ crc->has_valid_frame && crc->frame != vblank,
"Got CRC for the wrong frame (got %u, expected %u). CRC buffer overflow?\n",
crc->frame, vblank);
}