From patchwork Thu May 7 18:56:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 6360611 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 37EB5BEEE1 for ; Thu, 7 May 2015 18:57:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76B0220376 for ; Thu, 7 May 2015 18:57:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 890F7200ED for ; Thu, 7 May 2015 18:57:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 067927213F; Thu, 7 May 2015 11:57:37 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com [209.85.192.46]) by gabe.freedesktop.org (Postfix) with ESMTP id 16EAD72144 for ; Thu, 7 May 2015 11:57:35 -0700 (PDT) Received: by qgfi89 with SMTP id i89so25741564qgf.1 for ; Thu, 07 May 2015 11:57:34 -0700 (PDT) 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=/10agzPbPlIKxmqTmcGLm7NXvu9yMn6syCi76wRXZuA=; b=CyWPvFOGKVOjNofUKc+ISG6q3cGrYu6CeybtGfxpncOLFqWOphQbHu/feB2raMoyrH UEzcPvI0lG4oby4yJRmGZcDvM19faXeIgDUQbdyKtNt19jZMGbAEVaTuPC2YSC+T9os8 pICGi78eZtcKxgPXX6Iw03jN4BuDmVMbi2331IFFrc17N6zOO0Acp4LmQuEVX9xZvz1h DXn01iJD8HVCzFJcLgq+ced7pTLQH+A78EobLQcnXQVpvcOQqlUwqjdvNZsKgToBABGn 0caI7STsChTjvzk3YBUZSKT56yjSvdDiD5nAvYudkre+wWAkkeZAzbgnD6T98/qTvv7o Gcag== X-Received: by 10.55.21.87 with SMTP id f84mr189149qkh.50.1431025054696; Thu, 07 May 2015 11:57:34 -0700 (PDT) Received: from localhost.localdomain ([187.121.142.45]) by mx.google.com with ESMTPSA id a8sm1955331qkh.43.2015.05.07.11.57.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 May 2015 11:57:34 -0700 (PDT) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Thu, 7 May 2015 15:56:34 -0300 Message-Id: <1431024996-2267-7-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431024996-2267-1-git-send-email-przanoni@gmail.com> References: <1431024996-2267-1-git-send-email-przanoni@gmail.com> Cc: Paulo Zanoni Subject: [Intel-gfx] [PATCH igt 6/8] tests/kms_fbc_crc: make the blt test draw the same pattern 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, 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 From: Paulo Zanoni ... as the other drawing tests: single white pixel at top/left of the screen, instead of painting the whole screen blue. This will make it much easier to fix the CRC checking code. Signed-off-by: Paulo Zanoni --- tests/kms_fbc_crc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c index d36cf02..a66aa51 100644 --- a/tests/kms_fbc_crc.c +++ b/tests/kms_fbc_crc.c @@ -98,6 +98,7 @@ static void fill_blt(data_t *data, struct intel_batchbuffer *batch; unsigned flags; int pitch; + uint32_t pixel = color | (color << 8) | (color << 16) | (color << 24); batch = intel_batchbuffer_alloc(data->bufmgr, data->devid); igt_assert(batch); @@ -113,9 +114,9 @@ static void fill_blt(data_t *data, COLOR_BLIT_COPY_BATCH_START(flags); OUT_BATCH(3 << 24 | 0xf0 << 16 | pitch); OUT_BATCH(0); - OUT_BATCH(fb->height << 16 | fb->width); + OUT_BATCH(1 << 16 | 1); OUT_RELOC_FENCED(dst, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0); - OUT_BATCH(color); + OUT_BATCH(pixel); ADVANCE_BATCH(); intel_batchbuffer_flush(batch);