From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id EBBD510E79B for ; Wed, 11 Jan 2023 18:12:26 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Date: Wed, 11 Jan 2023 19:12:05 +0100 Message-Id: <20230111181205.55997-4-zbigniew.kempczynski@intel.com> In-Reply-To: <20230111181205.55997-1-zbigniew.kempczynski@intel.com> References: <20230111181205.55997-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 3/3] tests/kms_cursor_legacy: Add dependency size for spinner creation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Fix the bug where lack of information about dependency object size during spinner creation may lead to object overlapping and failing with ENOSPC. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/7681 Signed-off-by: Zbigniew KempczyƄski --- tests/kms_cursor_legacy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c index 6b75e98cb8..f1e55906a0 100644 --- a/tests/kms_cursor_legacy.c +++ b/tests/kms_cursor_legacy.c @@ -1471,7 +1471,8 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic) spin = igt_spin_new(display->drm_fd, .ahnd = ahnd, - .dependency = fb_info[1].gem_handle); + .dependency = fb_info[1].gem_handle, + .dependency_size = fb_info[1].size); vblank_start = kmstest_get_vblank(display->drm_fd, pipe, DRM_VBLANK_NEXTONMISS); -- 2.34.1