diff options
author | Lyude Paul <lyude@redhat.com> | 2020-12-27 17:06:21 -0500 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2021-03-18 19:36:30 -0400 |
commit | 1a42910d4f8bbd268bf6b5606aff0f8df4cbea83 (patch) | |
tree | ecab6e87e62f3052be1da891cd06df78fec91ea0 /tests | |
parent | e2f0d31702e95837dbc2df66949e643284e29dea (diff) |
tests/kms_color: Don't opencode igt_check_crc_equal()
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Martin Peres <martin.peres@mupuf.org>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Jeremy Cline <jcline@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_color.c | 2 | ||||
-rw-r--r-- | tests/kms_color_helper.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/tests/kms_color.c b/tests/kms_color.c index f2686f57..705c9160 100644 --- a/tests/kms_color.c +++ b/tests/kms_color.c @@ -506,7 +506,7 @@ static bool test_pipe_ctm(data_t *data, /* Verify that the CRC of the software computed output is * equal to the CRC of the CTM matrix transformation output. */ - ret &= crc_equal(&crc_software, &crc_hardware); + ret &= !igt_skip_crc_compare || igt_check_crc_equal(&crc_software, &crc_hardware); igt_plane_set_fb(primary, NULL); igt_output_set_pipe(output, PIPE_NONE); diff --git a/tests/kms_color_helper.c b/tests/kms_color_helper.c index ac8e8454..5f223a88 100644 --- a/tests/kms_color_helper.c +++ b/tests/kms_color_helper.c @@ -245,12 +245,6 @@ get_blob(data_t *data, igt_pipe_t *pipe, enum igt_atomic_crtc_properties prop) return drmModeGetPropertyBlob(data->drm_fd, prop_value); } -bool crc_equal(igt_crc_t *a, igt_crc_t *b) -{ - return igt_skip_crc_compare || - memcmp(a->crc, b->crc, sizeof(a->crc[0]) * a->n_words) == 0; -} - int pipe_set_property_blob_id(igt_pipe_t *pipe, enum igt_atomic_crtc_properties prop, |