From: Daniel Vetter Subject: [PATCH 5/6] tests/prime_nv_tests: fix copied buffer size Date: Thu, 13 Mar 2014 19:02:50 +0100 Message-ID: <1394733771-25098-5-git-send-email-daniel.vetter@ffwll.ch> References: <1394733771-25098-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 33594FAD43 for ; Thu, 13 Mar 2014 11:03:04 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id e49so570396eek.39 for ; Thu, 13 Mar 2014 11:03:03 -0700 (PDT) In-Reply-To: <1394733771-25098-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org Doesn't affect the test since we only check the first few bytes. But I want to switch the copy code to always copy entire pages around, so use the right buffer size. Signed-off-by: Daniel Vetter --- tests/prime_nv_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/prime_nv_test.c b/tests/prime_nv_test.c index 18a13a0e00c9..8a6354020b7c 100644 --- a/tests/prime_nv_test.c +++ b/tests/prime_nv_test.c @@ -336,7 +336,7 @@ static void test_i915_blt_fill_nv_read(void) igt_assert(nouveau_bo_prime_handle_ref(ndev, prime_fd, &nvbo) == 0); close(prime_fd); - intel_copy_bo(intel_batch, test_intel_bo, src_bo, 256, 1); + intel_copy_bo(intel_batch, test_intel_bo, src_bo, 256, 1024/4); igt_assert(nouveau_bo_map(nvbo, NOUVEAU_BO_RDWR, nclient) == 0); -- 1.8.5.2