From patchwork Fri Jan 11 19:48: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: 14002 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 831E623E27 for ; Fri, 11 Jan 2013 19:48:56 +0000 (UTC) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by fiordland.canonical.com (Postfix) with ESMTP id 23B96A18B39 for ; Fri, 11 Jan 2013 19:48:56 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id d16so1796886vcd.5 for ; Fri, 11 Jan 2013 11:48:55 -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=ol4beN2+3NjoWZ2dHxkOrQ7c4AaT13HgbWW9N4Ka0ts=; b=eGQQnWe6jnc7kVcBlWTH8PVHCWUcS8P+HZUx3i0YWPrulE6VZ8yiXWp2WifgzkKH2+ nEb3jU/Clt1a9BWEpPT+aBN9iLE86cxEtZz9BgiXeJYC+sSZZeHCGksom0jbeLInR+ck I6+uiw5kqxf55/emO+W3f1xuTAEPL/2LXM7DlUvD3oLFjmQfs4cxes/creD0enDppw9I O7qWcQftE8eMB1Y2GTweOtKQM8BWs7E9hAgqaWuJt2qZlTwWWkZqkGkd4pk6VWGd9iSv LX3ngDpv9gXwujzrJ8fZFCB/k0aZVK8koUd7PqnhQpsrVib+kr8o+j4eDYx7flG5hKP5 a0IQ== X-Received: by 10.58.181.42 with SMTP id dt10mr13615244vec.34.1357933735574; Fri, 11 Jan 2013 11:48:55 -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 st5csp129042veb; Fri, 11 Jan 2013 11:48:55 -0800 (PST) X-Received: by 10.50.192.228 with SMTP id hj4mr289546igc.37.1357933734999; Fri, 11 Jan 2013 11:48:54 -0800 (PST) Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) by mx.google.com with ESMTPS id f2si6782458icw.26.2013.01.11.11.48.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 11:48:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.223.174 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=209.85.223.174; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.223.174 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-f174.google.com with SMTP id c11so2757942ieb.19 for ; Fri, 11 Jan 2013 11:48:54 -0800 (PST) X-Received: by 10.50.196.162 with SMTP id in2mr260621igc.70.1357933734724; Fri, 11 Jan 2013 11:48:54 -0800 (PST) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPS id ex10sm276081igc.15.2013.01.11.11.48.53 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 11:48:53 -0800 (PST) From: Tom Gall To: patches@linaro.org Cc: Tom Gall Subject: [PATCH 3/3] shader_runner: add glsl-es-1.00 sanity test Date: Fri, 11 Jan 2013 13:48:40 -0600 Message-Id: <1357933720-23420-3-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1357933720-23420-1-git-send-email-tom.gall@linaro.org> References: <1357933720-23420-1-git-send-email-tom.gall@linaro.org> X-Gm-Message-State: ALoCoQk1QSgnm8gOaGZHlO60lJkefFE4WNqQqWsNheASHLNPs9s0NUFKR14HJ2SbtJX883oUNXNI Add tests/spec/glsl-es-1.00 directory and new execution/sanity.shader_test in that directory. Reviewed-by: Chad Versace Signed-off-by: Tom Gall --- .../spec/glsl-es-1.00/execution/sanity.shader_test | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/execution/sanity.shader_test diff --git a/tests/spec/glsl-es-1.00/execution/sanity.shader_test b/tests/spec/glsl-es-1.00/execution/sanity.shader_test new file mode 100644 index 0000000..a1dc07a --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/sanity.shader_test @@ -0,0 +1,42 @@ +# Fill the window with red, then green, then blue. + +[require] +GL >= 2.0 es + +[vertex shader] +#version 100 + +attribute vec4 vertex; + +void main() { + gl_Position = vertex; +} + +[fragment shader] +#version 100 + +uniform vec4 u_color; + +void main() { + gl_FragColor = u_color; +} + +[vertex data] +vertex/float/2 +-1.0 -1.0 + 1.0 -1.0 + 1.0 1.0 +-1.0 1.0 + +[test] +uniform vec4 u_color 1.0 0.0 0.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 1.0 0.0 0.0 1.0 + +uniform vec4 u_color 0.0 1.0 0.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 0.0 1.0 0.0 1.0 + +uniform vec4 u_color 0.0 0.0 1.0 1.0 +draw arrays GL_TRIANGLE_FAN 0 4 +probe all rgba 0.0 0.0 1.0 1.0