[2/N] compiler interface refactor (spir/spirV fix)

Fixing regression in spir/spirV scenarios

Resolves: NEO-3854, NEO-3852, NEO-3845, NEO-3851, NEO-3844

Change-Id: Ifee7f1847c7f6598428f96ae2241b3d85e58ad11
This commit is contained in:
Jaroslaw Chodor
2019-10-20 14:22:34 +02:00
parent 55486a2f32
commit 8ec7e45bff
8 changed files with 58 additions and 18 deletions

View File

@@ -31,8 +31,8 @@ cl_int Program::processSpirBinary(
bool isSpirV) {
programBinaryType = CL_PROGRAM_BINARY_TYPE_INTERMEDIATE;
std::string binaryString(static_cast<const char *>(pBinary), binarySize);
sourceCode.swap(binaryString);
this->irBinary = makeCopy(pBinary, binarySize);
this->irBinarySize = binarySize;
buildStatus = CL_BUILD_NONE;
this->isSpirV = isSpirV;