aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/tools/aubinator.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2016-10-14 17:04:50 +0100
committerLionel Landwerlin <[email protected]>2016-11-01 22:37:22 +0000
commitc8806eeefc63e70e7c454f4c85d2a8b4426c34b9 (patch)
tree5f7941d0ff3a42aa62443a1f671bbb01ecde8c72 /src/intel/tools/aubinator.c
parentd3244c47ceb5f979063decfee65a712c975f4be0 (diff)
intel: aubinator: print boolean fields to true with colors
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Sirisha Gandikota<[email protected]>
Diffstat (limited to 'src/intel/tools/aubinator.c')
-rw-r--r--src/intel/tools/aubinator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 4fee53c35d1..73df16b6dce 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -139,7 +139,8 @@ decode_structure(struct gen_spec *spec, struct gen_group *strct,
else
offset = 0;
- gen_field_iterator_init(&iter, strct, p);
+ gen_field_iterator_init(&iter, strct, p,
+ option_color == COLOR_ALWAYS);
while (gen_field_iterator_next(&iter)) {
idx = 0;
print_dword_val(&iter, offset, &dword_num);
@@ -755,7 +756,8 @@ parse_commands(struct gen_spec *spec, uint32_t *cmds, int size, int engine)
struct gen_field_iterator iter;
char *token = NULL;
int idx = 0, dword_num = 0;
- gen_field_iterator_init(&iter, inst, p);
+ gen_field_iterator_init(&iter, inst, p,
+ option_color == COLOR_ALWAYS);
while (gen_field_iterator_next(&iter)) {
idx = 0;
print_dword_val(&iter, offset, &dword_num);