[Mesa-dev] [PATCH] glsl: set precision qualifier on interface block members

Tapani Pälli tapani.palli at intel.com
Wed Nov 11 22:57:52 PST 2015


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 src/glsl/ast_to_hir.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 2fd9c5b..51ea183 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -6161,6 +6161,7 @@ ast_process_structure_or_interface_block(exec_list *instructions,
          fields[i].centroid = qual->flags.q.centroid ? 1 : 0;
          fields[i].sample = qual->flags.q.sample ? 1 : 0;
          fields[i].patch = qual->flags.q.patch ? 1 : 0;
+         fields[i].precision = qual->precision;
 
          /* From Section 4.4.2.3 (Geometry Outputs) of the GLSL 4.50 spec:
           *
-- 
2.4.3



More information about the mesa-dev mailing list