From patchwork Mon Feb 18 22:02:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 14973 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 D239124265 for ; Mon, 18 Feb 2013 22:04:53 +0000 (UTC) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by fiordland.canonical.com (Postfix) with ESMTP id 90C0DA194B3 for ; Mon, 18 Feb 2013 22:04:53 +0000 (UTC) Received: by mail-vb0-f48.google.com with SMTP id fc21so3804437vbb.21 for ; Mon, 18 Feb 2013 14:04:53 -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=RnS35GXJ4hRQlGPRysTMhX+iTSoXRZOtrnU78y6zLic=; b=gdtMkKzhY0NoATysZO7SJshJxRY53U+C+nWD2IwSQ/n7f9ZEa+QPk0lLIbJgXcVqUR SZ5b8t8LFXiUtFlRGJ9Icp2bJ8adohehu2QgkfkYfggE0/Km98UC/pv7M/Okw8Itew7e nFMTHmZSgv04JrVtKeU10hxHBGg3D2UUxQEiyiWycnRWc/9r+cGyluHrXbIyFH6CmZkf MJpHe8jM8RSX5d8ziPxa9LsMKUDDK+soh1C1epmb4Ap4ykkqeZDfhttsd5DRDRBFcFbG p9DykSi74u5/6NdGud/517JPJCWNIPps/PKXN/fFkcSIrBwyWg54x3VTI0OBPEtToMYj HO0w== X-Received: by 10.220.214.6 with SMTP id gy6mr17404095vcb.8.1361225093026; Mon, 18 Feb 2013 14:04:53 -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 st5csp111563veb; Mon, 18 Feb 2013 14:04:52 -0800 (PST) X-Received: by 10.50.45.230 with SMTP id q6mr7442323igm.39.1361225092332; Mon, 18 Feb 2013 14:04:52 -0800 (PST) Received: from mail-ie0-x234.google.com (ie-in-x0234.1e100.net [2607:f8b0:4001:c03::234]) by mx.google.com with ESMTPS id yh3si10112074igb.41.2013.02.18.14.04.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:52 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:4001:c03::234 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c03::234; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:4001:c03::234 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-ie0-f180.google.com with SMTP id bn7so7657903ieb.25 for ; Mon, 18 Feb 2013 14:04:52 -0800 (PST) X-Received: by 10.50.42.129 with SMTP id o1mr2838465igl.32.1361225092084; Mon, 18 Feb 2013 14:04:52 -0800 (PST) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPS id vb15sm11208201igb.9.2013.02.18.14.04.51 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:51 -0800 (PST) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 5/8] shader_runner: glsl-es-1.00 add maximums/gl_MaxVaryingVectors.shader_test Date: Mon, 18 Feb 2013 16:02:40 -0600 Message-Id: <1361224963-8407-5-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: ALoCoQlpGfE+Csh6jfhbp7Jdo+IzHUconze0ynkdk6uK7JkADYnJwA9qOb1gGdcua/jpVZe+5LsB Adds tests/spec/glsl-es-1.00/maximums/gl_MaxVaryingVectors.shader_test checks built-in constant gl_MaxVaryingVectors. Signed-off-by: Tom Gall --- .../maximums/gl_MaxVaryingVectors.shader_test | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVaryingVectors.shader_test diff --git a/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVaryingVectors.shader_test b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVaryingVectors.shader_test new file mode 100644 index 0000000..2a4e300 --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVaryingVectors.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_MaxVaryingVectors >= 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