util/glsl2spirv: simplify subprocess handling
authorDylan Baker <dylan.c.baker@intel.com>
Tue, 1 Nov 2022 20:02:41 +0000 (13:02 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Nov 2022 21:14:17 +0000 (21:14 +0000)
commit5488fa80dde94e077d2aa09f6d854c10ebecbec3
tree9cbb6d43a91a7b3cb7d93f595e41c1c79acd0187
parent87c83c041a99b71f787b98d22e17a87df04eaf75
util/glsl2spirv: simplify subprocess handling

Since we're not doing anything fancy, we can just use `subprocess.run`.
I've also removed the custom error class, we're not going to catch it,
so just printing and exiting is fine.

v2:
  - Print stdout as well as stderr in case of a glslang failure

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