diff options
author | Mohammed Khajapasha <mohammed.khajapasha@intel.com> | 2020-07-20 20:50:45 +0530 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-07-21 12:58:33 +0300 |
commit | 540f9de91ab2816885a9076a4c0835cb3dc67a97 (patch) | |
tree | d8fc4194add267e0b17176531aa699a82902bc37 /tests/kms_pipe_crc_basic.c | |
parent | 1d0f5f0bc794c9880a71f8a51e81de4802db1062 (diff) |
tests/kms: Use crtc offset to read vblank event for a pipe
Pass crtc_offset parameter to read a vblank event for a pipe
to vblank helper functions.
Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 82856efa..cb93c1ad 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -105,10 +105,11 @@ static void test_read_crc(data_t *data, enum pipe pipe, unsigned flags) igt_pipe_crc_t *pipe_crc; pipe_crc = igt_pipe_crc_new_nonblock(data->drm_fd, pipe, INTEL_PIPE_CRC_SOURCE_AUTO); - igt_wait_for_vblank(data->drm_fd, pipe); + igt_wait_for_vblank(data->drm_fd, display->pipes[pipe].crtc_offset); igt_pipe_crc_start(pipe_crc); - igt_wait_for_vblank_count(data->drm_fd, pipe, N_CRCS); + igt_wait_for_vblank_count(data->drm_fd, + display->pipes[pipe].crtc_offset, N_CRCS); n_crcs = igt_pipe_crc_get_crcs(pipe_crc, N_CRCS+1, &crcs); igt_pipe_crc_stop(pipe_crc); igt_pipe_crc_free(pipe_crc); |