From patchwork Sun Mar 29 11:01:00 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: 46460 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DBE4E2159F for ; Sun, 29 Mar 2015 11:01:19 +0000 (UTC) Received: by wgqa9 with SMTP id a9sf18195977wgq.2 for ; Sun, 29 Mar 2015 04:01:19 -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: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=8iKUXE3TvO4hOiXz35jnOaOUy1NfELLSVd0L6pErnQM=; b=DVNGHPT2NJkKZruBW7SRvgM1FB19kZ36p41e8xrZkZNK1S6ILZnZNHMwwKTbs5mS5p pK7kwYKDFykAqEzj2Mc2An+OGUbSLSIU4RvZ9qnJ8FRwisr0127ZZ9FxPGyOHJG/K04A ztejP0WSlOCYq5GJGQr15hEY/KJ4frrXW397iA5pp7ahFvEm5t3c/zJoKNNUG9elRicd TQuDLpEn5uOj1fnjiGAWbj7ISyC3A2m9nV+3JuQI3X82/wbm/gZk4HeMKnGikb8Hi+zR aB/E5Gf33B92LiXIFFzAPIW7TLl9bGFpNl6hRUzkpDu9A+B5vZheyll7WOrr49ZtPFUL PVTQ== X-Gm-Message-State: ALoCoQmcPA0gUNIm+CZwt0Uv+bx1QDx7Xt82yyGgF5CrMIm+enUehSD3OazsCV4iNa4rZmizbhlS X-Received: by 10.112.122.97 with SMTP id lr1mr5518001lbb.5.1427626879155; Sun, 29 Mar 2015 04:01:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.115.240 with SMTP id jr16ls555963lab.69.gmail; Sun, 29 Mar 2015 04:01:19 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr24190509lak.111.1427626879040; Sun, 29 Mar 2015 04:01:19 -0700 (PDT) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com. [2a00:1450:4010:c04::22b]) by mx.google.com with ESMTPS id zr4si5131910lbc.130.2015.03.29.04.01.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2015 04:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22b as permitted sender) client-ip=2a00:1450:4010:c04::22b; Received: by lboc7 with SMTP id c7so32847049lbo.1 for ; Sun, 29 Mar 2015 04:01:18 -0700 (PDT) X-Received: by 10.152.87.135 with SMTP id ay7mr9537800lab.88.1427626878710; Sun, 29 Mar 2015 04:01:18 -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.57.201 with SMTP id k9csp846644lbq; Sun, 29 Mar 2015 04:01:17 -0700 (PDT) X-Received: by 10.70.28.5 with SMTP id x5mr50472833pdg.13.1427626875983; Sun, 29 Mar 2015 04:01:15 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id a10si10458518pat.40.2015.03.29.04.01.15; Sun, 29 Mar 2015 04:01:15 -0700 (PDT) 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 9888089CDE; Sun, 29 Mar 2015 04:01:14 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm20-vm9.bullet.mail.gq1.yahoo.com (nm20-vm9.bullet.mail.gq1.yahoo.com [98.136.217.40]) by gabe.freedesktop.org (Postfix) with ESMTP id 3308789CDE for ; Sun, 29 Mar 2015 04:01:13 -0700 (PDT) Received: from [98.137.12.58] by nm20.bullet.mail.gq1.yahoo.com with NNFMP; 29 Mar 2015 11:01:12 -0000 Received: from [208.71.42.211] by tm3.bullet.mail.gq1.yahoo.com with NNFMP; 29 Mar 2015 11:01:12 -0000 Received: from [127.0.0.1] by smtp222.mail.gq1.yahoo.com with NNFMP; 29 Mar 2015 11:01:12 -0000 X-Yahoo-Newman-Id: 495233.38522.bm@smtp222.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _7Dyt8YVM1nGYbs5V4wKK.dmM3xrziBIO3Qi8IEvr8g2meO kWA7aY9s_OD1Lh1FLUAHYGtPE3rOwHCo2AicZWPMhGxUndI5ZpSI2AJA_iOM 1tAKKV9.A8XxluPgxWydN7cxWRDhlKIU2yalJnV0pyfi5oMtHqoRGRCffLtg Wef9I0z_P1P_xrROQsHFUKbOPeSumJJ8VxwRVqNjtR4XIfFiR3hPyX_lZXiX VbMYGTOCWAhcRtapVqbfM.IAOJKgl7HjrNdkpUBdryqOZ0cd9pEmvtW6EK36 A49JD01q0oIiHAfiEjdgqgF5bBnbAC0zcZj8jPg8D6cND4UrAqV0bJJzMuos zzTn9nqXpMdCPk7EAy4YOpDeT9PQNzRt4pAQ_sNKLhE522HAwngRZkoYMGHG v.L0NXWymMQXQ2FjMAx3X8B7Pe310uCJB3VMNMLRvERyYuT55GUZRagMAQIb zK9xnxWRGxeVqEHJqChNEJ6EzHH3zcgiV1_ewxTsfbtn31abRnpH3hL__SSd xxvs2lTvWnbLu5CUNCPQram9MLVga58ymVao- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Sun, 29 Mar 2015 22:01:00 +1100 Message-Id: <1427626861-32553-1-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.1.0 Subject: [Piglit] [PATCH 1/2] arb_arrays_of_arrays: test linking of interface fields 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::22b 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 Test results: AMD Radeon HD 6670 - Catalyst 14.501.1003 OpenGL 4.4 vs-to-fs-interface-field-mismatch.shader_test - fail vs-to-fs-interface-field-mismatch2.shader_test - fail vs-to-fs-interface-field-unsized-mismatch.shader_test - crash vs-to-fs-interface-field-unsized-mismatch2.shader_test - crash vs-to-fs-interface-field-unsized.shader_test - crash vs-to-fs-interface-field-unsized2.shader_test - crash Nvidia GeForce 840M - NVIDIA 346.47 vs-to-fs-interface-field-mismatch.shader_test - fail vs-to-fs-interface-field-mismatch2.shader_test - fail vs-to-fs-interface-field-unsized-mismatch.shader_test - fail vs-to-fs-interface-field-unsized-mismatch2.shader_test - fail vs-to-fs-interface-field-unsized.shader_test - pass vs-to-fs-interface-field-unsized2.shader_test - fail --- This is a resend the only difference is Nvidia results are included. .../vs-to-fs-interface-field-mismatch.shader_test | 36 +++++++++++++++++++ .../vs-to-fs-interface-field-mismatch2.shader_test | 36 +++++++++++++++++++ ...fs-interface-field-unsized-mismatch.shader_test | 36 +++++++++++++++++++ ...s-interface-field-unsized-mismatch2.shader_test | 37 +++++++++++++++++++ .../vs-to-fs-interface-field-unsized.shader_test | 36 +++++++++++++++++++ .../vs-to-fs-interface-field-unsized2.shader_test | 41 ++++++++++++++++++++++ 6 files changed, 222 insertions(+) create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch2.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch2.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized2.shader_test diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch.shader_test new file mode 100644 index 0000000..68a8217 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch.shader_test @@ -0,0 +1,36 @@ +# Test for linking error when interface fields +# have mismatching array sizes + +[require] +GLSL >= 1.50 +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +out ArraysOfArraysBlock +{ + vec4 a[3][2]; +} i; + +void main() +{ + i.a[1][1] = vec4(1.0); + gl_Position = vec4(1.0); +} + +[fragment shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +in ArraysOfArraysBlock +{ + vec4 a[2][2]; +} i; + +void main() +{ + gl_FragColor = i.a[1][1]; +} + +[test] +link error diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch2.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch2.shader_test new file mode 100644 index 0000000..a76ba52 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-mismatch2.shader_test @@ -0,0 +1,36 @@ +# Test for linking error when interface fields +# have mismatching array sizes + +[require] +GLSL >= 1.50 +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +out ArraysOfArraysBlock +{ + vec4 a[3][2]; +} i; + +void main() +{ + i.a[1][1] = vec4(1.0); + gl_Position = vec4(1.0); +} + +[fragment shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +in ArraysOfArraysBlock +{ + vec4 a[3][4]; +} i; + +void main() +{ + gl_FragColor = i.a[1][1]; +} + +[test] +link error diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch.shader_test new file mode 100644 index 0000000..76321e5 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch.shader_test @@ -0,0 +1,36 @@ +# Test for linking error between vertex and fragment shaders +# when interface fields are unmatching unsized arrays + +[require] +GLSL >= 1.50 +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +out ArraysOfArraysBlock +{ + vec4 a[][3]; +} i; + +void main() +{ + i.a[2][2] = vec4(1.0); + gl_Position = vec4(1.0); +} + +[fragment shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +in ArraysOfArraysBlock +{ + vec4 a[][3]; +} i; + +void main() +{ + gl_FragColor = i.a[1][2]; +} + +[test] +link error diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch2.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch2.shader_test new file mode 100644 index 0000000..12acb1e --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized-mismatch2.shader_test @@ -0,0 +1,37 @@ +# Test for linking error between vertex and fragment shaders +# when interface fields are unmatching unsized arrays, and the interface +# itself is an array of arrays. + +[require] +GLSL >= 1.50 +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +out ArraysOfArraysBlock +{ + vec4 a[][2]; +} i[2][2]; + +void main() +{ + i[0][1].a[1][1] = vec4(1.0); + gl_Position = vec4(1.0); +} + +[fragment shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +in ArraysOfArraysBlock +{ + vec4 a[][2]; +} i[2][2]; + +void main() +{ + gl_FragColor = i[0][1].a[0][1]; +} + +[test] +link error diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized.shader_test new file mode 100644 index 0000000..f53e932 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized.shader_test @@ -0,0 +1,36 @@ +# Test for successful linking between vertex and fragment shaders +# when interface field is an unsized array + +[require] +GLSL >= 1.50 +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +out ArraysOfArraysBlock +{ + vec4 a[][3]; +} i; + +void main() +{ + i.a[1][2] = vec4(1.0); + gl_Position = vec4(1.0); +} + +[fragment shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +in ArraysOfArraysBlock +{ + vec4 a[][3]; +} i; + +void main() +{ + gl_FragColor = i.a[1][2]; +} + +[test] +link success diff --git a/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized2.shader_test b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized2.shader_test new file mode 100644 index 0000000..2696904 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/linker/vs-to-fs-interface-field-unsized2.shader_test @@ -0,0 +1,41 @@ +# Test for successful linking between vertex and fragment shaders +# when interface field is an unsized array, and the interface +# itself is an array of arrays instance +# +# Note: The size of the arrays also means this tests the +# max boundary of GL_MAX_VERTEX_ATTRIBS when it's set +# to 64 (the mininum allowed for an implementation). + +[require] +GLSL >= 1.50 +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +out ArraysOfArraysBlock +{ + vec4 a[][2]; +} i[2][2]; + +void main() +{ + i[1][0].a[1][1] = vec4(1.0); + gl_Position = vec4(1.0); +} + +[fragment shader] +#version 150 +#extension GL_ARB_arrays_of_arrays: enable +in ArraysOfArraysBlock +{ + vec4 a[][2]; +} i[2][2]; + +void main() +{ + gl_FragColor = i[1][0].a[1][1]; +} + +[test] +link success