From patchwork Tue May 6 19:48:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abdiel Janulgue X-Patchwork-Id: 4123881 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B8BCDBFF02 for ; Tue, 6 May 2014 19:48:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D28B202B4 for ; Tue, 6 May 2014 19:48:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 35FBD20220 for ; Tue, 6 May 2014 19:48:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 999DA6EA9D; Tue, 6 May 2014 12:48:22 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id DAFEF6EA98 for ; Tue, 6 May 2014 12:48:21 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 06 May 2014 12:43:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,998,1389772800"; d="scan'208";a="535806272" Received: from unknown (HELO abj-ThinkPad-T430s.ak.intel.com) ([10.7.202.95]) by orsmga002.jf.intel.com with ESMTP; 06 May 2014 12:48:16 -0700 From: Abdiel Janulgue To: intel-gfx@lists.freedesktop.org Date: Tue, 6 May 2014 22:48:03 +0300 Message-Id: <1399405683-27409-3-git-send-email-abdiel.janulgue@linux.intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1399405683-27409-1-git-send-email-abdiel.janulgue@linux.intel.com> References: <1399405683-27409-1-git-send-email-abdiel.janulgue@linux.intel.com> Subject: [Intel-gfx] [PATCH 2/2] tests/gem_render_copy: Add option to test resource streamer X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Add option in basic test for the render_copy to test and toggle hw-generated binding tables feature. Signed-off-by: Abdiel Janulgue --- tests/gem_render_copy.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c index 331b7ce..c9dfba0 100644 --- a/tests/gem_render_copy.c +++ b/tests/gem_render_copy.c @@ -131,14 +131,19 @@ int main(int argc, char **argv) int opt; int opt_dump_png = false; int opt_dump_aub = igt_aub_dump_enabled(); + int opt_use_rs = false; igt_simple_init(); - while ((opt = getopt(argc, argv, "d")) != -1) { + while ((opt = getopt(argc, argv, "d:r")) != -1) { switch (opt) { case 'd': opt_dump_png = true; break; + case 'r': + printf("Use resource streamer\n"); + opt_use_rs = true; + break; default: break; } @@ -156,6 +161,7 @@ int main(int argc, char **argv) "no render-copy function\n"); batch = intel_batchbuffer_alloc(data.bufmgr, data.devid); + batch->use_resource_streamer = opt_use_rs; igt_assert(batch); }