From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id CDE4910E820 for ; Tue, 18 Apr 2023 16:50:05 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Tue, 18 Apr 2023 22:14:48 +0530 Message-Id: <20230418164501.1687266-33-bhanuprakash.modem@intel.com> In-Reply-To: <20230418164501.1687266-1-bhanuprakash.modem@intel.com> References: <20230418164501.1687266-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t 32/45] tests/kms_flip_event_leak: Add XE support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add XE driver support for kms tests. Signed-off-by: Bhanuprakash Modem --- tests/kms_flip_event_leak.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_event_leak.c index bc26597de..b79cd5030 100644 --- a/tests/kms_flip_event_leak.c +++ b/tests/kms_flip_event_leak.c @@ -29,6 +29,7 @@ #include #include "igt_device.h" +#include "xe/xe_query.h" typedef struct { int drm_fd; @@ -64,6 +65,8 @@ static void test(data_t *data, enum pipe pipe, igt_output_t *output) igt_device_drop_master(data->drm_fd); igt_device_set_master(fd); + if (is_xe_device(fd)) + xe_device_get(fd); igt_create_fb(fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, @@ -74,6 +77,8 @@ static void test(data_t *data, enum pipe pipe, igt_output_t *output) data); igt_assert_eq(ret, 0); + if (is_xe_device(fd)) + xe_device_put(fd); ret = close(fd); igt_assert_eq(ret, 0); -- 2.40.0