From patchwork Wed Sep 23 03:36:54 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: 54025 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 patches.linaro.org (Postfix) with ESMTPS id 21DA222D91 for ; Wed, 23 Sep 2015 03:37:09 +0000 (UTC) Received: by lamf6 with SMTP id f6sf16619262lam.1 for ; Tue, 22 Sep 2015 20:37:07 -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=pPnY3iagm2f6mKSVx6kBBLkkJZaJWhWQ+GIyNoZ1Lrc=; b=cJ1IaYGTiOpqB1OjeNloUsfRxoj3moYFdrIE0OGJxlCVjigthkZbXagVDZ5Cbts2Db WH8dmLjaztrnO58GOyTVs0vTcSNEEXi+47lU8u/LXNicyYWDhdRJdZBx2DK0BGNwSwR2 qsdngaPfiBqjvvD8L0UfAMKzhpBNg3/3iXJ/qQYDejZWLpPoOGGdgKg4Ha3OVwtK9m8L 0yXAELNwVDhUssD9+VRpHJpfd++5g5hRVFa96DiZZaL8+K8mMIcKtLczymoc/AV2zXsz 9Qp4UnMA72T+nnl/bZYYfk8OL4tLjNmwD7v1zaZpzsfTXDQPk5DGiCLuk1o+kIErzZoI UYvg== X-Gm-Message-State: ALoCoQkr6CcFaoflAJ1wgS7myfxWxYnA/Chbjwa7w+tpBliIRSYp5+nU3B1XpErUs8eWF4mpu8Z2 X-Received: by 10.180.89.104 with SMTP id bn8mr182277wib.4.1442979427191; Tue, 22 Sep 2015 20:37:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.161.20 with SMTP id k20ls81987lfe.88.gmail; Tue, 22 Sep 2015 20:37:06 -0700 (PDT) X-Received: by 10.25.17.149 with SMTP id 21mr3298642lfr.38.1442979426806; Tue, 22 Sep 2015 20:37:06 -0700 (PDT) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com. [2a00:1450:4010:c03::234]) by mx.google.com with ESMTPS id u1si2770205lae.77.2015.09.22.20.37.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Sep 2015 20:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::234 as permitted sender) client-ip=2a00:1450:4010:c03::234; Received: by lacao8 with SMTP id ao8so12495101lac.3 for ; Tue, 22 Sep 2015 20:37:06 -0700 (PDT) X-Received: by 10.152.37.135 with SMTP id y7mr10872683laj.106.1442979426345; Tue, 22 Sep 2015 20:37:06 -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 w3csp844271lbq; Tue, 22 Sep 2015 20:37:05 -0700 (PDT) X-Received: by 10.68.192.70 with SMTP id he6mr34963815pbc.157.1442979425339; Tue, 22 Sep 2015 20:37:05 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id t3si7287097pbs.179.2015.09.22.20.37.05; Tue, 22 Sep 2015 20:37:05 -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 D042D6E1AE; Tue, 22 Sep 2015 20:37:04 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm15-vm6.bullet.mail.gq1.yahoo.com (nm15-vm6.bullet.mail.gq1.yahoo.com [98.137.176.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id D824F6E1AE for ; Tue, 22 Sep 2015 20:37:03 -0700 (PDT) Received: from [216.39.60.180] by nm15.bullet.mail.gq1.yahoo.com with NNFMP; 23 Sep 2015 03:37:03 -0000 Received: from [208.71.42.213] by tm16.bullet.mail.gq1.yahoo.com with NNFMP; 23 Sep 2015 03:37:03 -0000 Received: from [127.0.0.1] by smtp224.mail.gq1.yahoo.com with NNFMP; 23 Sep 2015 03:37:03 -0000 X-Yahoo-Newman-Id: 54047.33986.bm@smtp224.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: I75p808VM1ly_PewFB19.QmdbwMMkbTaJOkrUGart63V823 8QOV92lEb1SLATRhJ2hBS5DgnqZlfRSkbk6PI4RDNZNxkKcvabusZjl8V3D9 y7l37NicI9v1uAclhEwxumCBU3UWagXhYIAoDBo16Fp.Sharec3l9ZmuL7gw QiciXxOiAtcssjFD9Ea2jQDzQhxIHPF5V2c_3cnT0yBlwjXEgxLK7fnQP8g8 glk.RGZDvqCB0gWmXt_ZgRw5_4ca_9xUs6eayWzsfNaapbBw1GabIeyAYSJg oJNiO97ouQecuL0aDHX4JYJeeWl2txULXREtdMOO6pR5fKPxZN0IcICy8_XM j48fgeIHAXiG_MNHsbYNe29fsKd61wD4rIq8ibDXIFFT8_Ul1H4_eaEDkREd SBHrNjZXgIr0BamEcPFfBciuSldv6ey3CveJAglghcmjx9B9NyHzGem5yUhC CGvVN_MPaxck4mZcNGccI0RYk4Pd01gvFYoZUJ711g0uPO1_1ANE3q6v1EKx OZGLRxGmByIauT8yqM34BQlH59hYZZu5jbujMBrs- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Wed, 23 Sep 2015 13:36:54 +1000 Message-Id: <1442979414-23118-1-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.4.3 Subject: [Piglit] [PATCH] glsl-1.50: test shader compiles with unused uniform block 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::234 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 Tests the second bug mentioned in the bug report. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83508 Reviewed-by: Samuel Iglesias Gonsálvez Reviewed-by: Tapani Pälli --- .../uniform_block/unused-interface-array.vert | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/spec/glsl-1.50/compiler/uniform_block/unused-interface-array.vert diff --git a/tests/spec/glsl-1.50/compiler/uniform_block/unused-interface-array.vert b/tests/spec/glsl-1.50/compiler/uniform_block/unused-interface-array.vert new file mode 100644 index 0000000..e28ffe9 --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/uniform_block/unused-interface-array.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: pass + * glsl_version: 1.50 + * [end config] + * + * Tests that shader still compiles with an unused uniform block. A packed + * layout means the implementation can eliminate the block entirely. + */ +#version 150 + +layout(packed) uniform ArrayBlock +{ + mat4 a; +} i[4]; + +void main() +{ + gl_Position = vec4(1.0); +}