From patchwork Tue Sep 29 01:26:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: 'Timothy Arceri' via Patchwork Forward X-Patchwork-Id: 54215 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 4563222B1E for ; Tue, 29 Sep 2015 01:26:53 +0000 (UTC) Received: by wicuu12 with SMTP id uu12sf47768432wic.2 for ; Mon, 28 Sep 2015 18:26:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list:reply-to; bh=x+jhPCizkBILVNQYq/gJTep4ZMUgpGt1FeeMb2UXlPI=; b=YnMFJQZG91NZdG3+xNuFRpSolXog8i8X5KyAvm9Qx3JCwaCviW33bCaLNCw7nt4z06 yEF62xRUAuo20USpC08RsGfs59EyE8uTKgLg6+ObDjObFnVkbe/MYvs6nay1MGUilUrR 9EAHQcfmQ+jH/ECoxlk72eUptSwL8QeCJ/YX2CBvVbvsOKlikeTOmYVanpkxJVkjMH8D jaddKUepnm0dNbsDR9VXRM6JiRNZi2xEuOOl/C2R/ibjk9WVEgfNp/89+9mfD1/N5jgV qP89GWde1XGSkaERZbVeGnRjYWqivZ8LM1M991OHa0Cwu1Vw6j5HJG81bHegqJiJi03z WVXQ== X-Gm-Message-State: ALoCoQnTK4NDqqz6z4dP8nozZ4I7NP6S9fEv0EEBm6emY4PLfPUjW728TpzFPi3FzQjHcH8XY6Ux X-Received: by 10.180.160.146 with SMTP id xk18mr3343948wib.3.1443490012547; Mon, 28 Sep 2015 18:26:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.168 with SMTP id e8ls199166laf.38.gmail; Mon, 28 Sep 2015 18:26:52 -0700 (PDT) X-Received: by 10.152.5.194 with SMTP id u2mr6354456lau.42.1443490012414; Mon, 28 Sep 2015 18:26:52 -0700 (PDT) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com. [2a00:1450:4010:c03::232]) by mx.google.com with ESMTPS id x5si9694903lal.52.2015.09.28.18.26.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 18:26:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::232 as permitted sender) client-ip=2a00:1450:4010:c03::232; Received: by laer8 with SMTP id r8so50645016lae.2 for ; Mon, 28 Sep 2015 18:26:52 -0700 (PDT) X-Received: by 10.152.5.133 with SMTP id s5mr6455286las.19.1443490012258; Mon, 28 Sep 2015 18:26:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1853979lbq; Mon, 28 Sep 2015 18:26:51 -0700 (PDT) X-Received: by 10.107.16.158 with SMTP id 30mr22875903ioq.50.1443490011345; Mon, 28 Sep 2015 18:26:51 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id qh3si14412121igb.95.2015.09.28.18.26.51; Mon, 28 Sep 2015 18:26:51 -0700 (PDT) Received-SPF: pass (google.com: domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A99D86EA84; Mon, 28 Sep 2015 18:26:50 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm21-vm8.bullet.mail.gq1.yahoo.com (nm21-vm8.bullet.mail.gq1.yahoo.com [98.136.217.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id DC1566E731 for ; Mon, 28 Sep 2015 18:26:49 -0700 (PDT) Received: from [98.137.12.61] by nm21.bullet.mail.gq1.yahoo.com with NNFMP; 29 Sep 2015 01:26:48 -0000 Received: from [98.136.164.78] by tm6.bullet.mail.gq1.yahoo.com with NNFMP; 29 Sep 2015 01:26:48 -0000 Received: from [127.0.0.1] by smtp240.mail.gq1.yahoo.com with NNFMP; 29 Sep 2015 01:26:48 -0000 X-Yahoo-Newman-Id: 593178.61669.bm@smtp240.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1QH8y5cVM1nxMtgm11AKJYqpEh0Wm5KyqTTThPz5aH7ixDj jGkLE5ztzEaLFWVVPaVHxm6aVC7y0zEeqCJu6our6BMFgBWjPmgGZpluwNMb uPUwuhfiMHdXtRrfqKrHhxIDknUUs0LryY8G6fsPi5.BmO7QlffO7I4hcerh efJwvIhipb6xfwLoqeZAmr3RxCDfC.NocJ0OcQVHh4xxwpfJFI48js5ox4yY skabaWU_tDHxCRVLLhGKegIg7Y.7ml5pXy_TkrpX1iQibfUWV85bkV8VOnw_ shOpdSVYSTa51Pv6KWjkgkHc5GjY0pIjUljMPGjme2bHBGxQcrrgQ5WCwNI_ VQBXK01_2xpGN.wYKN6iO.fgL82BkBAom0L6YGOvgoft0Kfv9nPNCjxg8hjg eIS2INcuyWOXnXF3y2r9TAhckQkSJuSugTbeJV1cEjA4tKz5c67wyo63CZEh 8tWzlDhWJ_0a4errNHmhnaSWXPZvzWKf3vrZPYs9s4fDahdp87ucjQF8MCK_ QiM3lFC8e0jXwhwepwxzGbKEQSnG0kdSshuU- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Tue, 29 Sep 2015 11:26:32 +1000 Message-Id: <1443489992-26586-2-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1443489992-26586-1-git-send-email-t_arceri@yahoo.com.au> References: <1443489992-26586-1-git-send-email-t_arceri@yahoo.com.au> Subject: [Piglit] [PATCH 02/20] ext_transform_feedback: output better information about which varying has incorrect data X-BeenThere: piglit@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: piglit-bounces@lists.freedesktop.org Sender: "Piglit" X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::232 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@yahoo.com.au; dmarc=fail (p=NONE dis=NONE) header.from=yahoo.com.au Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 X-Original-From: Timothy Arceri Reply-To: Timothy Arceri --- tests/spec/ext_transform_feedback/max-varyings.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/spec/ext_transform_feedback/max-varyings.c b/tests/spec/ext_transform_feedback/max-varyings.c index 1b70ddd..4bad8a6 100644 --- a/tests/spec/ext_transform_feedback/max-varyings.c +++ b/tests/spec/ext_transform_feedback/max-varyings.c @@ -241,7 +241,8 @@ coord_from_index(int index) } static GLboolean -check_xfb_output(int max_varyings, int num_xfb_varyings, int offset) +check_xfb_output(int max_varyings, int num_xfb_varyings, + int offset, const char **xfb_varyings) { GLboolean pass = GL_TRUE; int vertex, varying, i; @@ -262,8 +263,8 @@ check_xfb_output(int max_varyings, int num_xfb_varyings, int offset) printf("Out of a total of %i\n", max_varyings); printf("With an offset of %i\n", offset); printf("Got incorrect transform feedback data " - "for vertex %i, varying %i\n", vertex, - varying); + "for vertex %i, varying %s\n", + vertex, *(xfb_varyings + offset)); printf("Expected (%f, %f, %f, %f)\n", expected[0], expected[1], expected[2], expected[3]); @@ -319,8 +320,8 @@ draw(GLuint vs, GLuint fs, int num_xfb_varyings, 10); glEndTransformFeedback(); - pass = check_xfb_output(max_varyings, num_xfb_varyings, offset) - && pass; + pass = check_xfb_output(max_varyings, num_xfb_varyings, + offset, xfb_varyings) && pass; glDeleteProgram(prog); }