pan/bi: Use getopt for bifrost_compiler
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 19 Jul 2021 19:52:19 +0000 (15:52 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 29 Jul 2021 22:54:16 +0000 (22:54 +0000)
commitc6be4f85e3c443f4ec46e60e25054601e8af979a
treeb75180ab59f7dfc27734714d9982f8ae9a44e538
parent4c5f1ef3cad5fe351bb8024d6733b22984d23a69
pan/bi: Use getopt for bifrost_compiler

Specify gpu id with --gpu-id or marketing name with --gpu. Still have
compile/disasm as commands, but allow -v for verbose printing.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12134>
src/panfrost/bifrost/bi_quirks.h
src/panfrost/bifrost/cmdline.c