From patchwork Sun Jul 5 07:18:15 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: 50666 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 00D9A229FC for ; Sun, 5 Jul 2015 07:19:06 +0000 (UTC) Received: by laer2 with SMTP id r2sf38436690lae.3 for ; Sun, 05 Jul 2015 00:19:05 -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=/2bdp2umrRxbxXUhYWAXeX5uwScCOBBWilUhJcQU2d8=; b=OAlsQtNBnOlB/eagIMKVTorAU5Wib0AaYoJ7YiaHQv79EnGJzl6+bziNGALTTpHKZ0 YnyV9QCcNK0rd2U2YhYt8Ke+IhIufX4SQKwfKzLaAW+rvhRCAia3mBrmQdPdEnzA5lnn HgH8/MhV5M3nQrcoQONaC/Fww0F/P2c7eEvf+DR/GQf/BtWsV1QTn3SQ5FOxTD+/lxHw 8+UU1TAhfiJdz9wrckLrrUJZ3Is5IbWaylKCaMONhMNMUqYNZkMWHcRSCjz6x5RstISH LrerGz2okr+n6C54zvprCRZYbk3SMamZoD9QGN02TABD2hOrYK528Fro0+Ako6lJ9NFX 1gHA== X-Gm-Message-State: ALoCoQnfzDvCIZsRJ1X023hZ6EfDM5HGj6rDOueADC6XF9o3p2zh6HK6lPBeOUarr7QKiSLe3MmY X-Received: by 10.194.81.136 with SMTP id a8mr27276738wjy.2.1436080744990; Sun, 05 Jul 2015 00:19:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.70 with SMTP id le6ls610358lac.10.gmail; Sun, 05 Jul 2015 00:19:04 -0700 (PDT) X-Received: by 10.112.92.99 with SMTP id cl3mr44080629lbb.34.1436080744467; Sun, 05 Jul 2015 00:19:04 -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 rs2si11951053lbb.106.2015.07.05.00.19.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Jul 2015 00:19:04 -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 laar3 with SMTP id r3so122977731laa.0 for ; Sun, 05 Jul 2015 00:19:04 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr43081660lay.72.1436080744362; Sun, 05 Jul 2015 00:19:04 -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 hn6csp991918lbb; Sun, 5 Jul 2015 00:19:03 -0700 (PDT) X-Received: by 10.66.185.199 with SMTP id fe7mr53429721pac.48.1436080742519; Sun, 05 Jul 2015 00:19:02 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id il2si22838031pbc.120.2015.07.05.00.19.01; Sun, 05 Jul 2015 00:19:02 -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 72CE96E34B; Sun, 5 Jul 2015 00:19:01 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm8-vm8.bullet.mail.gq1.yahoo.com (nm8-vm8.bullet.mail.gq1.yahoo.com [98.136.218.231]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7DD3C6E357 for ; Sun, 5 Jul 2015 00:19:00 -0700 (PDT) Received: from [98.137.12.60] by nm8.bullet.mail.gq1.yahoo.com with NNFMP; 05 Jul 2015 07:18:59 -0000 Received: from [208.71.42.198] by tm5.bullet.mail.gq1.yahoo.com with NNFMP; 05 Jul 2015 07:18:59 -0000 Received: from [127.0.0.1] by smtp209.mail.gq1.yahoo.com with NNFMP; 05 Jul 2015 07:18:59 -0000 X-Yahoo-Newman-Id: 938922.47191.bm@smtp209.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Q7Ty9fAVM1mgaXsizjWSYKFi6eeDK8yOHe3jNOgLb5qW41Q nzo4MpjsxeKk3Y_av6DmL78qPdizI_6rbT2OJLT_Ci1SCFZitahTxjFSe2wf uvz5ca2dfzUBylBFuCZ1W7oZGT97rMiA6AsedPz6SQf9zM3tY8W21mPQK_ah OLDXHxE7wDzLJSC4kbC2vX6fOm2cBGFAarqnjR_gpXQBqMS7mD4KFu0JHLtz dOLMHTXcpeLgU5lNb4JzB5QL0TZRHnjWblYJx8tvXOTePH3Fn23CC0QkozJD SLJBH1SFl19BuvqKFNciIjUpZnqXIFW92uzTcQwQI82lD3m7S7erXA20nRNQ Bfg3oGhsFV6Cpk36LRiExIErtNWWt5Leo4dF_AkkPv0V1ej3nN.rMS0Iv4xF LRNO_tSiZcchjQlL01l3oNxwhZ9DaqzoU5qMTTExep2HX28Ly3AHVmqGNmbE qqQAp2sTRMkTkUfr.cki43E0gF0Kaw8_GAiwgPTZb9wozMXT.tjAGabyU76e wZFKcvBUQiWcDsaNwbrdw6uY6RV0KlBIYUpc- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Sun, 5 Jul 2015 17:18:15 +1000 Message-Id: <1436080696-9702-5-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1436080696-9702-1-git-send-email-t_arceri@yahoo.com.au> References: <1436080696-9702-1-git-send-email-t_arceri@yahoo.com.au> Subject: [Piglit] [PATCH V3 5/6] 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::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: 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