From 5bd122cad9d16596f89260f3b115cd0fb72cb886 Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Thu, 5 Nov 2015 12:23:17 +0200 Subject: glsl: do not lose precision information when packing varyings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This information will be used by cross stage validation of varyings for pipeline objects. Signed-off-by: Tapani Pälli Reviewed-by: Iago Toral Quiroga --- src/glsl/lower_packed_varyings.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl') 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 { -- cgit v1.2.3