summaryrefslogtreecommitdiff
path: root/tests/i915/perf_pmu.c
diff options
context:
space:
mode:
authorMohammed Khajapasha <mohammed.khajapasha@intel.com>2020-07-20 20:50:45 +0530
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-07-21 12:58:33 +0300
commit540f9de91ab2816885a9076a4c0835cb3dc67a97 (patch)
treed8fc4194add267e0b17176531aa699a82902bc37 /tests/i915/perf_pmu.c
parent1d0f5f0bc794c9880a71f8a51e81de4802db1062 (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/i915/perf_pmu.c')
-rw-r--r--tests/i915/perf_pmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c
index f4db3c10..13e1bd93 100644
--- a/tests/i915/perf_pmu.c
+++ b/tests/i915/perf_pmu.c
@@ -874,7 +874,8 @@ static void prepare_crtc(data_t *data, int fd, igt_output_t *output)
igt_display_commit(display);
- igt_wait_for_vblank(fd, data->pipe);
+ igt_wait_for_vblank(fd,
+ display->pipes[data->pipe].crtc_offset);
}
static void cleanup_crtc(data_t *data, int fd, igt_output_t *output)