From patchwork Mon Feb 18 22:02:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 14976 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 24A4123E24 for ; Mon, 18 Feb 2013 22:04:58 +0000 (UTC) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by fiordland.canonical.com (Postfix) with ESMTP id D8D6BA18BF9 for ; Mon, 18 Feb 2013 22:04:57 +0000 (UTC) Received: by mail-ve0-f182.google.com with SMTP id ox1so5299630veb.13 for ; Mon, 18 Feb 2013 14:04:57 -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=SSmv1n7pdo/MukC/exJJv07RciR3wqMKpwd4UXjTsIE=; b=jE9OJh9xoYJS/KyROWWTfSCGUMqd2vtGng5FgDxDwJxBP8Ru2mLO8MuM8x410Msti5 YuFbI5XAzvr8XYdtzzsBVVLyAzJrZvWzOkgWTfeCTTwgNBt7rTSq+34qTVLQRKVNbz2g t/T0+x0vDJk45Un6FstXNqSDajwcEDpUgd7YwgC7HdMqpLggn9Se0E0iaY91oFAXuSN5 EoZOMa2rWf2xn0xyxTrJIKken3RMq7rovIKWWs9LSaz227GYuHpHsNyMVOnHeTnPdfCJ EvuKewMUYd4NRjEq1edOrh7gqGbbqLQLF+yrREL7Wk4mcVeonUVLD1MfuE9YOUr6Ucqi B4ig== X-Received: by 10.221.0.79 with SMTP id nl15mr17699407vcb.41.1361225097407; Mon, 18 Feb 2013 14:04:57 -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 st5csp111569veb; Mon, 18 Feb 2013 14:04:56 -0800 (PST) X-Received: by 10.50.149.233 with SMTP id ud9mr7474482igb.92.1361225096707; Mon, 18 Feb 2013 14:04:56 -0800 (PST) Received: from mail-ia0-x236.google.com (ia-in-x0236.1e100.net [2607:f8b0:4001:c02::236]) by mx.google.com with ESMTPS id gf2si10108469igb.49.2013.02.18.14.04.56 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:56 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:4001:c02::236 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c02::236; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:4001:c02::236 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-f182.google.com with SMTP id w33so5556834iag.27 for ; Mon, 18 Feb 2013 14:04:56 -0800 (PST) X-Received: by 10.50.184.132 with SMTP id eu4mr4834323igc.19.1361225096439; Mon, 18 Feb 2013 14:04:56 -0800 (PST) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPS id vb15sm11208201igb.9.2013.02.18.14.04.55 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:56 -0800 (PST) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 8/8] shader_runner: glsl-es-1.00 add maximums/gl_MaxVertexUniformVectors.shader_test Date: Mon, 18 Feb 2013 16:02:43 -0600 Message-Id: <1361224963-8407-8-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: ALoCoQmUkG579PU05wGBGLCE3BSGkJRNh2ab5lCksFioUm3IQ8F8gFCUARC0IMbjXBozWY7acRZc Adds tests/spec/glsl-es-1.00/maximums/ gl_MaxVertexUniformVectors.shader_test, checks built-in constant gl_MaxVertexUniformVectors Signed-off-by: Tom Gall --- .../gl_MaxVertexUniformVectors.shader_test | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexUniformVectors.shader_test diff --git a/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexUniformVectors.shader_test b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexUniformVectors.shader_test new file mode 100644 index 0000000..5f8f818 --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVertexUniformVectors.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_MaxVertexUniformVectors >= 128) + 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