From patchwork Mon Feb 18 22:02:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 14972 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 973A824262 for ; Mon, 18 Feb 2013 22:04:53 +0000 (UTC) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by fiordland.canonical.com (Postfix) with ESMTP id 3C010A18BF9 for ; Mon, 18 Feb 2013 22:04:53 +0000 (UTC) Received: by mail-vb0-f45.google.com with SMTP id p1so3875957vbi.18 for ; Mon, 18 Feb 2013 14:04:52 -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=/5CNL0IHTBbLSze0VmZRiUAny2wiunF07zV5DO0F01o=; b=RuNeNG+KS8D/a4tVoHv+vaEMPPJ8GJjIe+LKSeVqHhiG/Lhlpzy95vr3O/u7OiMw+p GKI5anl189w7YCbwVVwZHpGqsGrvnUwsKc1MvpSBNm3fqAd/ZM4C6qka9mCDF+71SCnz fKi9cz8YnDdrGm/UfSrsV0WdASHV2ZH/4uTHmHAUNa3S0RwMkC+Ymzif5Ij3LKER/Og1 zflii+C09DraVjG8W3nUrJt1XXmSX84N/OOMTE23bka0pz1HPNr2IqgSscWxwvGopGUk fel1QGlydkEzEaL/S/wIV3SmbAWlJTrhSFZtzDo4Hk/PQD7GHZPOKo/wtoUnBgU+cIn0 FgFA== X-Received: by 10.58.32.10 with SMTP id e10mr17756838vei.59.1361225090177; Mon, 18 Feb 2013 14:04:50 -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 st5csp111560veb; Mon, 18 Feb 2013 14:04:49 -0800 (PST) X-Received: by 10.50.47.170 with SMTP id e10mr8285501ign.84.1361225089553; Mon, 18 Feb 2013 14:04:49 -0800 (PST) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [2607:f8b0:4001:c03::232]) by mx.google.com with ESMTPS id ih3si10100300igc.67.2013.02.18.14.04.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:49 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:4001:c03::232 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c03::232; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:4001:c03::232 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-f178.google.com with SMTP id c13so7892444ieb.9 for ; Mon, 18 Feb 2013 14:04:49 -0800 (PST) X-Received: by 10.50.178.10 with SMTP id cu10mr8291188igc.75.1361225089262; Mon, 18 Feb 2013 14:04:49 -0800 (PST) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPS id vb15sm11208201igb.9.2013.02.18.14.04.48 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:48 -0800 (PST) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 3/8] shader_runner: glsl-es-1.00 add maximums/gl_MaxFragmentUniformVectors.shader_test Date: Mon, 18 Feb 2013 16:02:38 -0600 Message-Id: <1361224963-8407-3-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: ALoCoQlJpp1plXPZams+k0Z+Cc0jbxPN2gFdiyd693kCTs3HMKvk2usQHEBuF+WKeIKU0AfWUFM9 Adds tests/spec/glsl-es-1.00/maximums/ gl_MaxFragmentUniformVectors.shader_test, checks built-in constant gl_MaxFragmentUniformVectors Signed-off-by: Tom Gall --- .../gl_MaxFragmentUniformVectors.shader_test | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/execution/maximums/gl_MaxFragmentUniformVectors.shader_test diff --git a/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxFragmentUniformVectors.shader_test b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxFragmentUniformVectors.shader_test new file mode 100644 index 0000000..e19b06a --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxFragmentUniformVectors.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_MaxFragmentUniformVectors >= 16) + 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