Module: Mesa
Branch: master
Commit: 5ac247a73e78c6df7a3980c84e6207c3da601987
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ac247a73e78c6df7a3980c84e6207c3da601987

Author: Ian Romanick <ian.d.roman...@intel.com>
Date:   Fri Aug  9 15:02:49 2013 -0700

glsl: Add default precision qualifiers for ES builtins

Once the compiler proplerly checks for default precision qualifiers,
these shaders will cease to compile.

Signed-off-by: Ian Romanick <ian.d.roman...@intel.com>
Reviewed-by: Kenneth Graunke <kenn...@whitecape.org>
Cc: "9.2" <mesa-sta...@lists.freedesktop.org>

---

 src/glsl/builtins/profiles/100es.frag              |    2 ++
 src/glsl/builtins/profiles/300es.frag              |    1 +
 .../builtins/profiles/OES_EGL_image_external.glsl  |    1 +
 .../profiles/OES_standard_derivatives.frag         |    1 +
 src/glsl/builtins/profiles/OES_texture_3D.frag     |    1 +
 5 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/glsl/builtins/profiles/100es.frag 
b/src/glsl/builtins/profiles/100es.frag
index 904aa30..28c4527 100644
--- a/src/glsl/builtins/profiles/100es.frag
+++ b/src/glsl/builtins/profiles/100es.frag
@@ -1,4 +1,6 @@
 #version 100
+precision highp float;
+
 vec4 texture2D       (sampler2D sampler, vec2 coord, float bias);
 vec4 texture2DProj   (sampler2D sampler, vec3 coord, float bias);
 vec4 texture2DProj   (sampler2D sampler, vec4 coord, float bias);
diff --git a/src/glsl/builtins/profiles/300es.frag 
b/src/glsl/builtins/profiles/300es.frag
index 38589f7..ef412d8 100644
--- a/src/glsl/builtins/profiles/300es.frag
+++ b/src/glsl/builtins/profiles/300es.frag
@@ -1,4 +1,5 @@
 #version 300 es
+precision highp float;
 
 /* texture - bias variants */
  vec4 texture( sampler2D sampler, vec2 P, float bias);
diff --git a/src/glsl/builtins/profiles/OES_EGL_image_external.glsl 
b/src/glsl/builtins/profiles/OES_EGL_image_external.glsl
index 71e6af9..90300ec 100644
--- a/src/glsl/builtins/profiles/OES_EGL_image_external.glsl
+++ b/src/glsl/builtins/profiles/OES_EGL_image_external.glsl
@@ -1,5 +1,6 @@
 #version 100
 #extension GL_OES_EGL_image_external : enable
+precision highp float;
 
 vec4 texture2D(samplerExternalOES sampler, vec2 coord);
 vec4 texture2DProj(samplerExternalOES sampler, vec3 coord);
diff --git a/src/glsl/builtins/profiles/OES_standard_derivatives.frag 
b/src/glsl/builtins/profiles/OES_standard_derivatives.frag
index 2c6ea07..44991ef 100644
--- a/src/glsl/builtins/profiles/OES_standard_derivatives.frag
+++ b/src/glsl/builtins/profiles/OES_standard_derivatives.frag
@@ -1,5 +1,6 @@
 #version 100
 #extension GL_OES_standard_derivatives : enable
+precision highp float;
 
 /*
  * 8.8 - Fragment Processing Functions
diff --git a/src/glsl/builtins/profiles/OES_texture_3D.frag 
b/src/glsl/builtins/profiles/OES_texture_3D.frag
index b6ebd6a..c2c3339 100644
--- a/src/glsl/builtins/profiles/OES_texture_3D.frag
+++ b/src/glsl/builtins/profiles/OES_texture_3D.frag
@@ -1,5 +1,6 @@
 #version 100
 #extension GL_OES_texture_3D : enable
+precision highp float;
 
 vec4 texture3D (sampler3D sampler, vec3 coord);
 vec4 texture3DProj (sampler3D sampler, vec4 coord);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to