From patchwork Wed Mar 20 18:30:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 15444 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 EA7D923E14 for ; Wed, 20 Mar 2013 18:31:23 +0000 (UTC) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by fiordland.canonical.com (Postfix) with ESMTP id 9A862A18E5F for ; Wed, 20 Mar 2013 18:31:23 +0000 (UTC) Received: by mail-ve0-f178.google.com with SMTP id db10so1704163veb.37 for ; Wed, 20 Mar 2013 11:31:23 -0700 (PDT) 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=T7Q4Ic+TwXsaUCAkecYd974MKwwdgE3xBcef+gpvp4A=; b=YWqxk+kC93i0pHfxAGemryMOkiSJPvJjWs5PkjMzL94qA0solbX+ctd0xDVnpBukhb XhH7EfbK+6GBWvgja4Oe4uRkfE0BRBehHGPPPszyLrzyBV7dVyZIzA+QDZet0zjnO5EJ ownfHVohODEW0LcUZG4Rzt5x5BkD5eV/2Lq+17vUx+0pwpP25SB+s+2TUYCH3UigtvUZ duvAOUouqa9jInrXUBpo4/M8xyDPZ8ShJWKgMkmgJe772V3GQPaT4tcsKq3kmTi8xbvY 3BFHd2B3DEBOo3gSRMaHUPN4EQMi9giORiV9pihvCZIjABXUrXKLelaknJC074nEN3CW hQlQ== X-Received: by 10.52.233.225 with SMTP id tz1mr8278936vdc.54.1363804283015; Wed, 20 Mar 2013 11:31:23 -0700 (PDT) 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.233.198 with SMTP id ty6csp26051vec; Wed, 20 Mar 2013 11:31:22 -0700 (PDT) X-Received: by 10.50.37.132 with SMTP id y4mr27147igj.61.1363804281669; Wed, 20 Mar 2013 11:31:21 -0700 (PDT) Received: from mail-ia0-x232.google.com (mail-ia0-x232.google.com [2607:f8b0:4001:c02::232]) by mx.google.com with ESMTPS id us6si175437igc.49.2013.03.20.11.31.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 11:31:21 -0700 (PDT) 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 r13so640828iar.9 for ; Wed, 20 Mar 2013 11:31:20 -0700 (PDT) X-Received: by 10.50.136.130 with SMTP id qa2mr1776452igb.1.1363804280687; Wed, 20 Mar 2013 11:31:20 -0700 (PDT) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPS id s8sm3045470igs.0.2013.03.20.11.31.18 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 11:31:19 -0700 (PDT) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 1/1] glsl-es-1.00: sanity.shader_test fragment needs default precision Date: Wed, 20 Mar 2013 13:30:48 -0500 Message-Id: <1363804248-11775-1-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQlaB/tjOUB0F3whtXfGeBWPqxEITwRwFRRf9phnapZ90JCwWihFvsMF7fnrZiut2sJSzG9b GLSL ES 1.00 spec 4.5.3 page 36: "The fragment language has no default precision qualifier for floating point types." Adding default precision for float in the fragment shader so this sanity testcase doesn't error out. mediump is choosen since according to 4.5.2 page 34: "The fragment language requires any uses of lowp and mediump to compile without error. Support for highp is optional." Signed-off-by: Tom Gall Reviewed-by: Stuart Abercrombie --- tests/spec/glsl-es-1.00/execution/sanity.shader_test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/spec/glsl-es-1.00/execution/sanity.shader_test b/tests/spec/glsl-es-1.00/execution/sanity.shader_test index 0884e2c..5461167 100644 --- a/tests/spec/glsl-es-1.00/execution/sanity.shader_test +++ b/tests/spec/glsl-es-1.00/execution/sanity.shader_test @@ -12,6 +12,8 @@ void main() { } [fragment shader] +precision mediump float; + uniform vec4 u_color; void main() {