Signed-off-by: Lionel Landwerlin <[email protected]>
Cc: Sirisha Gandikota <[email protected]>
---
src/intel/tools/aubinator.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 9939de7..459e3d4 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -1064,7 +1064,7 @@ int main(int argc, char *argv[])
struct aub_file *file;
int i;
bool found_arg_gen = false, pager = true;
- const char *value;
+ const char *value, *input_file = NULL;
char gen_file[256], gen_val[24];
const struct {
const char *name;
@@ -1120,6 +1120,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "unknown option %s\n", argv[i]);
exit(EXIT_FAILURE);
}
+ input_file = argv[i];
break;
}
}
@@ -1163,7 +1164,7 @@ int main(int argc, char *argv[])
print_help(argv[0], stderr);
exit(EXIT_FAILURE);
} else {
- file = aub_file_open(argv[i]);
+ file = aub_file_open(input_file);
}
while (aub_file_more_stuff(file))
--
2.9.3
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev