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_cursor_edge_walk.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_cursor_edge_walk.c')
-rw-r--r-- | tests/kms_cursor_edge_walk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c index 96a78792..32b8e711 100644 --- a/tests/kms_cursor_edge_walk.c +++ b/tests/kms_cursor_edge_walk.c @@ -84,6 +84,7 @@ static void create_cursor_fb(data_t *data, int cur_w, int cur_h) static void cursor_move(data_t *data, int x, int y, int i) { int crtc_id = data->output->config.crtc->crtc_id; + igt_display_t *display = &data->display; igt_debug("[%d] x=%d, y=%d\n", i, x, y); @@ -95,7 +96,8 @@ static void cursor_move(data_t *data, int x, int y, int i) igt_assert(drmModeMoveCursor(data->drm_fd, crtc_id, x, y) == 0 || (IS_CHERRYVIEW(data->devid) && data->pipe == PIPE_C && x < 0 && x > -data->curw)); - igt_wait_for_vblank(data->drm_fd, data->pipe); + igt_wait_for_vblank(data->drm_fd, + display->pipes[data->pipe].crtc_offset); } #define XSTEP 8 |