mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 14:23:03 +00:00
lib/debugfs: Add igt_assert_crc_equal
Because of hash collisions tests should only ever compare crc checksums for equality. Checking for inequality can result in random failures. To ensure this only expose and igt_assert function and use that. Follow-up patches will rework the code for tests which don't follow this requirement and try to compare for CRC inequality. v2: Rebase on top of Matt's kms_plane changes. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
@@ -204,7 +204,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type)
|
||||
igt_display_commit2(display, commit);
|
||||
|
||||
igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output);
|
||||
igt_assert(igt_crc_equal(&data->ref_crc, &crc_output));
|
||||
igt_assert_crc_equal(&data->ref_crc, &crc_output);
|
||||
|
||||
/* check the rotation state has been reset when the VT
|
||||
* mode is restored */
|
||||
@@ -212,7 +212,7 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type)
|
||||
kmstest_set_vt_graphics_mode();
|
||||
prepare_crtc(data, output, pipe, plane);
|
||||
igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output);
|
||||
igt_assert(igt_crc_equal(&crc_unrotated, &crc_output));
|
||||
igt_assert_crc_equal(&crc_unrotated, &crc_output);
|
||||
|
||||
|
||||
valid_tests++;
|
||||
|
||||
Reference in New Issue
Block a user