SpirV improvements

* Use preferredIR form compiler
* Allow .spv test files instead of .bc

Change-Id: Ia1a693be52b7391896378fbe159be85f4e7a00c1
This commit is contained in:
Chodor, Jaroslaw
2018-07-30 17:04:50 +02:00
committed by sys_ocldev
parent d382402957
commit c2454d5aa2
6 changed files with 36 additions and 26 deletions

View File

@@ -360,7 +360,7 @@ int OfflineCompiler::initialize(uint32_t numArgs, const char **argv) {
}
fclDeviceCtx->SetOclApiVersion(hwInfo->capabilityTable.clVersionSupport * 10);
preferredIntermediateRepresentation = IGC::CodeType::llvmBc;
preferredIntermediateRepresentation = fclDeviceCtx->GetPreferredIntermediateRepresentation();
this->igcLib.reset(OsLibrary::load(Os::igcDllName));
if (this->igcLib == nullptr) {