Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use friendly names for SPIR-V validation errors (#1442)
Setting up friendly names requires parsing the entire module which costs a lot of time due to (1) scanning the whole module, and (2) creating string names for many IDs. This is a followup to KhronosGroup/SPIRV-Tools#5802 There, Blender was suffering long shader suite build times due to serialization on locale. But secondarily we noticed there was a lot of string manipulation when setting up the validator, all because the friendly name mapper is on by default for the optimizer. Turn off friendly names in the optimizer's use of the validator. The validation errors are only emitted when there is a compiler bug, so they should be rare. Don't make every compilation pay the cost.
- Loading branch information