From patchwork Sat Oct 17 09:21:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: 'Timothy Arceri' via Patchwork Forward X-Patchwork-Id: 55152 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 7DE9122FFA for ; Sat, 17 Oct 2015 09:21:28 +0000 (UTC) Received: by lbbor1 with SMTP id or1sf12563326lbb.2 for ; Sat, 17 Oct 2015 02:21:27 -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=8QQ+a3y2R6VSlafdWL9PeiAuYGV0LOEz2Un5DG99wp8=; b=mRCU1s1fpkd75C8Zx/gf+NdAA0XgvuN4rvXjokIL0dxevHYGBEnFHFAtn9Y3fIixQo n2H5Tgdm0lPHFQ8QKZAOqk6SIdWdA20DDWfxCaY4Ox0kJGlZfJVuFCLUkXJkSjNS++IW Mp2RhHXPvatmc9FKPbrfoov4WLJEkzISFKUgtvgaxCHqQQ/nN1wjkDHTiKenvyyj/lZw 3Rwr230F/uEAyy1mN1EX4oWAWFnvZvUfQwuuSd5VzmOi5hFIxPcBTBMKzqIrBPsQYtW+ g+Cg6kZUDSo2B/acqv9q7DV/l2C6tgslTmtWqmhosd0NCN2/LpQY1allhr5lQJ8QuhYl KY3g== X-Gm-Message-State: ALoCoQkoLKMqPisSDjnMQwVj1B5sWiRbDs6r5EX9P6iH7bsAZTKQnIDLTF7Qs9xf03BRCjzGLCy8 X-Received: by 10.112.209.73 with SMTP id mk9mr4646740lbc.14.1445073687388; Sat, 17 Oct 2015 02:21:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.170.72 with SMTP id t69ls376321lfe.56.gmail; Sat, 17 Oct 2015 02:21:27 -0700 (PDT) X-Received: by 10.25.141.77 with SMTP id p74mr708947lfd.17.1445073686999; Sat, 17 Oct 2015 02:21:26 -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 f189si15610015lfb.73.2015.10.17.02.21.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 02:21:26 -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 lbbwb3 with SMTP id wb3so53048957lbb.1 for ; Sat, 17 Oct 2015 02:21:26 -0700 (PDT) X-Received: by 10.112.64.72 with SMTP id m8mr9981580lbs.41.1445073686714; Sat, 17 Oct 2015 02:21:26 -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.59.35 with SMTP id w3csp391093lbq; Sat, 17 Oct 2015 02:21:25 -0700 (PDT) X-Received: by 10.68.95.225 with SMTP id dn1mr21834178pbb.11.1445073685478; Sat, 17 Oct 2015 02:21:25 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id em5si35588866pbd.203.2015.10.17.02.21.25; Sat, 17 Oct 2015 02:21:25 -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 D86A66E12C; Sat, 17 Oct 2015 02:21:24 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm14-vm5.bullet.mail.gq1.yahoo.com (nm14-vm5.bullet.mail.gq1.yahoo.com [98.136.218.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6FB3E89264 for ; Sat, 17 Oct 2015 02:21:23 -0700 (PDT) Received: from [216.39.60.181] by nm14.bullet.mail.gq1.yahoo.com with NNFMP; 17 Oct 2015 09:21:21 -0000 Received: from [208.71.42.200] by tm17.bullet.mail.gq1.yahoo.com with NNFMP; 17 Oct 2015 09:21:21 -0000 Received: from [127.0.0.1] by smtp211.mail.gq1.yahoo.com with NNFMP; 17 Oct 2015 09:21:21 -0000 X-Yahoo-Newman-Id: 775279.56293.bm@smtp211.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _Z2uBFQVM1mVgmDj6aitBnAelJOA0xVQTU8vqlxSHknNzat oSmtWam5LDIN80kyRonPGxHg.484Vsj6ebnI.uUbhBumBHYiPl7eN0q8XEbx vgxdtd7omKdm8rpMJ5itIcVDav.wNJ.i4kEypnFNfK1VCEtSnYSTmvyHvyxJ gcSnHrfAyr1SAJYXMNPmGKx6G.hfTTa6wvOvG.W6Z4HsxWpYKeWx9S14oTJI PtKyIHkBC9GsRQxRdeQ6ehMniTuwxhkHxk_q8q4yYU5YUh_X_2BgCaMsSNIi 0M9ci1QFCTYPVHFtuA1QuptUoSb9gSN9vxkSLIwyFPYgtKqZu0WXMijGh2kD uwAdc5MQsVGrfkBbv5q2y9PqgEjsvpQbG6XOI4w9PNSk7EwVMn1u21s0aoqi oNiYxOSfUyGnOLFQeRQNJbkpsCt4UXMTNe_UjqqG3nBiS9Zq6NsNtHyTN43X bQZL2ejVhdFNqb_BkK5nWVlmAVdGIJeU_oOHsgOqnTU9bPthIt.9SSe5R901 1ITL2lwUIjvcs6QYSdSLMznp1sRD9QUHt778- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Sat, 17 Oct 2015 20:21:06 +1100 Message-Id: <1445073666-8670-1-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.4.3 Subject: [Piglit] [PATCH] arb_gpu_shader5: test member stream qualifiers match a named blocks qualifier 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.mailfrom=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 Named and unnamed interfaces have different code paths in Mesa this uncovers a bug with named instances. Reviewed-by: Samuel Iglesias Gonsálvez --- ...ltiple-named-block-layout-qualifier-stream.geom | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/spec/arb_gpu_shader5/compiler/stream-qualifier/incorrect-multiple-named-block-layout-qualifier-stream.geom diff --git a/tests/spec/arb_gpu_shader5/compiler/stream-qualifier/incorrect-multiple-named-block-layout-qualifier-stream.geom b/tests/spec/arb_gpu_shader5/compiler/stream-qualifier/incorrect-multiple-named-block-layout-qualifier-stream.geom new file mode 100644 index 0000000..83a4ff3 --- /dev/null +++ b/tests/spec/arb_gpu_shader5/compiler/stream-qualifier/incorrect-multiple-named-block-layout-qualifier-stream.geom @@ -0,0 +1,32 @@ +// [config] +// expect_result: fail +// glsl_version: 1.50 +// require_extensions: GL_ARB_gpu_shader5 +// check_link: false +// [end config] +// +// ARB_gpu_shader5 spec says: +// "A block member may be declared with a stream +// qualifier, but the specified stream must match the stream +// associated with the containing block." +// +// Tests for multiple declarations of layout qualifier 'stream' for +// block's fields. +// + +#version 150 +#extension GL_ARB_gpu_shader5 : enable + +layout(points) in; +layout(triangle_strip, max_vertices=3) out; + +out Block1 { // By default, it uses stream = 0 + layout(stream=1) vec4 var1; // Wrong: different than block's stream value + layout(stream=3) vec4 var2; // Wrong: different than block's stream value + layout(stream=0) vec4 var3; // Valid + vec4 var4; // Valid +} block_name; + +void main() +{ +}