spirv2nir: Rework argument handling
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 4 Sep 2020 22:14:39 +0000 (17:14 -0500)
committerVivek Pandya <vivekvpandya@gmail.com>
Mon, 7 Sep 2020 15:55:17 +0000 (21:25 +0530)
commit5fc9b139df6d93d014654c9acbc5d42aede3bb0c
tree61eeb12ef6d5e9995d63fbc17838bfe6af0c3dc0
parentc0cfc9f14567d56a5d64851cf1b5dcfc910a7fef
spirv2nir: Rework argument handling

The argument handling of this little tool was pretty rubbish.  It had no
help and it required the filename to come first which is just strange.
This reworks it and makes things much nicer.  It's still rubbish but at
least there's a chance people can figure out how to use it now.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6607>
src/compiler/spirv/spirv2nir.c