mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Zebin support
Change-Id: I1e426ee2c5174fd0a4c51c1644cda467c2b88881
This commit is contained in:
@@ -441,6 +441,10 @@ void Program::replaceDeviceBinary(std::unique_ptr<char[]> newBinary, size_t newB
|
||||
this->packedDeviceBinarySize = newBinarySize;
|
||||
this->unpackedDeviceBinary.reset();
|
||||
this->unpackedDeviceBinarySize = 0U;
|
||||
if (isAnySingleDeviceBinaryFormat(ArrayRef<const uint8_t>(reinterpret_cast<uint8_t *>(this->packedDeviceBinary.get()), this->packedDeviceBinarySize))) {
|
||||
this->unpackedDeviceBinary = makeCopy(packedDeviceBinary.get(), packedDeviceBinarySize);
|
||||
this->unpackedDeviceBinarySize = packedDeviceBinarySize;
|
||||
}
|
||||
} else {
|
||||
this->packedDeviceBinary.reset();
|
||||
this->packedDeviceBinarySize = 0U;
|
||||
|
||||
Reference in New Issue
Block a user