Module: Mesa
Branch: 9.2
Commit: 89aff30f9b9a4f8934ce32303112fa2f8cbfc997
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=89aff30f9b9a4f8934ce32303112fa2f8cbfc997

Author: Ian Romanick <[email protected]>
Date:   Fri Aug  9 16:01:04 2013 -0700

glsl: Merge precision qualifiers too

We never noticed this before because we previously didn't enfoce GLSL ES
fragement shader requirements that precision be defined.  There may also
have been some interaction here with the addition of
GL_ARB_shading_language_420pack, but it doesn't appear to me that it
added any new bugs (just perhaps uncovered some old ones).

Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Cc: "9.2" <[email protected]>
(cherry picked from commit 73e2d69792fba229e52ea47165592d086e650c45)

---

 src/glsl/ast_type.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp
index 275b2a1..7bb1f64 100644
--- a/src/glsl/ast_type.cpp
+++ b/src/glsl/ast_type.cpp
@@ -149,6 +149,9 @@ ast_type_qualifier::merge_qualifier(YYLTYPE *loc,
    if (q.flags.q.explicit_binding)
       this->binding = q.binding;
 
+   if (q.precision != ast_precision_none)
+      this->precision = q.precision;
+
    return true;
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to