From 8b9ebbcb546816f525298dc24711c1922751e312 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 26 Mar 2020 19:03:51 +1100 Subject: [PATCH] glsl: fix varying packing for 64bit integers Without this we can incorrectly end up marking things as making use of ARB_enhanced_layouts style packing. Cc: 19.3 20.0 Reviewed-by: Dave Airlie Part-of: --- src/compiler/glsl/link_varyings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index 5219294ad7b..7af97cddc0c 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -2095,7 +2095,7 @@ varying_matches::store_locations() const const glsl_type *type = get_varying_type(producer_var, producer_stage); if (type->is_array() || type->is_matrix() || type->is_struct() || - type->is_double()) { + type->is_64bit()) { unsigned comp_slots = type->component_slots() + offset; unsigned slots = comp_slots / 4; if (comp_slots % 4) -- 2.30.2