From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2087.outbound.protection.outlook.com [40.107.244.87]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8156B10E7E4 for ; Wed, 8 Nov 2023 16:40:18 +0000 (UTC) From: Harry Wentland To: Date: Wed, 8 Nov 2023 11:39:50 -0500 Message-ID: <20231108164006.106967-2-harry.wentland@amd.com> In-Reply-To: <20231108164006.106967-1-harry.wentland@amd.com> References: <20231108164006.106967-1-harry.wentland@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Subject: [igt-dev] [RFC PATCH v3 01/12] lib/drmtest: Add is_vkms_device() List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Signed-off-by: Harry Wentland --- lib/drmtest.c | 5 +++++ lib/drmtest.h | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index e1da66c877e9..7ffd238bf499 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -106,6 +106,11 @@ static bool __is_device(int fd, const char *expect) return strcmp(expect, name) == 0; } +bool is_vkms_device(int fd) +{ + return __is_device(fd, "vkms"); +} + bool is_amdgpu_device(int fd) { return __is_device(fd, "amdgpu"); diff --git a/lib/drmtest.h b/lib/drmtest.h index 97ab6e759edf..eab8bc0b591f 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -116,6 +116,7 @@ void igt_require_nouveau(int fd); void igt_require_vc4(int fd); void igt_require_xe(int fd); +bool is_vkms_device(int fd); bool is_amdgpu_device(int fd); bool is_i915_device(int fd); bool is_mtk_device(int fd); -- 2.42.0