summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-11-05 12:23:17 +0200
committerTapani Pälli <tapani.palli@intel.com>2015-11-12 09:50:14 +0200
commit5bd122cad9d16596f89260f3b115cd0fb72cb886 (patch)
tree1fbf914355f4f5806aebadef09e8b9ed43ed861c
parentf84bc57d7dc02fceb805803131426c791eadeff9 (diff)
downloadexternal_mesa3d-5bd122cad9d16596f89260f3b115cd0fb72cb886.zip
external_mesa3d-5bd122cad9d16596f89260f3b115cd0fb72cb886.tar.gz
external_mesa3d-5bd122cad9d16596f89260f3b115cd0fb72cb886.tar.bz2
glsl: do not lose precision information when packing varyings
This information will be used by cross stage validation of varyings for pipeline objects. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
-rw-r--r--src/glsl/lower_packed_varyings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp
index 5d66ca9..037c27d 100644
--- a/src/glsl/lower_packed_varyings.cpp
+++ b/src/glsl/lower_packed_varyings.cpp
@@ -621,6 +621,7 @@ lower_packed_varyings_visitor::get_packed_varying_deref(
packed_var->data.patch = unpacked_var->data.patch;
packed_var->data.interpolation = unpacked_var->data.interpolation;
packed_var->data.location = location;
+ packed_var->data.precision = unpacked_var->data.precision;
unpacked_var->insert_before(packed_var);
this->packed_varyings[slot] = packed_var;
} else {