From patchwork Mon Feb 18 22:02:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 14974 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 26C2B23E24 for ; Mon, 18 Feb 2013 22:04:55 +0000 (UTC) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by fiordland.canonical.com (Postfix) with ESMTP id D751CA18BF9 for ; Mon, 18 Feb 2013 22:04:54 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id fy27so929017vcb.18 for ; Mon, 18 Feb 2013 14:04:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=3Oc8AOcO0AK1D65wYg/CkXYfwbnUhfvIASbSEHiTUq8=; b=YYf4D1kFICYj1j6W42DqAt/ShFvZGSR+Cf6vYtRKZALuHP/BXYVnI9nBq4jd9K0YPU U2RCW0wqnfs+8q0/GNL1J5GcYBlgP4U8nqSoRKcuD1QuF5t3kyWuR+61td1EXnUeqsxB i9BZEZ3GM6vKA/UPS2xE9xXBnh4HwUwCI74fPHOsqQdDyfehfoj1mNniwR/QvPguV0pa 9s5Uxz/LlgO0u8nMJ0jvzzbmD2dk1DQGqo/Ykq5cIoNsn6hHXIO7ibHRcS/UMpD2aHIC zNZ22A0YS0snR5FpGwlwBcHsQujWjCnllK0mA0gmHfjkmtOPe67QWsw7r0dwJLeEcxep bAnQ== X-Received: by 10.52.93.235 with SMTP id cx11mr15086258vdb.51.1361225094369; Mon, 18 Feb 2013 14:04:54 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp111565veb; Mon, 18 Feb 2013 14:04:53 -0800 (PST) X-Received: by 10.50.194.196 with SMTP id hy4mr1985867igc.106.1361225093687; Mon, 18 Feb 2013 14:04:53 -0800 (PST) Received: from mail-ia0-x235.google.com (mail-ia0-x235.google.com [2607:f8b0:4001:c02::235]) by mx.google.com with ESMTPS id uy6si18434666icb.55.2013.02.18.14.04.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:53 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:4001:c02::235 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c02::235; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:4001:c02::235 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) smtp.mail=tom.gall@linaro.org Received: by mail-ia0-f181.google.com with SMTP id e16so5286966iaa.12 for ; Mon, 18 Feb 2013 14:04:53 -0800 (PST) X-Received: by 10.43.135.68 with SMTP id if4mr6416707icc.44.1361225093394; Mon, 18 Feb 2013 14:04:53 -0800 (PST) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPS id vb15sm11208201igb.9.2013.02.18.14.04.52 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:53 -0800 (PST) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 6/8] shader_runner: glsl-es-1.00 add maximums/gl_MaxVertexAttribs.shader_test Date: Mon, 18 Feb 2013 16:02:41 -0600 Message-Id: <1361224963-8407-6-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1361224963-8407-1-git-send-email-tom.gall@linaro.org> References: <1361224963-8407-1-git-send-email-tom.gall@linaro.org> X-Gm-Message-State: ALoCoQkmpRyXHN/1j7Z7JITExLT6h4xpsY0G+VI4TEstQu0S7svvuw74FDkBBa2f+Xw27rpGXuj2 Adds tests/spec/glsl-es-1.00/maximums/gl_MaxVertexAttribs.shader_test checks built-in constant gl_MaxVertexAttribs. Signed-off-by: Tom Gall --- .../maximums/gl_MaxVertexAttribs.shader_test | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexAttribs.shader_test diff --git a/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexAttribs.shader_test b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexAttribs.shader_test new file mode 100644 index 0000000..70371a9 --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexAttribs.shader_test @@ -0,0 +1,29 @@ +# [description] +# Tests for GLSL ES 1.00 minimum maximums for the builtin constants. +# +# See the GLSL ES 1.0.17 specification, section 7.3, page 61. + +[require] +GLSL ES >= 1.00 +GL ES >= 2.0 + +[vertex shader] +attribute vec4 vertex; + +void main(void) +{ + gl_Position = vertex; +} + +[fragment shader] +void main(void) +{ + if (gl_MaxVertexAttribs >= 8) + gl_FragColor = vec4(0, 1, 0, 0); + else + gl_FragColor = vec4(1, 0, 0, 0); +} + +[test] +draw rect -1 -1 2 2 +probe all rgba 0.0 1.0 0.0 0.0