mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
fix: set staging buffer writeable for aub and tbx
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
54e62da553
commit
1135c1033e
@@ -308,7 +308,8 @@ bool Context::createImpl(const cl_context_properties *properties,
|
||||
this->svmAllocsManager = new SVMAllocsManager(this->memoryManager,
|
||||
this->areMultiStorageAllocationsPreferred());
|
||||
this->svmAllocsManager->initUsmAllocationsCaches(device->getDevice());
|
||||
this->stagingBufferManager = std::make_unique<StagingBufferManager>(svmAllocsManager, rootDeviceIndices, deviceBitfields);
|
||||
auto requiresWritableStaging = device->getDefaultEngine().commandStreamReceiver->getType() != CommandStreamReceiverType::hardware;
|
||||
this->stagingBufferManager = std::make_unique<StagingBufferManager>(svmAllocsManager, rootDeviceIndices, deviceBitfields, requiresWritableStaging);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ void MockContext::initializeWithDevices(const ClDeviceVector &devices, bool noSp
|
||||
}
|
||||
deviceBitfields.insert({rootDeviceIndex, deviceBitfield});
|
||||
}
|
||||
stagingBufferManager = std::make_unique<StagingBufferManager>(svmAllocsManager, rootDeviceIndices, deviceBitfields);
|
||||
stagingBufferManager = std::make_unique<StagingBufferManager>(svmAllocsManager, rootDeviceIndices, deviceBitfields, true);
|
||||
|
||||
cl_int retVal;
|
||||
if (!noSpecialQueue) {
|
||||
|
||||
Reference in New Issue
Block a user