summaryrefslogtreecommitdiff
path: root/tests/kms_async_flips.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2022-02-16 21:09:57 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2022-02-18 14:27:56 +0200
commit601d84c7621133e0c4f56c296c4dc45d537c5348 (patch)
tree3373aea6781254295da819b3f3649b52851975cf /tests/kms_async_flips.c
parent37ea4c86f97c0e05fcb6b04cff72ec927930536e (diff)
tests/kms_async_flips: Fix the crc test vblank request
The test fails to populate the horrible vblank ioctl flags correctly unless it happens to be running on the first crtc. Use the helper we have to cook up the necessary magic flags. Should make the test work on some CHV machines that have to use pipe C due to their restricted pipe->port routing capabilities. Reviewed-by: Karthik B S <karthik.b.s@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_async_flips.c')
-rw-r--r--tests/kms_async_flips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 0c382133..5e11cd43 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -396,9 +396,10 @@ static void test_init(data_t *data)
static void queue_vblank(data_t *data)
{
+ int pipe = kmstest_get_pipe_from_crtc_id(data->drm_fd, data->crtc_id);
drmVBlank wait_vbl = {
.request.type = DRM_VBLANK_RELATIVE | DRM_VBLANK_EVENT |
- kmstest_get_pipe_from_crtc_id(data->drm_fd, data->crtc_id),
+ kmstest_get_vbl_flag(pipe),
.request.sequence = 1,
.request.signal = (long)data,
};