util/glsl2spirv: fix type error in argument handling

args.Olib is set to `store_true`, which means it will always be `True`
or `False`, this means that the we always, unconditionally, add
`--keep-uncalled` to the command line.

fixes: 9786d9ef2a

Reviewed-by: Luis Felipe Strano Moraes <luis.strano@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19449>
This commit is contained in:
Dylan Baker
2022-11-01 12:40:21 -07:00
committed by Marge Bot
parent f562e37c93
commit 76e3b482be

View File

@@ -129,7 +129,7 @@ def process_file(args):
cmd_list = ["glslangValidator"]
if args.Olib is not None:
if args.Olib:
cmd_list += ["--keep-uncalled"]
if args.vn is not None: