From patchwork Sat Jun 20 12:14:29 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: 50123 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A54B821594 for ; Sat, 20 Jun 2015 12:15:03 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf34237129lbb.0 for ; Sat, 20 Jun 2015 05:15:02 -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=h27zvF9WHaEZ9t46C/8JeAadEU9GMTVnAwI+uxFNTf4=; b=iU+htdEzTIRZYRfPsa0HSvmtpgNZJIt6sXUWggnOIxjAjEpNtUA0ZrwYrIj/pOyL9d juHSX8qBWrP/US448tDjOBlQlc8jPLtBeGgAHId6GpxMmEPFYlccQgv51VCwFR9whqR/ f1G+/4p4ZhjuStYAbOl7KbebYy+wlHUXsVxS6DBd6DZx3Px4vSKli9kztxMbDkDGSReS twpBXtJXHPNjzv1SorMP/NOGnKWGDyL3yV3y5MJRAQm565FMq6EFf7V1Ivzlbe5fupOp 8CmUF38Ei+2E7rWKNcv9C2F/8Yga1wjvstQMdVkX8xCIj3ahlXSkoVdNAggVNQysZxvc XoqQ== X-Gm-Message-State: ALoCoQlJ+xda3flW7KH7Lucb4BMFoaU6VLk5KA/iuv4+WQ/uQ18CR5gDEnyzOIyNgf2/pxjPM862 X-Received: by 10.180.182.110 with SMTP id ed14mr7624340wic.5.1434802502606; Sat, 20 Jun 2015 05:15:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.194 with SMTP id 2ls751430law.0.gmail; Sat, 20 Jun 2015 05:15:02 -0700 (PDT) X-Received: by 10.112.55.70 with SMTP id q6mr21146253lbp.99.1434802502470; Sat, 20 Jun 2015 05:15:02 -0700 (PDT) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com. [2a00:1450:4010:c03::229]) by mx.google.com with ESMTPS id dn7si11655071lbb.71.2015.06.20.05.15.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Jun 2015 05:15:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::229 as permitted sender) client-ip=2a00:1450:4010:c03::229; Received: by labko7 with SMTP id ko7so87668686lab.2 for ; Sat, 20 Jun 2015 05:15:02 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr21665885lak.117.1434802502178; Sat, 20 Jun 2015 05:15:02 -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 hn6csp1209384lbb; Sat, 20 Jun 2015 05:15:00 -0700 (PDT) X-Received: by 10.70.48.68 with SMTP id j4mr30479393pdn.111.1434802500097; Sat, 20 Jun 2015 05:15:00 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id h8si20985969pdn.89.2015.06.20.05.14.59; Sat, 20 Jun 2015 05:15:00 -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 060376E70B; Sat, 20 Jun 2015 05:14:59 -0700 (PDT) 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 B19886E705 for ; Sat, 20 Jun 2015 05:14:57 -0700 (PDT) Received: from [98.137.12.56] by nm3.bullet.mail.gq1.yahoo.com with NNFMP; 20 Jun 2015 12:14:57 -0000 Received: from [208.71.42.199] by tm1.bullet.mail.gq1.yahoo.com with NNFMP; 20 Jun 2015 12:14:57 -0000 Received: from [127.0.0.1] by smtp210.mail.gq1.yahoo.com with NNFMP; 20 Jun 2015 12:14:57 -0000 X-Yahoo-Newman-Id: 294619.61572.bm@smtp210.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 83iZYkoVM1nx2BrhbjQzdXcL03vO1T4NxGF8WFagZTAlG5g g.LEpCDQl0XHcbQdQ1AbVtmLXpaFsKA7ALnddKLum1L.l0q09MNxKnNZNY_B rE48l_WwgYpD5PJT9PS3cg.iLphbw6f_WE.snvrc0OLnhRf2uXwk43QTZbFP FhOqsvtyXfv_bs4t3ktA6jrTWS.L6uTr.ayM2Sl4YqZWu42NeiJ6b3Q9OF32 QYtmFvVqID_i9WsPMFqdeN8JZRxDpTrhlFO4gB8Ubo3qVFIuDv9Qh_a2mqxH vqWJKIeclUxuB_GAWAZThpDsFJtDRpQyvQkUX6PdHPw53sPTjcO82ph2xcuH rsCFV6se6.OBoBliJd1boDYUl3m8siuFAiMsrw3QHpdJVUql8ZTE.7uKeF.W e6EWHHFvt1Jd0N8mGZ.wywuUuQKOhJ7z_GMaRh03AQWYj41j_HEmInb4qE1j n418dpAAV4JQb5Hwx8ZRVdrPUe7UZLashPbeq7jqLsAaBMLdjruzo63.dNW_ SOUEP2_Wzz9r0DcQjT5fn4dr7up8nRKeDB1o- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Sat, 20 Jun 2015 22:14:29 +1000 Message-Id: <1434802475-4020-2-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 2/8] 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:c03::229 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: 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 --- .../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