From patchwork Thu Feb 6 16:54:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 3597031 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 C2E2DBF418 for ; Thu, 6 Feb 2014 16:54:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0693420170 for ; Thu, 6 Feb 2014 16:54:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2C5AA2016C for ; Thu, 6 Feb 2014 16:54:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2089EFB976; Thu, 6 Feb 2014 08:54:56 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DB79FB976 for ; Thu, 6 Feb 2014 08:54:54 -0800 (PST) Received: by mail-qa0-f42.google.com with SMTP id k4so3219677qaq.15 for ; Thu, 06 Feb 2014 08:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tdy49qaKo/MkJYlXxLVyIqKTalX7U87o/rxwWPVQa5U=; b=P4UUkv54JvwmwYH9r0si/LhexqBGcTZ3Wwt1Wovx9YZOgTlvHPx8xHPScH7GXSxSVG YaZkDVwHTKf43y5CW/F55L8mCPC9o5NCnLN+lJULPSYYneW0gjsj6ot1PtoX1mQjU/Vv CWt93NY2N1ouXxg4XfZcMy8pXuniN8XjLd5B4Wd0Q5vVcA42qfhoMjzB0r8Imq9oGvYS Zlfc942UO0lXw/gbCVkMYRzTE0vzwE1HugJ23ql0YpziwZujxrIUV/b6fmogblYnwzDh DfLCQe4bdHetER9sAStjPxpNX96W6d8yFMMjVv+pRkEhKWr9F7yv7lnHzXLJavPo4LSK pHrA== X-Received: by 10.224.115.78 with SMTP id h14mr14355856qaq.94.1391705693300; Thu, 06 Feb 2014 08:54:53 -0800 (PST) Received: from localhost.localdomain ([189.67.6.8]) by mx.google.com with ESMTPSA id d7sm4013362qad.10.2014.02.06.08.54.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Feb 2014 08:54:52 -0800 (PST) From: Rodrigo Vivi To: intel-gfx@lists.freedesktop.org Date: Thu, 6 Feb 2014 14:54:26 -0200 Message-Id: <1391705667-13122-3-git-send-email-rodrigo.vivi@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1391705667-13122-1-git-send-email-rodrigo.vivi@gmail.com> References: <1391705667-13122-1-git-send-email-rodrigo.vivi@gmail.com> Subject: [Intel-gfx] [PATCH 3/4] tests/gem_gtt_hog: Use XY_COLOR_BLT instead of COLOR_BLT. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Signed-off-by: Rodrigo Vivi --- tests/gem_gtt_hog.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/gem_gtt_hog.c b/tests/gem_gtt_hog.c index 53d7dd7..53cd7eb 100644 --- a/tests/gem_gtt_hog.c +++ b/tests/gem_gtt_hog.c @@ -42,9 +42,6 @@ #include "i915_drm.h" #include "drmtest.h" -#define BLT_WRITE_ALPHA (1<<21) -#define BLT_WRITE_RGB (1<<20) - static const uint32_t canary = 0xdeadbeef; static double elapsed(const struct timeval *start, @@ -60,7 +57,7 @@ static void busy(int fd, uint32_t handle, int size, int loops) struct drm_i915_gem_execbuffer2 execbuf; struct drm_i915_gem_pwrite gem_pwrite; struct drm_i915_gem_create create; - uint32_t buf[102], *b; + uint32_t buf[122], *b; int i; memset(reloc, 0, sizeof(reloc)); @@ -69,9 +66,11 @@ static void busy(int fd, uint32_t handle, int size, int loops) b = buf; for (i = 0; i < 20; i++) { - *b++ = COLOR_BLT_CMD | BLT_WRITE_ALPHA | BLT_WRITE_RGB; + *b++ = XY_COLOR_BLT_CMD_NOLEN | 4 | + COLOR_BLT_WRITE_ALPHA | XY_COLOR_BLT_WRITE_RGB; *b++ = 0xf0 << 16 | 1 << 25 | 1 << 24 | 4096; - *b++ = size >> 12 << 16 | 4096; + *b++ = 0; + *b++ = size >> 12 << 16 | 1024; reloc[i].offset = (b - buf) * sizeof(uint32_t); reloc[i].target_handle = handle; reloc[i].read_domains = I915_GEM_DOMAIN_RENDER;