mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Set SkipResourceCleanup in TBX mode
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7ff37cd5fd
commit
06a647a5e9
@@ -276,7 +276,7 @@ bool CommandStreamReceiver::isRcs() const {
|
||||
}
|
||||
|
||||
bool CommandStreamReceiver::skipResourceCleanup() const {
|
||||
return this->getOSInterface() && this->getOSInterface()->getDriverModel() && this->getOSInterface()->getDriverModel()->skipResourceCleanup();
|
||||
return ((this->getOSInterface() && this->getOSInterface()->getDriverModel() && this->getOSInterface()->getDriverModel()->skipResourceCleanup()) || forceSkipResourceCleanupRequired);
|
||||
}
|
||||
|
||||
bool CommandStreamReceiver::isGpuHangDetected() const {
|
||||
|
||||
@@ -500,6 +500,7 @@ class CommandStreamReceiver {
|
||||
bool lastSentUseGlobalAtomics = false;
|
||||
bool useNotifyEnableForPostSync = false;
|
||||
bool dcFlushSupport = false;
|
||||
bool forceSkipResourceCleanupRequired = false;
|
||||
};
|
||||
|
||||
typedef CommandStreamReceiver *(*CommandStreamReceiverCreateFunc)(bool withAubDump,
|
||||
|
||||
@@ -27,6 +27,7 @@ class TbxCommandStreamReceiverHw : public CommandStreamReceiverSimulatedHw<GfxFa
|
||||
protected:
|
||||
typedef CommandStreamReceiverSimulatedHw<GfxFamily> BaseClass;
|
||||
using AUB = typename AUBFamilyMapper<GfxFamily>::AUB;
|
||||
using BaseClass::forceSkipResourceCleanupRequired;
|
||||
using BaseClass::getParametersForWriteMemory;
|
||||
using BaseClass::osContext;
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ TbxCommandStreamReceiverHw<GfxFamily>::TbxCommandStreamReceiverHw(ExecutionEnvir
|
||||
const DeviceBitfield deviceBitfield)
|
||||
: BaseClass(executionEnvironment, rootDeviceIndex, deviceBitfield) {
|
||||
|
||||
forceSkipResourceCleanupRequired = true;
|
||||
|
||||
physicalAddressAllocator.reset(this->createPhysicalAddressAllocator(&this->peekHwInfo()));
|
||||
executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->initAubCenter(this->localMemoryEnabled, "", this->getType());
|
||||
auto aubCenter = executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->aubCenter.get();
|
||||
|
||||
Reference in New Issue
Block a user