lima: disasm: use last argument as a filename

Otherwise it fails to open a file.

Fixes: 9660427ab7 ("lima: Print usage if --help is any of the arguments.")
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13968>
This commit is contained in:
Vasily Khoruzhick 2021-11-26 18:02:59 -08:00 committed by Marge Bot
parent 437b97de1c
commit 711a4ccddb
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ main(int argc, char **argv)
}
char *filename = NULL;
filename = argv[n];
filename = argv[argc - 1];
uint32_t size = 0;
uint32_t *prog = extract_shader_binary(filename, &size, &is_frag);