spirv/tests: Add script to generate C array from SPIR-V source
authorCaio Oliveira <caio.oliveira@intel.com>
Fri, 24 Feb 2023 02:24:39 +0000 (18:24 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Mar 2023 13:47:57 +0000 (13:47 +0000)
commit131f328a18fe498714856db1f1ac76c143fa2ac8
tree51a8cd34e2e302140fb02e6f1f02a39b89f9da84
parent17e0c75441d484b772669b3092a399cd73234e0b
spirv/tests: Add script to generate C array from SPIR-V source

This is useful for generating the C code to embed the SPIR-V
when adding a new test.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21512>
src/compiler/spirv/tests/spirv-to-c-array.py [new file with mode: 0755]