Skip to content

clover: Call clang with -O0 for the SPIR-V path

Faith Ekstrand requested to merge gfxstrand/mesa:review/clover-misc into master

SPIRV-LLVM-Translator isn't really built for handling optimized LLVM IR. It tends to fall over when, for instance, an optimization generates an i96 type which isn't legal in SPIR-V. Pass -O0 to avoid these cases. See https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/203.

Edited by Faith Ekstrand

Merge request reports