From patchwork Thu Mar 16 16:07:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Ekstrand X-Patchwork-Id: 9628813 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 9C6E160244 for ; Thu, 16 Mar 2017 16:07:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D5112623C for ; Thu, 16 Mar 2017 16:07:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 814B627FBC; Thu, 16 Mar 2017 16:07:54 +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 232DE2623C for ; Thu, 16 Mar 2017 16:07:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8646A6EB34; Thu, 16 Mar 2017 16:07:53 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg0-x235.google.com (mail-pg0-x235.google.com [IPv6:2607:f8b0:400e:c05::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id D20E06EB34 for ; Thu, 16 Mar 2017 16:07:51 +0000 (UTC) Received: by mail-pg0-x235.google.com with SMTP id 141so27302232pgd.1 for ; Thu, 16 Mar 2017 09:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jlekstrand-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I64MdsIlbU8CPY0HroNIMZRMZlvO4+moYqN86GreyhI=; b=pN33TaVYhFVd4vksqeyHz/Zsw9eTP1HP+htEoMq3vvkOSUpTl+tnNR+jocKvSzsgp5 1w8VeuCrBcR7a5Xekm9PzaIn5gT0rMCekXq67F4AfKzfPixYeMg9gvLBaLFz0xMTZkFg 4BTOlxhE6SJRZmVQSer5zhHCIgjnveZQrjpKNXhK7mJhlbfWUkhu+3SL+TiUa4BGoYzT Coe/U1jUKgMIqHcB4OmDCX72qyPqF3AdlL0haE/4BPfss1i0SMDxoiDEMTrgAT5oKgce cg2CivKKGzLz44J8M1GZGX6T62FOFQFh+AEK5latxwTPXtxm7L4aq0S16A9XPqFrf/tn 1o4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I64MdsIlbU8CPY0HroNIMZRMZlvO4+moYqN86GreyhI=; b=ociYjeF5sIwsPrCWsBe2jB4aI0hjCfwoRGiXQHurRUKkY27Iv/fvAqZHrqjDGAOgwv EsTCq9qR7eEwOaKEwX+SH0s5uxiT1kC+LkrxrvJmbdzSvcnUTfWRDAbUv7Y5+xcolDi7 epj4W2B5ifhU71kecKOJe++Am9yTxbhTYo/5me9Sj9dKwZPQrgnEFddWxmFDj3yb7WWb di6le9dIOZLZs8gRBXUT7Q6ue9domG0vTUCoYTqhiWneyMjBcWwxbPSarcnEF2bOzFGv YKYSvY786bd1xQK9VrVIHK18JG4RoVGxNv6OP6Y7iBqgIOx/DKPHR6AnxQvCN7z7FNlM 1H+A== X-Gm-Message-State: AFeK/H1T07Efu9DZ/D9Z1aHOFzByOZJ1t+tVHVa1nLksTRKcJ7XnHR+6iUmXYY6DTZHkng== X-Received: by 10.99.131.198 with SMTP id h189mr11134965pge.161.1489680471317; Thu, 16 Mar 2017 09:07:51 -0700 (PDT) Received: from omlet.jf.intel.com ([192.55.54.42]) by smtp.gmail.com with ESMTPSA id 132sm11547410pgf.27.2017.03.16.09.07.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Mar 2017 09:07:49 -0700 (PDT) From: Jason Ekstrand X-Google-Original-From: Jason Ekstrand To: intel-gfx@lists.freedesktop.org Date: Thu, 16 Mar 2017 09:07:41 -0700 Message-Id: <1489680461-3269-1-git-send-email-jason.ekstrand@intel.com> X-Mailer: git-send-email 2.5.0.400.gff86faf In-Reply-To: <1489594171-10758-1-git-send-email-jason.ekstrand@intel.com> References: <1489594171-10758-1-git-send-email-jason.ekstrand@intel.com> Cc: Jason Ekstrand Subject: [Intel-gfx] [PATCH v2] aubinator: Define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR if unavailable 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 Depending on what version of drm_i915.h you have, you may not have this #define but it's required in order to properly dump aubs from newer versions of mesa. --- tools/aubdump.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/aubdump.c b/tools/aubdump.c index 08cee55..8a89b8c 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -47,6 +47,14 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) #endif +#ifndef DRM_I915_GEM_EXECBUFFER2_WR +#define DRM_I915_GEM_EXECBUFFER2_WR DRM_I915_GEM_EXECBUFFER2 +#endif + +#ifndef DRM_IOCTL_I915_GEM_EXECBUFFER2_WR +#define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2_WR, struct drm_i915_gem_execbuffer2) +#endif + static int close_init_helper(int fd); static int ioctl_init_helper(int fd, unsigned long request, ...);