From patchwork Fri Nov 6 00:56:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 7565101 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 941D99F399 for ; Fri, 6 Nov 2015 00:56:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFB5220295 for ; Fri, 6 Nov 2015 00:56:20 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C08D32063C for ; Fri, 6 Nov 2015 00:56:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC6A16E0F7; Thu, 5 Nov 2015 16:56:18 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTP id 745386E0F7 for ; Thu, 5 Nov 2015 16:56:17 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 05 Nov 2015 16:56:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,249,1444719600"; d="scan'208";a="812910536" Received: from norris.jf.intel.com (HELO norris.localdomain) ([10.7.202.87]) by orsmga001.jf.intel.com with ESMTP; 05 Nov 2015 16:56:17 -0800 From: Ben Widawsky To: Intel GFX Date: Thu, 5 Nov 2015 16:56:11 -0800 Message-Id: <1446771371-15825-1-git-send-email-benjamin.widawsky@intel.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Cc: Ben Widawsky Subject: [Intel-gfx] [PATCH] igt/intel_aubdump: Use the right ring 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This prevents the simulator from barfing when it sees commands from another ring. I've been using this locally for a very long time. Cc: Kristian Høgsberg Signed-off-by: Ben Widawsky Reviewed-by: Kristian Høgsberg --- tools/aubdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/aubdump.c b/tools/aubdump.c index a17dc10..d9ee791 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -315,7 +315,7 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2) { struct drm_i915_gem_exec_object2 *exec_objects = (struct drm_i915_gem_exec_object2 *) (uintptr_t) execbuffer2->buffers_ptr; - uint32_t ring_flag = 0; + uint32_t ring_flag = execbuffer2->flags & I915_EXEC_RING_MASK; uint32_t offset = gtt_size; struct drm_i915_gem_exec_object2 *obj; struct bo *bo, *batch_bo;