matinfo / matdbg: fix SPIRV version, add validation.

The value we pass to spvContextCreate() is not SPV_ENV_UNIVERSAL_1_3,
which is what we use in GLSLPostProcessor.

Also add a call to spvValidateBinary(), which would have caught this
oversight.
This commit is contained in:
Philip Rideout
2020-05-19 15:40:23 -07:00
parent 97c9ad7599
commit d4a396d52f
2 changed files with 8 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ static void printUsage(const char* name) {
" --print-glsl=[index], -g\n"
" Print GLSL for the nth shader (0 is the first OpenGL shader)\n\n"
" --print-spirv=[index], -s\n"
" Print disasm for the nth shader (0 is the first Vulkan shader)\n\n"
" Validate and print disasm for the nth shader (0 is the first Vulkan shader)\n\n"
" --print-metal=[index], -m\n"
" Print Metal Shading Language for the nth shader (0 is the first Metal shader)\n\n"
" --print-vkglsl=[index], -v\n"