From patchwork Fri Mar 27 13:12:43 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: 46403 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9FD6621585 for ; Fri, 27 Mar 2015 13:13:11 +0000 (UTC) Received: by labow10 with SMTP id ow10sf12276304lab.1 for ; Fri, 27 Mar 2015 06:13:10 -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=TpaXCCCnvKnCbHM5XJqbDuMpD2mDa3Bh39JRqE+RlNM=; b=OrOn/UD1j0ggzgSEQ2cv0ABpL1Sl4RixxDp5dJBBVerllQel4ucDu5t/M3sUorlIqZ u6YOVupk0DjtlqxBsPzZ/4iZw+sfhwDQnWRdI0rWjsqTUTty7mcXDm2qglUy/Hfr2AZI 10Lzv1bKZJpoy9gHl1k58CZ+KimkN97oy+2TGw0RedXEdabjOGZJyGuvzBsoh8zT9kpP rkIHybiXuRq69AhTwnHG5XFFeRAQ5OxxoFy+THLQTaCyoxA4nCswHBXpkiL7R0S312ZZ dQPwZN91j5JlUn/pDYs8cd/YbHLjki9ZGfK14tjaJ2pJEnT3hpz9RH8WfPqwt6damRor dW7g== X-Gm-Message-State: ALoCoQnmwOi+7aMu2YQICT+dRoDuq693Y3n1fEIBspzciM2QXxtqTOamiZADAV5r4AICnTUUX4wD X-Received: by 10.180.218.2 with SMTP id pc2mr628408wic.0.1427461990492; Fri, 27 Mar 2015 06:13:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.242.132 with SMTP id wq4ls379763lac.30.gmail; Fri, 27 Mar 2015 06:13:10 -0700 (PDT) X-Received: by 10.152.26.136 with SMTP id l8mr17800561lag.109.1427461990363; Fri, 27 Mar 2015 06:13:10 -0700 (PDT) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com. [2a00:1450:4010:c03::22a]) by mx.google.com with ESMTPS id l3si1389387lah.44.2015.03.27.06.13.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 06:13:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22a as permitted sender) client-ip=2a00:1450:4010:c03::22a; Received: by lagg8 with SMTP id g8so69974461lag.1 for ; Fri, 27 Mar 2015 06:13:10 -0700 (PDT) X-Received: by 10.152.121.33 with SMTP id lh1mr17829255lab.86.1427461990214; Fri, 27 Mar 2015 06:13:10 -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 k9csp1251656lbq; Fri, 27 Mar 2015 06:13:09 -0700 (PDT) X-Received: by 10.68.205.226 with SMTP id lj2mr3161588pbc.52.1427461988358; Fri, 27 Mar 2015 06:13:08 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id zj2si2839115pbb.29.2015.03.27.06.13.07; Fri, 27 Mar 2015 06:13:08 -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 461986EB85; Fri, 27 Mar 2015 06:13:07 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm17-vm3.bullet.mail.gq1.yahoo.com (nm17-vm3.bullet.mail.gq1.yahoo.com [98.137.177.227]) by gabe.freedesktop.org (Postfix) with ESMTP id 0BDF96EB85 for ; Fri, 27 Mar 2015 06:13:06 -0700 (PDT) Received: from [98.137.12.191] by nm17.bullet.mail.gq1.yahoo.com with NNFMP; 27 Mar 2015 13:13:05 -0000 Received: from [208.71.42.208] by tm12.bullet.mail.gq1.yahoo.com with NNFMP; 27 Mar 2015 13:13:05 -0000 Received: from [127.0.0.1] by smtp219.mail.gq1.yahoo.com with NNFMP; 27 Mar 2015 13:13:05 -0000 X-Yahoo-Newman-Id: 688118.54012.bm@smtp219.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: zCaRxAUVM1np.orSlEX_L2QvP7zSSPhL5r21W1wuKs_kcTc 9rb5tfUu9X_h_QcZpXURrN32GqljjUYws58BBkJobMAYKtE4A5w9uC8O7KtJ cHC1TnKao2KNFB6g9yuoTjqMMgvTP.xNLekDAauAzplfNx9kFk2XXGjRh.hQ pxGne2el7InoY3QgtTXGx9bjs.SBYfZqWfUhroOiBYu3Flr89dfsB.jko4Ds 4dvSWOdE9jvVvGXLab0tWT7Tlym948HvqMTIrk_JPP0bG_9jGGKITclemaEJ pFYbb0iaOc4aR.M6j7P9TOd19.4b4iP1vmEOjzZtsc8J9oGPeiZ1DQp.Oxod vDJYSJbH2e7sPjUAu8Fwd9rv9fqyd4eHkcFBbF3TpT86du0oNDvQbXCwfKCw .O3i2QF6Aktqm.lvxRJze.V3LwzUW27KFnFMusdG6Om2qa4owlOthPNH8Wie gSnddIGi6T.6U4_5rCb9dYKWW57oKSxIgPwQLC2OZku9M_vnK9PN4h.nMPf_ YYmaL.MU9d3.YRmywb3NAP_3OH7FvEsGsf9o- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Sat, 28 Mar 2015 00:12:43 +1100 Message-Id: <1427461963-13703-1-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.1.0 Subject: [Piglit] [PATCH] glsl-1.50: check read only interfaces are read only 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::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 Test results: AMD Radeon HD 6670 - Catalyst 14.501.1003 OpenGL 4.4 interface-block-instance-name-input-read-only.frag - pass interface-block-input-read-only.frag - pass interface-block-instance-name-uniform-read-only.frag - fail interface-block-uniform-read-only.frag - fail --- .../compiler/interface-block-input-read-only.frag | 20 ++++++++++++++++++++ ...nterface-block-instance-name-input-read-only.frag | 20 ++++++++++++++++++++ ...erface-block-instance-name-uniform-read-only.frag | 20 ++++++++++++++++++++ .../compiler/interface-block-uniform-read-only.frag | 20 ++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag create mode 100644 tests/spec/glsl-1.50/compiler/interface-block-instance-name-input-read-only.frag create mode 100644 tests/spec/glsl-1.50/compiler/interface-block-instance-name-uniform-read-only.frag create mode 100644 tests/spec/glsl-1.50/compiler/interface-block-uniform-read-only.frag diff --git a/tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag b/tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag new file mode 100644 index 0000000..304aacf --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag @@ -0,0 +1,20 @@ +// [config] +// expect_result: fail +// glsl_version: 1.50 +// check_link: false +// [end config] +// +// Check that an error is generated when trying +// to change the value of a shader input. + +#version 150 + +in Block { + vec4 invar; +}; + +void main() +{ + invar = vec4(1.0); + gl_FragColor = invar; +} diff --git a/tests/spec/glsl-1.50/compiler/interface-block-instance-name-input-read-only.frag b/tests/spec/glsl-1.50/compiler/interface-block-instance-name-input-read-only.frag new file mode 100644 index 0000000..d001db8 --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/interface-block-instance-name-input-read-only.frag @@ -0,0 +1,20 @@ +// [config] +// expect_result: fail +// glsl_version: 1.50 +// check_link: false +// [end config] +// +// Check that an error is generated when trying +// to change the value of a shader input. + +#version 150 + +in Block { + vec4 invar; +} a; + +void main() +{ + a.invar = vec4(1.0); + gl_FragColor = a.invar; +} diff --git a/tests/spec/glsl-1.50/compiler/interface-block-instance-name-uniform-read-only.frag b/tests/spec/glsl-1.50/compiler/interface-block-instance-name-uniform-read-only.frag new file mode 100644 index 0000000..43909ba --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/interface-block-instance-name-uniform-read-only.frag @@ -0,0 +1,20 @@ +// [config] +// expect_result: fail +// glsl_version: 1.50 +// check_link: false +// [end config] +// +// Check that an error is generated when trying +// to change the value of a uniform. + +#version 150 + +uniform Block { + vec4 invar; +} a; + +void main() +{ + a.invar = vec4(1.0); + gl_FragColor = a.invar; +} diff --git a/tests/spec/glsl-1.50/compiler/interface-block-uniform-read-only.frag b/tests/spec/glsl-1.50/compiler/interface-block-uniform-read-only.frag new file mode 100644 index 0000000..aaea6b3 --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/interface-block-uniform-read-only.frag @@ -0,0 +1,20 @@ +// [config] +// expect_result: fail +// glsl_version: 1.50 +// check_link: false +// [end config] +// +// Check that an error is generated when trying +// to change the value of a uniform. + +#version 150 + +uniform Block { + vec4 invar; +}; + +void main() +{ + invar = vec4(1.0); + gl_FragColor = invar; +}