From 3119871bd9558e5881466b70a4c366d2f83bba82 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 14 Jun 2016 14:38:04 -0700 Subject: glsl: Pack integer and double varyings as flat even if interpolation mode is none v2: Also update varying_matches::compute_packing_class(). Suggested by Timothy Arceri. Signed-off-by: Ian Romanick Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96358 Reviewed-by: Kenneth Graunke Cc: "12.0" Cc: Gregory Hainaut Cc: Ilia Mirkin --- src/compiler/glsl/ir.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/compiler/glsl/ir.h') diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index cd56a2a9f52..1325e3533fe 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -590,6 +590,13 @@ public: return this->u.state_slots; } + inline bool is_interpolation_flat() const + { + return this->data.interpolation == INTERP_QUALIFIER_FLAT || + this->type->contains_integer() || + this->type->contains_double(); + } + inline bool is_name_ralloced() const { return this->name != ir_variable::tmp_name; -- cgit v1.2.3