From 141d0831ff631d6405540bc42ec7f626f6400a72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 14 Jun 2017 12:42:28 +0200 Subject: [PATCH] glsl: always print non-zero var->data.location_frac This is helpful in debugging varying assignments. Reviewed-by: Timothy Arceri Reviewed-by: Ian Romanick --- src/compiler/glsl/ir_print_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp index ba3c1e243fb..86ddea68861 100644 --- a/src/compiler/glsl/ir_print_visitor.cpp +++ b/src/compiler/glsl/ir_print_visitor.cpp @@ -174,7 +174,7 @@ void ir_print_visitor::visit(ir_variable *ir) snprintf(loc, sizeof(loc), "location=%i ", ir->data.location); char component[32] = {0}; - if (ir->data.explicit_component) + if (ir->data.explicit_component || ir->data.location_frac != 0) snprintf(component, sizeof(component), "component=%i ", ir->data.location_frac); char stream[32] = {0}; -- 2.30.2