From patchwork Tue Nov 22 13:02:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Bragg X-Patchwork-Id: 9441041 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BD3BD600BA for ; Tue, 22 Nov 2016 13:02:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE1B3284C4 for ; Tue, 22 Nov 2016 13:02:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A30A428527; Tue, 22 Nov 2016 13:02:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D672D284C4 for ; Tue, 22 Nov 2016 13:02:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 182076E2D6; Tue, 22 Nov 2016 13:02:31 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id A13E96E2D6 for ; Tue, 22 Nov 2016 13:02:29 +0000 (UTC) Received: by mail-pf0-x244.google.com with SMTP id 144so1396635pfv.0 for ; Tue, 22 Nov 2016 05:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id; bh=QqiPjcRy7ricKD4gySjnYk8Qr7ROT3JyGn3yYh0SOWs=; b=kiRA9TYjz6056DZPsA040kPALCszyNXoE6w/bK3HAcv/3T/L6rnVvXaBII18dq8u0C /KTNaJ3XDx0hYJ7SRfp7o8yqe65MSazryta0ikYdASQU4fRUjHFylWMspVOuNckI1l9L 23XxtRcqnHMytxjA7jrs8IwBaxvGurWHi2x/VBWniSsyKe0JyX8qXL1xCFstZYwBBZTp cRg7aAZ4pw89E+/XYABbfM1oh0TASnLtRcbNnixuCtXqlEjaAmFDW0yynpfXJ4aWDk5Z AngDC/L4owy9NzgFoOPHLbMfHDtcr6NisgEPSkqQ4zGwoX14OOpuPo7PK/lRJZueR9Oi 4BKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=QqiPjcRy7ricKD4gySjnYk8Qr7ROT3JyGn3yYh0SOWs=; b=NEnjPmxgX5ERXJXdzdZEevJe//Wneg6roUbyEKxud85z1sdZQd2LU2Yq4/51CqQ7QF S25WAPm4OenzJQ/jfPGQKnsLEtdHvN/PQW4zPcMwxUL1QFn67mU1gF3DzHbz5UhpQdFD +GjzT3UsVtZwzrTwjqmvsvhG1q0fGoDPNzEG9MRCcoKsiVn4TIFcNWmMZf4MrzfyBmVS gSDeI6VG4LdVwjK9/X0mCejlBcjYmfkutXLqPxQva2w/hgUQuISXH9xNcBysULnSV/7S IgqCRNsF2O2fP3u2A3LnfrR9EpvdX4n9vxZb5AT/GCgXNy66o/Ih12mIlPUX8ODc5bvp A6gQ== X-Gm-Message-State: AKaTC028XEcJJ+UKRyaPLzEyCO4XzIZzY1Ki3oYVcV1WsOyToML4YXYJOS6DR6SqpsnjsA== X-Received: by 10.98.32.151 with SMTP id m23mr26189441pfj.127.1479819748925; Tue, 22 Nov 2016 05:02:28 -0800 (PST) Received: from sixbynine.org ([134.134.139.77]) by smtp.gmail.com with ESMTPSA id s8sm45299641pfj.45.2016.11.22.05.02.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Nov 2016 05:02:28 -0800 (PST) From: Robert Bragg To: intel-gfx@lists.freedesktop.org Date: Tue, 22 Nov 2016 13:02:25 +0000 Message-Id: <20161122130225.3567-1-robert@sixbynine.org> X-Mailer: git-send-email 2.10.2 Subject: [Intel-gfx] [PATCH igt] stubs/drm: Add drm_intel_gem_context_get_id stub X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP The plan is to use this api in i915-perf tests so this adds the corresponding stub in case libdrm was built with libdrm_intel disabled. Signed-off-by: Robert Bragg Reviewed-by: Matthew Auld --- lib/stubs/drm/intel_bufmgr.c | 7 +++++++ lib/stubs/drm/intel_bufmgr.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/lib/stubs/drm/intel_bufmgr.c b/lib/stubs/drm/intel_bufmgr.c index bc1c196..39e0af3 100644 --- a/lib/stubs/drm/intel_bufmgr.c +++ b/lib/stubs/drm/intel_bufmgr.c @@ -173,6 +173,13 @@ drm_intel_context *drm_intel_gem_context_create(drm_intel_bufmgr *bufmgr) return (drm_intel_bo *) NULL; } +int drm_intel_gem_context_get_id(drm_intel_context *ctx, + uint32_t *ctx_id) +{ + igt_require_f(false, missing_support_str); + return 0; +} + void drm_intel_gem_context_destroy(drm_intel_context *ctx) { igt_require_f(false, missing_support_str); diff --git a/lib/stubs/drm/intel_bufmgr.h b/lib/stubs/drm/intel_bufmgr.h index a1abbcd..f6bb4f5 100644 --- a/lib/stubs/drm/intel_bufmgr.h +++ b/lib/stubs/drm/intel_bufmgr.h @@ -208,6 +208,8 @@ int drm_intel_bufmgr_gem_get_devid(drm_intel_bufmgr *bufmgr); int drm_intel_gem_bo_wait(drm_intel_bo *bo, int64_t timeout_ns); drm_intel_context *drm_intel_gem_context_create(drm_intel_bufmgr *bufmgr); +int drm_intel_gem_context_get_id(drm_intel_context *ctx, + uint32_t *ctx_id); void drm_intel_gem_context_destroy(drm_intel_context *ctx); int drm_intel_gem_bo_context_exec(drm_intel_bo *bo, drm_intel_context *ctx, int used, unsigned int flags);