From patchwork Mon Feb 18 22:02:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 14970 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 0CF8123E24 for ; Mon, 18 Feb 2013 22:04:52 +0000 (UTC) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by fiordland.canonical.com (Postfix) with ESMTP id BEA74A18BF4 for ; Mon, 18 Feb 2013 22:04:51 +0000 (UTC) Received: by mail-ve0-f181.google.com with SMTP id d10so5171721vea.26 for ; Mon, 18 Feb 2013 14:04:51 -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 :x-gm-message-state; bh=Mmj/fVx4qNvSnYzNmnmoTMEtgoKH60ZXr8rU4ppQXrE=; b=PFEh80pGY2Pwm962kKRVPac6Dvjym8PHxUyGyXW2LGxXKmf2FecitkEw3i2GWOpok5 9WqCxzPug87uGU4rT3RJwy9NJWtjPEln2krukOaNdutmipgu6Szo4A9+V3QcyiAVZIE9 4TFBmpKTWo135LhJluiC27uO1SvmuLn0Z9V1Rb4BOK7d9Qch3ANHqbITRJpnnlokMAwu evwjSgE4qfFJrLcOSqz1avPnyjHgruBasYe+0PP2tYVkpF0sg+9I9LDTA0D/Gzkzw64v Pw7YWwOE6nji3xk3DDJf+vfjrcFbJVRkB8DwJpxwnqMSzBIRLaR+gFQdUtdK7XccZADH 90jA== X-Received: by 10.52.177.163 with SMTP id cr3mr15436032vdc.94.1361225087446; Mon, 18 Feb 2013 14:04:47 -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 st5csp111557veb; Mon, 18 Feb 2013 14:04:46 -0800 (PST) X-Received: by 10.50.154.229 with SMTP id vr5mr7562185igb.49.1361225086479; Mon, 18 Feb 2013 14:04:46 -0800 (PST) Received: from mail-ia0-x232.google.com (mail-ia0-x232.google.com [2607:f8b0:4001:c02::232]) by mx.google.com with ESMTPS id z6si18592161icv.22.2013.02.18.14.04.46 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:46 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:4001:c02::232 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c02::232; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:4001:c02::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-ia0-f178.google.com with SMTP id y26so5425022iab.23 for ; Mon, 18 Feb 2013 14:04:46 -0800 (PST) X-Received: by 10.50.236.65 with SMTP id us1mr7943652igc.100.1361225086079; Mon, 18 Feb 2013 14:04:46 -0800 (PST) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPS id vb15sm11208201igb.9.2013.02.18.14.04.45 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Feb 2013 14:04:45 -0800 (PST) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 1/8] shader_runner: glsl-es-1.00 add maximums/gl_MaxCombinedTextureImageUnits.shader_test Date: Mon, 18 Feb 2013 16:02:36 -0600 Message-Id: <1361224963-8407-1-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmJQL4JBfeWRWbRbEY+FZ19hmP1uNESVd23T9O8wTIWk5NIwpUKiYx+MuURMoqChOQEt8tU Adds tests/spec/glsl-es-1.00/maximums/ gl_MaxCombinedTextureImageUnits.shader_test, checks built-in constant gl_MaxCombinedTextureImageUnits Signed-off-by: Tom Gall --- .../gl_MaxCombinedTextureImageUnits.shader_test | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/execution/maximums/gl_MaxCombinedTextureImageUnits.shader_test diff --git a/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxCombinedTextureImageUnits.shader_test b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxCombinedTextureImageUnits.shader_test new file mode 100644 index 0000000..bf3e5b8 --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxCombinedTextureImageUnits.shader_test @@ -0,0 +1,30 @@ +# [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_MaxCombinedTextureImageUnits >= 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