diff options
author | Timothy Arceri <[email protected]> | 2020-03-26 19:03:51 +1100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-27 07:26:39 +0000 |
commit | 8b9ebbcb546816f525298dc24711c1922751e312 (patch) | |
tree | 7f003d5e594653360501ecdddaa0da389bb638f5 | |
parent | ba2ec1f369d2c97fc7c54ecd52b0addcfd349a31 (diff) |
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 <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4328>
-rw-r--r-- | src/compiler/glsl/link_varyings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |