diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-06-14 12:42:28 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-07-03 13:54:06 +0200 |
commit | 141d0831ff631d6405540bc42ec7f626f6400a72 (patch) | |
tree | ca98c4e2b0803f37df6af5480b8572333d4cd05e /src/compiler | |
parent | b0b4b5e8f7a25dd11c1662d339d68c9733e9b2dc (diff) |
glsl: always print non-zero var->data.location_frac
This is helpful in debugging varying assignments.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/ir_print_visitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp index ba3c1e243f..86ddea6886 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}; |