Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id BC7426EDB3 for ; Wed, 6 Oct 2021 16:20:12 +0000 (UTC) From: Rodrigo Vivi Date: Wed, 6 Oct 2021 12:14:40 -0400 Message-Id: <20211006161444.904476-5-rodrigo.vivi@intel.com> In-Reply-To: <20211006161444.904476-1-rodrigo.vivi@intel.com> References: <20211006161444.904476-1-rodrigo.vivi@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 4/8] tests/gem_userptr_blits: Remove LOCAL_ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Rodrigo Vivi , =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= , Chris Wilson , Petri Latvala List-ID: These UAPIs are upstreamed now. Cc: Zbigniew KempczyƄski Cc: Chris Wilson Cc: Petri Latvala Signed-off-by: Rodrigo Vivi --- tests/i915/gem_userptr_blits.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/i915/gem_userptr_blits.c b/tests/i915/gem_userptr_blits.c index 756bd6e4..0d084674 100644 --- a/tests/i915/gem_userptr_blits.c +++ b/tests/i915/gem_userptr_blits.c @@ -2151,16 +2151,13 @@ static int userfaultfd(int flags) return syscall(SYS_userfaultfd, flags); } -#define LOCAL_I915_PARAM_HAS_USERPTR_PROBE 56 -#define LOCAL_I915_USERPTR_PROBE 0x2 - static bool has_userptr_probe(int fd) { struct drm_i915_getparam gp; int value = 0; memset(&gp, 0, sizeof(gp)); - gp.param = LOCAL_I915_PARAM_HAS_USERPTR_PROBE; + gp.param = I915_PARAM_HAS_USERPTR_PROBE; gp.value = &value; ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp)); @@ -2222,7 +2219,7 @@ static void test_probe(int fd) } igt_assert_eq(__gem_userptr(fd, ptr + PAGE_SIZE, 3*PAGE_SIZE, - 0, LOCAL_I915_USERPTR_PROBE, &handle), + 0, I915_USERPTR_PROBE, &handle), expected); munmap(ptr, N_PAGES * PAGE_SIZE); -- 2.31.1