From patchwork Thu Dec 4 21:18:21 2014 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: 41952 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9E1B2486D for ; Thu, 4 Dec 2014 21:18:53 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf11677905wib.6 for ; Thu, 04 Dec 2014 13:18:53 -0800 (PST) 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: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=5H90o1duw+KYnvLHOoAEyIU3s4GX8065ylR0ydF6jzU=; b=fTK+FKz0/LSFbfCRubfMENb124Est8QydzEfApm87u4IVLqpx5LxN0iNZh5nyg4TdU 1k3yyVSNtUkh0szvWBMrmBTTufWvTBN6tmXQ9oQYQPuU7pgsi7DWljTa5FHADe+OUruq v8yoHaJGfdBdxrZ6OAZscSA6CxHVOVIv2ULhONFBCemPmexCFK/orka56sCk3U4Kgzxy mSRTE6/JZ2qoodH2qTKqb7ZRTO0JiicPjo+it9Gg2XvR6vaa0jdR8V9vrTBq62hO3YBX Hn+/QtYLCfrlkhzgBORt8QC6BysPJv+sz87w5btw0apqqCdvwyCvr+FkksZHhivGkpvt Z5tg== X-Gm-Message-State: ALoCoQk+htGv/7AVj0Rvce8M680HvBdPtaxzkDAmendPgsE89TF16D4QTZSMt2EwKLXC4njxtGw3 X-Received: by 10.180.106.67 with SMTP id gs3mr17954135wib.3.1417727933049; Thu, 04 Dec 2014 13:18:53 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.100 with SMTP id 4ls346585lal.89.gmail; Thu, 04 Dec 2014 13:18:52 -0800 (PST) X-Received: by 10.112.234.201 with SMTP id ug9mr11395733lbc.79.1417727932826; Thu, 04 Dec 2014 13:18:52 -0800 (PST) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com. [2a00:1450:4010:c04::22a]) by mx.google.com with ESMTPS id w5si27106512law.53.2014.12.04.13.18.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Dec 2014 13:18:52 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22a as permitted sender) client-ip=2a00:1450:4010:c04::22a; Received: by mail-lb0-f170.google.com with SMTP id w7so14926960lbi.15 for ; Thu, 04 Dec 2014 13:18:52 -0800 (PST) X-Received: by 10.152.21.66 with SMTP id t2mr11307287lae.27.1417727932725; Thu, 04 Dec 2014 13:18:52 -0800 (PST) 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.184.201 with SMTP id ew9csp113210lbc; Thu, 4 Dec 2014 13:18:51 -0800 (PST) X-Received: by 10.67.14.36 with SMTP id fd4mr22009431pad.79.1417727930952; Thu, 04 Dec 2014 13:18:50 -0800 (PST) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id hf2si17331835pac.204.2014.12.04.13.18.50 for ; Thu, 04 Dec 2014 13:18:50 -0800 (PST) Received-SPF: none (google.com: piglit-bounces@lists.freedesktop.org does not designate permitted sender hosts) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 01FC06E340; Thu, 4 Dec 2014 13:18:50 -0800 (PST) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm3-vm9.bullet.mail.gq1.yahoo.com (nm3-vm9.bullet.mail.gq1.yahoo.com [98.136.218.152]) by gabe.freedesktop.org (Postfix) with ESMTP id BD22C6E340 for ; Thu, 4 Dec 2014 13:18:48 -0800 (PST) Received: from [216.39.60.181] by nm3.bullet.mail.gq1.yahoo.com with NNFMP; 04 Dec 2014 21:18:48 -0000 Received: from [98.136.164.69] by tm17.bullet.mail.gq1.yahoo.com with NNFMP; 04 Dec 2014 21:18:48 -0000 Received: from [127.0.0.1] by smtp231.mail.gq1.yahoo.com with NNFMP; 04 Dec 2014 21:18:48 -0000 X-Yahoo-Newman-Id: 84102.99391.bm@smtp231.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: sCVWRZ0VM1nsbHd4wPs9P6b7rEu97rIlmxwcpPhaCDdhd.3 cRNTm9ijDpDR2JfsdP.nDieg8csYoyCEzE_yiqOam54yLp61vGL0IWCiSE5y KScvjE.M_yropphuTxA8431PzsRI9Ckh0b919QfJBReDmutCyhT5lbDAZrKq Mktxs3BZ_0yFT5XUT8HWRyJOK4N3GV3P3yYOqn109Dd8JwAeItys5hT0dWyF DF56R8fOHnf4H36_L.7wvg6Ja5rlN7dsDGAQ3OX0dpXNj_yPtdVL4mg0ofgf WnUTU2o7iqjodHrn39k0GBs2UPtVNKSaXFJke1YdeboUjIq13SF75Bdagkz9 XyfBB9zEcMnErMhyMjGlhZTV2Ose5niyoZ35AK.1Uz.CaQlmGo6eYe2HvKJ1 iyj3ZdSQYQ1SgxaHosNhKygb64nKWxgmuNRTzuBT9GWs.g3t7FuyRa3_Msm4 9EYJvf9dZlrMa83txB.u9dAF7IYR.9ocTtwgqED6tE4ZSLIPLaYipUnZErxu x28UXjPJTaQ.s3cAkJhmQsUo- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Fri, 5 Dec 2014 08:18:21 +1100 Message-Id: <1417727901-15282-1-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 1.9.3 Subject: [Piglit] [PATCH V2] glsl-1.20: test implicitly sized arrays match explicitly sized arrays across the same stage 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::22a as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; 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: Add Catalyst test results Test results: AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3 intrastage-unsized-array-mismatch.shader_test AMD: pass intrastage-unsized-array-mismatch2.shader_test AMD: pass intrastage-unsized-array.shader_test AMD: fail intrastage-unsized-array2.shader_test AMD: pass Signed-off-by: Timothy Arceri --- .../intrastage-unsized-array-mismatch.shader_test | 33 ++++++++++++++++++++++ .../intrastage-unsized-array-mismatch2.shader_test | 33 ++++++++++++++++++++++ .../linker/intrastage-unsized-array.shader_test | 33 ++++++++++++++++++++++ .../linker/intrastage-unsized-array2.shader_test | 33 ++++++++++++++++++++++ 4 files changed, 132 insertions(+) create mode 100644 tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch.shader_test create mode 100644 tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch2.shader_test create mode 100644 tests/spec/glsl-1.20/linker/intrastage-unsized-array.shader_test create mode 100644 tests/spec/glsl-1.20/linker/intrastage-unsized-array2.shader_test diff --git a/tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch.shader_test b/tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch.shader_test new file mode 100644 index 0000000..cdf3a91 --- /dev/null +++ b/tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch.shader_test @@ -0,0 +1,33 @@ +# This test verifies that a link error is generated if implicitly sized +# arrays dont match explicitly sized arrays across the same stage. + +[require] +GLSL >= 1.20 + +[vertex shader] +#version 120 + +varying vec4 color[3]; + +void f() +{ + color[1] = vec4(1, 0, 0, 1); +} + +[vertex shader] +#version 120 + +varying vec4 color[]; + +void f(); + +void main() +{ + f(); + color[3] = vec4(1, 0, 0, 1); + + gl_Position = gl_Vertex; +} + +[test] +link error diff --git a/tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch2.shader_test b/tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch2.shader_test new file mode 100644 index 0000000..764469a --- /dev/null +++ b/tests/spec/glsl-1.20/linker/intrastage-unsized-array-mismatch2.shader_test @@ -0,0 +1,33 @@ +# This test verifies that a link error is generated if implicitly sized +# arrays dont match explicitly sized arrays across the same stage. + +[require] +GLSL >= 1.20 + +[vertex shader] +#version 120 + +varying vec4 color[]; + +void f() +{ + color[3] = vec4(1, 0, 0, 1); +} + +[vertex shader] +#version 120 + +varying vec4 color[3]; + +void f(); + +void main() +{ + f(); + color[2] = vec4(1, 0, 0, 1); + + gl_Position = gl_Vertex; +} + +[test] +link error diff --git a/tests/spec/glsl-1.20/linker/intrastage-unsized-array.shader_test b/tests/spec/glsl-1.20/linker/intrastage-unsized-array.shader_test new file mode 100644 index 0000000..6fdd806 --- /dev/null +++ b/tests/spec/glsl-1.20/linker/intrastage-unsized-array.shader_test @@ -0,0 +1,33 @@ +# Test implicitly sized arrays match explicitly sized arrays +# across the same stage. + +[require] +GLSL >= 1.20 + +[vertex shader] +#version 120 + +varying vec4 color[4]; + +void f() +{ + color[1] = vec4(1, 0, 0, 1); +} + +[vertex shader] +#version 120 + +varying vec4 color[]; + +void f(); + +void main() +{ + f(); + color[3] = vec4(1, 0, 0, 1); + + gl_Position = gl_Vertex; +} + +[test] +link success diff --git a/tests/spec/glsl-1.20/linker/intrastage-unsized-array2.shader_test b/tests/spec/glsl-1.20/linker/intrastage-unsized-array2.shader_test new file mode 100644 index 0000000..6af80c2 --- /dev/null +++ b/tests/spec/glsl-1.20/linker/intrastage-unsized-array2.shader_test @@ -0,0 +1,33 @@ +# Test implicitly sized arrays match explicitly sized arrays +# across the same stage. + +[require] +GLSL >= 1.20 + +[vertex shader] +#version 120 + +varying vec4 color[]; + +void f() +{ + color[3] = vec4(1, 0, 0, 1); +} + +[vertex shader] +#version 120 + +varying vec4 color[4]; + +void f(); + +void main() +{ + f(); + color[1] = vec4(1, 0, 0, 1); + + gl_Position = gl_Vertex; +} + +[test] +link success