[igt-dev] [PATCH i-g-t] tests/kms_async_flips: Fix the crc test vblank request
Karthik B S
karthik.b.s at intel.com
Thu Feb 17 09:48:25 UTC 2022
On 2/17/2022 12:48 AM, Ville Syrjala wrote:
> 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>
Reviewed-by: Karthik B S <karthik.b.s at 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,
> };
More information about the igt-dev
mailing list