gallium/tools: improve option handling in dump_state.py
authorMatti Hamalainen <ccr@tnsp.org>
Tue, 20 Apr 2021 12:15:59 +0000 (15:15 +0300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 May 2021 15:48:03 +0000 (15:48 +0000)
commit0834a42773fa234f00b87151473a7b086c31e066
tree84727768a3640f45de539a3ac9f1c5f9aaea0786
parenta6765412fe1609ab3cc3829e0f9b13d6f63aaceb
gallium/tools: improve option handling in dump_state.py

Previously we inherited some options from parse.py, but
that made no sense for some of the options that are not
needed for dump_state.py (such as --plain, as we output
only JSON format text.)

So, remove the inherit and implement filename argument
here independantly.

Signed-off-by: Matti Hamalainen <ccr@tnsp.org>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10648>
src/gallium/tools/trace/dump_state.py
src/gallium/tools/trace/model.py
src/gallium/tools/trace/parse.py