From patchwork Sat Jun 20 12:14:34 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: 50128 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1A1EA21594 for ; Sat, 20 Jun 2015 12:15:19 +0000 (UTC) Received: by laer2 with SMTP id r2sf9113843lae.3 for ; Sat, 20 Jun 2015 05:15:17 -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=H+ocuFCwXSEkCvf3sTDHjJnnN6uq45oVVdgRrPAq0jrb6PmsDozgmpi8p8X1Rarm2f mcjc+B8F31q45/e4AaR3U695c0FZNSPDt1/J/FZVZO9wLlRWe/jEdUlEJchnOO1q5OFh E23aZGjDCRUgBVbGTgdIeOehvd1k8JrNiH6kivW8Eww1IKJdO6vKFbO4CSq4xAd98DJb M5zGiFIuw8skLG7YBnWj0Vrg1qdDtdczpLG/A3RXOcDUCwRj7GZK0BvoxXLK5+FDHflG peMypVnyp+2HlrKjPXvBnJC+aZyL25Kt/Ivb5hEl0/ANN6iGQwUuhcpsDG3Z7FmjPTxL 3njg== X-Gm-Message-State: ALoCoQmR5R9+z8BI7OAuc5LkN5m6PoOgZjfPm5CN2MY1L1tCyJDZtxMVvX+Jr4WFoA+lQqbqlqjn X-Received: by 10.112.166.137 with SMTP id zg9mr19617723lbb.11.1434802517764; Sat, 20 Jun 2015 05:15:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.201 with SMTP id di9ls502021lac.92.gmail; Sat, 20 Jun 2015 05:15:17 -0700 (PDT) X-Received: by 10.152.203.233 with SMTP id kt9mr21136706lac.99.1434802517652; Sat, 20 Jun 2015 05:15:17 -0700 (PDT) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com. [2a00:1450:4010:c04::231]) by mx.google.com with ESMTPS id dn11si11638306lac.122.2015.06.20.05.15.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Jun 2015 05:15:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::231 as permitted sender) client-ip=2a00:1450:4010:c04::231; Received: by lbbti3 with SMTP id ti3so85615415lbb.1 for ; Sat, 20 Jun 2015 05:15:17 -0700 (PDT) X-Received: by 10.152.42.177 with SMTP id p17mr627767lal.29.1434802517547; Sat, 20 Jun 2015 05:15:17 -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 hn6csp1209527lbb; Sat, 20 Jun 2015 05:15:16 -0700 (PDT) X-Received: by 10.70.42.134 with SMTP id o6mr41231113pdl.11.1434802514181; Sat, 20 Jun 2015 05:15:14 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id j4si21007975pda.24.2015.06.20.05.15.13; Sat, 20 Jun 2015 05:15:14 -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 334536E70C; Sat, 20 Jun 2015 05:15:13 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm27-vm6.bullet.mail.gq1.yahoo.com (nm27-vm6.bullet.mail.gq1.yahoo.com [98.136.216.149]) by gabe.freedesktop.org (Postfix) with ESMTP id BBE556E70C for ; Sat, 20 Jun 2015 05:15:11 -0700 (PDT) Received: from [98.137.12.175] by nm27.bullet.mail.gq1.yahoo.com with NNFMP; 20 Jun 2015 12:15:11 -0000 Received: from [208.71.42.199] by tm14.bullet.mail.gq1.yahoo.com with NNFMP; 20 Jun 2015 12:15:11 -0000 Received: from [127.0.0.1] by smtp210.mail.gq1.yahoo.com with NNFMP; 20 Jun 2015 12:15:11 -0000 X-Yahoo-Newman-Id: 264660.61572.bm@smtp210.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: jXXEuoYVM1mwAriUcqbio_hT5eEfxuFjBAL_G9rIjlu.XdH iYlP6uJnOdX6Gd1tEUYpyN_l5z.m2s3uIjNRiW3pOR0KbMivowQ82SVec5pi 2CjpCJmTeyJNA5MNpz2wWG24FUztKuksplN1y5_DGSFRZR2JVG4.zsCr5kO_ GtaLIEKMMrS_YkOynlHwCn638krHobB_dnK0JDYBmJH3Y0EJam2QsetWzR0c fms9B49UEnyRLiQzBeKOKhCvDLylWc_SJF6PAOk8RUfe3HJoWMF2YNT67TN6 dRhpLBVCCE.OvboUc6DUIBeJQFHEPboHYfMIH6m7P.ucBdGOnrYbK_9VLNTG Lr2o5ysIZS9aQW_3RJcF2FbSLGM2b2V1MHrdme.paXHM5zkUmwD8zuvbaITW VcaiVzTysAyeLU4q5.RBEzC9gnVFF5eRoN5b144kApNun6B58gckU4rx3crj UbV2WBYNg44y8G6MtaY5u976ccOjz.Ld.OVoEd970yLp3E3FGXkGPKEYsyM9 RYQGQwgoj6np1XjeX1ir7fsJL9Y4tTEv1AUU- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Sat, 20 Jun 2015 22:14:34 +1000 Message-Id: <1434802475-4020-7-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1434802475-4020-1-git-send-email-t_arceri@yahoo.com.au> References: <1434802475-4020-1-git-send-email-t_arceri@yahoo.com.au> Subject: [Piglit] [PATCH 7/8] 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:c04::231 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