Keenuts wrote: The shader type check condition has been duplicated in another change. Adapted this PR to match this. Will do the same on the fragment PR. https://github.com/llvm/llvm-project/pull/142369