From patchwork Wed Aug 5 00:36:41 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: 51941 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 7FD0C22E8E for ; Wed, 5 Aug 2015 00:37:01 +0000 (UTC) Received: by wijp15 with SMTP id p15sf11236501wij.3 for ; Tue, 04 Aug 2015 17:37:00 -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=S9A6sVI7fVpWcoNaeGXqdQ4sVPYKDqgtjR4Zbta5Ccw=; b=WWp18vn3pH0h8MhFa0x4apuo3HQrPIWdKSBkxwVILvdThfGBMFEF/hrSVlZuiPj+eH GFMkSlxjNjWqHIhsCG6YpcRnYPlBLV6k8yER/ATvehjo6NOmTuDsvoW31HnVrVWgs16F 7j+9wDH6XcoDI6pa891i+Ftxw3IQwqGt3hidRL8k7r02QnL84MTxFfKU/p4eKplDyhna UkHngBo32XPQM5mJPMPpJqEOiqMVYtm/tu+ZJY77krYVcuq4ooD8OS0TLdhApsYjfNHC SRt+Tys5gfndJRvXv8xmIi/uSJKs+viqJzVBhrP3zJuiXwwyZ0+2YMatZ78j4LLWSk7z 6cZw== X-Gm-Message-State: ALoCoQl/B8y2lkFHLJSv6LBzjFnwVwqljbhH8+lqmMZ5vZd9nJq0sYQLkzfUXbRq8UV17l9Okuwv X-Received: by 10.152.27.130 with SMTP id t2mr1894825lag.2.1438735020793; Tue, 04 Aug 2015 17:37:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.65 with SMTP id o1ls120147laj.81.gmail; Tue, 04 Aug 2015 17:37:00 -0700 (PDT) X-Received: by 10.112.164.74 with SMTP id yo10mr7073187lbb.124.1438735020681; Tue, 04 Aug 2015 17:37:00 -0700 (PDT) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com. [2a00:1450:4010:c03::22a]) by mx.google.com with ESMTPS id f1si1062678lab.6.2015.08.04.17.37.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2015 17:37:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22a as permitted sender) client-ip=2a00:1450:4010:c03::22a; Received: by labgo9 with SMTP id go9so18291449lab.3 for ; Tue, 04 Aug 2015 17:37:00 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr6987024lav.36.1438735020506; Tue, 04 Aug 2015 17:37:00 -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.7.198 with SMTP id l6csp69203lba; Tue, 4 Aug 2015 17:36:59 -0700 (PDT) X-Received: by 10.70.103.70 with SMTP id fu6mr13874997pdb.22.1438735018560; Tue, 04 Aug 2015 17:36:58 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id qv6si2111649pbb.35.2015.08.04.17.36.57; Tue, 04 Aug 2015 17:36:58 -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 71F1E6E77A; Tue, 4 Aug 2015 17:36:57 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm20-vm7.bullet.mail.gq1.yahoo.com (nm20-vm7.bullet.mail.gq1.yahoo.com [98.136.217.38]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8C3666E77A for ; Tue, 4 Aug 2015 17:36:56 -0700 (PDT) Received: from [98.137.12.188] by nm20.bullet.mail.gq1.yahoo.com with NNFMP; 05 Aug 2015 00:36:56 -0000 Received: from [98.136.164.65] by tm9.bullet.mail.gq1.yahoo.com with NNFMP; 05 Aug 2015 00:36:56 -0000 Received: from [127.0.0.1] by smtp227.mail.gq1.yahoo.com with NNFMP; 05 Aug 2015 00:36:56 -0000 X-Yahoo-Newman-Id: 376938.84524.bm@smtp227.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: JRcYHjAVM1n6nszG7st8WvvR.YfAE.Lpg8UpEFBUw9blu9p vrjVmt3524PpLhmZEWKVtunlnUBbbRf9FIY1heado_yMXQreqHh_CWZ6mJoA bTqf8QGarSGdWLlxos38PmBGjh3DVpBy4_pYMzqBe4.TQBxKYdXrfnTPxJUq HBbY23PXAqRjXQPi7xvQ5K_FIsNDkUXGcj2YXtqBbsmYmCKkVadwNI4PRvCb Nl8MvA.yLgB.OZkQSi4SFdGnL1HAJx8tyL..0aO2PJR66GqY6AkYaB5pjwBU jWjCwLpseb3Dn3ve2LrRi4e6XjtKe9pUa1J9iOMAwYbBgwQUyJlgamjUBA44 kq_meoeQr_g7g9_hqA25kmxH54l68PXByUCBg4h3qDZlpUaAgrYdoEC2CWuu xdqG8wSrtBqbb8xrXrZA1w45.tTS5Dq1z14fkW3hjKXFsRnoiWVcc9W63Cc6 e20mTfyyLhxyUhs5QnPj5wW.i3c.82fVO2ThKicHJGeyhG2Uc5dagJQlNffa hou6SPf4u4LjNnhUT578ZrVbdoKWmYHPxvd0- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Wed, 5 Aug 2015 10:36:41 +1000 Message-Id: <1438735003-10626-2-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1438735003-10626-1-git-send-email-t_arceri@yahoo.com.au> References: <1438735003-10626-1-git-send-email-t_arceri@yahoo.com.au> Subject: [Piglit] [PATCH V2 2/4] arb_arrays_of_arrays: fix vs decrement atomic counter test 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::22a as permitted sender) smtp.mail=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 V2: Initialise correct number of counters, fix testing of required max buffers --- .../atomic_counters/vs-simple-inc-dec-read.shader_test | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test b/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test index a3df129..4297317 100644 --- a/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test +++ b/tests/spec/arb_arrays_of_arrays/execution/atomic_counters/vs-simple-inc-dec-read.shader_test @@ -5,7 +5,7 @@ GLSL >= 1.40 GL_ARB_shader_atomic_counters GL_ARB_arrays_of_arrays -INT GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS >= 2 +INT GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS >= 1 [vertex shader] #version 140 @@ -52,6 +52,12 @@ void main() v1[6] <= v0[6] && v1[7] != v0[7]) passed = false; + /* Skip one decrement since it may be the 0 => 0xffffffff + * transition. + */ + atomicCounterDecrement(a1[0][1][1]); + atomicCounterDecrement(a1[2][0][1]); + /* Get all initail values of a1 */ v0[0] = atomicCounter(a1[0][0][0]); v0[1] = atomicCounter(a1[0][0][1]); @@ -66,11 +72,6 @@ void main() v0[10] = atomicCounter(a1[2][0][1]); v0[11] = atomicCounter(a1[2][1][0]); - /* Skip one decrement since it may be the 0 => 0xffffffff - * transition. - */ - atomicCounterDecrement(a1[2][0][1]); - /* Test that a decrement of an atomic * counter results in a smaller value. * Also test that all other array elements are unaffected. @@ -113,7 +114,7 @@ void main() } [test] -atomic counters 2 +atomic counters 20 draw rect -1 -1 2 2 probe all rgba 0.0 1.0 0.0 1.0