You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ET-VK][ez] Retry with no optimization during shader compilation
## Context
In some cases, a shader can be compiled successfully with `glslc`, but if an optimization flag such as `-O` or `-Os` is used, the compilation will fail with a message similar to
```
internal error: compilation succeeded but failed to optimize: Invalid use of 8- or 16-bit result\n %133 = OpExtInst %half %1 Pow %125 %132
```
Which will cause the shader compilation script to fail.
This diff introduces a check that if `glslc` complains about not being able to optimize the SPIR-V, then retry compilation without optimization arguments.
Differential Revision: [D70906097](https://our.internmc.facebook.com/intern/diff/D70906097/)
ghstack-source-id: 270796203
Pull Request resolved: #9096
0 commit comments