util/glsl2spriv: make --vn required
authorDylan Baker <dylan.c.baker@intel.com>
Tue, 1 Nov 2022 19:55:12 +0000 (12:55 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Nov 2022 21:14:17 +0000 (21:14 +0000)
commit6a5863df828d284c94835c9a231e896b129cb0b2
tree5a2074055d11451f970330024134e329b456fdbb
parent4ffa8a9ac010f3db79b1e872f7e664a4470cb981
util/glsl2spriv: make --vn required

I'm not 100% sure whether it's right to make --vn required, or to avoid
the static conversion, but this seems correct. Mypy (type checking
coming soon) points out that if --vn is None then the
convert_to_static_variable function will fail. Our one use of this sets
--vn, so there is no change there. Making --vn required
ensures that it will never be None, avoiding the problem.

Reviewed-by: Luis Felipe Strano Moraes <luis.strano@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19449>
src/util/glsl2spirv.py