From patchwork Mon Jun 8 02:18:01 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: 49607 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A879922B3F for ; Mon, 8 Jun 2015 02:18:52 +0000 (UTC) Received: by wgv5 with SMTP id 5sf29142390wgv.0 for ; Sun, 07 Jun 2015 19:18: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=NjLeyKAeK8eiOmX5mxh9FXiICvZkOT/2ICYl/HmyxYE=; b=mHv5H46n/+8qaxfUPybU8c8QdklykbvEcoQ7D6GKJ1l5lEievqsKw5En5aLe72HUP0 tPPvAheqhYimujCIy/hypzwD+LhucVDOOcTbBigVjoFbJauzNM+2JFSnN+erw8pZ8rSW eyt6AHaZyNxpiu3dWagIyq2pwWjY1ZH9mhQjRDozShcj9BaPU1AI/eNFfWSq1MDIy93Q qStWzg1xepcBt1eyufJycSYUzFi0F+bYLiLXBE9IfwgjmaG6FTSIbpxzWB+67jrMvEVv VYcm0nauIgTZNAlM4yD5mYmfEuaCoLyz0rSP+QbAC9dYv7ms2LuMH+Y/uPHmyi8CP/Fg ZI2Q== X-Gm-Message-State: ALoCoQlUEb10wcuaU8xygsjYyk6fNxVZMxdEioFB9L1L//1owsEVL37Kl8bRRdnmrmtYwtJfgt8R X-Received: by 10.180.221.203 with SMTP id qg11mr10209095wic.7.1433729932016; Sun, 07 Jun 2015 19:18:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.37 with SMTP id w5ls558546laa.77.gmail; Sun, 07 Jun 2015 19:18:51 -0700 (PDT) X-Received: by 10.112.42.16 with SMTP id j16mr13981317lbl.98.1433729931745; Sun, 07 Jun 2015 19:18:51 -0700 (PDT) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com. [2a00:1450:4010:c03::22c]) by mx.google.com with ESMTPS id a8si1301996lbs.52.2015.06.07.19.18.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jun 2015 19:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22c as permitted sender) client-ip=2a00:1450:4010:c03::22c; Received: by labko7 with SMTP id ko7so86854103lab.2 for ; Sun, 07 Jun 2015 19:18:51 -0700 (PDT) X-Received: by 10.112.234.200 with SMTP id ug8mr14037664lbc.117.1433729931461; Sun, 07 Jun 2015 19:18:51 -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.108.230 with SMTP id hn6csp1521878lbb; Sun, 7 Jun 2015 19:18:50 -0700 (PDT) X-Received: by 10.66.252.227 with SMTP id zv3mr25866890pac.154.1433729929536; Sun, 07 Jun 2015 19:18:49 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id yv1si1781301pac.33.2015.06.07.19.18.48; Sun, 07 Jun 2015 19:18:49 -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 739476E1CB; Sun, 7 Jun 2015 19:18:48 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm5-vm10.bullet.mail.gq1.yahoo.com (nm5-vm10.bullet.mail.gq1.yahoo.com [98.136.218.185]) by gabe.freedesktop.org (Postfix) with ESMTP id 71D866E196 for ; Sun, 7 Jun 2015 19:18:47 -0700 (PDT) Received: from [216.39.60.183] by nm5.bullet.mail.gq1.yahoo.com with NNFMP; 08 Jun 2015 02:18:47 -0000 Received: from [98.136.164.76] by tm19.bullet.mail.gq1.yahoo.com with NNFMP; 08 Jun 2015 02:18:47 -0000 Received: from [127.0.0.1] by smtp238.mail.gq1.yahoo.com with NNFMP; 08 Jun 2015 02:18:47 -0000 X-Yahoo-Newman-Id: 294043.17301.bm@smtp238.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: tu7U7AUVM1ka7xoSKyyR9zpuXEerYyL5.UCXEKtJ0Sr5uEz Y1mFJ3D2XlsPGjSRpJUIQTMyB2Zo9VZPpdJq.EJmF8ucO8U.vwv.8mOi7aPd qqn7xnHIscCXDsW_L6fRW.1uP7wpcaoOO6Cs_3rW6hShAO11KkmeWTwFNuCc lD8F3.6Nmh_QIQSyrjbX8CDSxkWxbNHvp3j6gAdNJwJNXwUAyH8O50A3voJW Kd_vtx2UxiFJyRzu3ZyNwOrfxufLnzJEJxNzFXBleFOGH.yk7waa6J361yep UW4tbwUeysx0CXF62pjyWvn7BWdygwpRbyqiUYDwNLy1IMrJOc.a4.UrSzYQ 3hZl.tq0hO9ZuejYEojMpVc_KwDcDssc5LdPAGQ0kFb9XwUd6YfOhLQ9KGVh gnd66HUO0KaK5gI8Wz_otHGvUu6l27HwN2_tCSgd7bOU2BJChF0nmJjJtKZJ EwRA8eAozLyi2JHEjqfVKrcj5LVbMa2gT.uN2Qq9M9kgU_jEeE5FnrPeGjDw 3qpFmvBQrMTuZi1B96AoM17mm08owSS8CZXg- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Mon, 8 Jun 2015 12:18:01 +1000 Message-Id: <1433729882-5502-3-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433729882-5502-1-git-send-email-t_arceri@yahoo.com.au> References: <1433729882-5502-1-git-send-email-t_arceri@yahoo.com.au> Subject: [Piglit] [PATCH 3/4] arb_arrays_of_arrays: add basic linking tests for atomic counters 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::22c 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 Test results: Nvidia GeForce 840M - NVIDIA 346.47 vs-to-fs-atomic-counter-mismatch.shader_test - fail vs-to-fs-atomic-counter.shader_test - pass --- .../vs-to-fs-atomic-counter-mismatch.shader_test | 38 ++++++++++++++++++++++ .../linker/vs-to-fs-atomic-counter.shader_test | 38 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter-mismatch.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter.shader_test diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter-mismatch.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter-mismatch.shader_test new file mode 100644 index 0000000..6ac6522 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter-mismatch.shader_test @@ -0,0 +1,38 @@ +# Test for linking error between vertex and fragment shaders +# with mismatching AoA atomic counter declorations + +[require] +GLSL >= 1.40 +GL_ARB_shader_atomic_counters +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 140 +#extension GL_ARB_arrays_of_arrays: enable +#extension GL_ARB_shader_atomic_counters: enable + +layout(binding = 0) uniform atomic_uint a1[3][2][2]; + +in vec4 piglit_vertex; + +void main() +{ + gl_Position = piglit_vertex; +} + +[fragment shader] +#version 140 +#extension GL_ARB_arrays_of_arrays: enable +#extension GL_ARB_shader_atomic_counters: enable + +layout(binding = 0) uniform atomic_uint a1[2][2][2]; + +out vec4 fcolor; + +void main() +{ + fcolor = vec4(1.0); +} + +[test] +link error diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter.shader_test new file mode 100644 index 0000000..2998e25 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-atomic-counter.shader_test @@ -0,0 +1,38 @@ +# Test for successful linking between vertex and fragment shaders +# with matching AoA atomic counter declorations + +[require] +GLSL >= 1.40 +GL_ARB_shader_atomic_counters +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 140 +#extension GL_ARB_arrays_of_arrays: enable +#extension GL_ARB_shader_atomic_counters: enable + +layout(binding = 0) uniform atomic_uint a1[3][2][2]; + +in vec4 piglit_vertex; + +void main() +{ + gl_Position = piglit_vertex; +} + +[fragment shader] +#version 140 +#extension GL_ARB_arrays_of_arrays: enable +#extension GL_ARB_shader_atomic_counters: enable + +layout(binding = 0) uniform atomic_uint a1[3][2][2]; + +out vec4 fcolor; + +void main() +{ + fcolor = vec4(1.0); +} + +[test] +link success