summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_packed_varyings.cpp
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2015-11-05 12:23:17 +0200
committerTapani Pälli <[email protected]>2015-11-12 09:50:14 +0200
commit5bd122cad9d16596f89260f3b115cd0fb72cb886 (patch)
tree1fbf914355f4f5806aebadef09e8b9ed43ed861c /src/glsl/lower_packed_varyings.cpp
parentf84bc57d7dc02fceb805803131426c791eadeff9 (diff)
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 <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/glsl/lower_packed_varyings.cpp')
-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 5d66ca931cf..037c27d88ab 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 {