[igt-dev] [i-g-t] tests/kms_cursor_legacy: Avoid usage of same pipe on multiple outputs
Sharma, Swati2
swati2.sharma at intel.com
Wed Jul 13 07:44:59 UTC 2022
LGTM
Reviewed-by: Swati Sharma <swati2.sharma at intel.com>
On 11-Jul-22 7:49 PM, Bhanuprakash Modem wrote:
> Sanitize the system state before starting the subtest.
>
> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/6198
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
> tests/kms_cursor_legacy.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
> index fc4a291d..c5b2bd30 100644
> --- a/tests/kms_cursor_legacy.c
> +++ b/tests/kms_cursor_legacy.c
> @@ -429,6 +429,8 @@ static void flip(igt_display_t *display,
> results = mmap(NULL, PAGE_SIZE, PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
> igt_assert(results != MAP_FAILED);
>
> + igt_display_reset(display);
> +
> flip_pipe = find_connected_pipe(display, !!flip_pipe);
> cursor_pipe = find_connected_pipe(display, !!cursor_pipe);
>
--
~Swati Sharma
More information about the igt-dev
mailing list