spirv2nir: Rework argument handling
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 4 Sep 2020 22:14:39 +0000 (17:14 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 7 Sep 2020 14:59:40 +0000 (14:59 +0000)
commit013a2b123d75ed53af603e23a8f6fd0d6e3b5490
tree56fe0d3b853455e238d2c81e460a94e42fb6956d
parenta5e427fe644fd2f69bf65b19cad9055984909c06
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