[igt-dev] [PATCH i-g-t] tests/kms_async_flips: Fix the crc test vblank request
Ville Syrjala
ville.syrjala at linux.intel.com
Wed Feb 16 19:18:14 UTC 2022
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
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.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tests/kms_async_flips.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 0c3821339680..5e11cd43610f 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,
};
--
2.34.1
More information about the igt-dev
mailing list