mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Fix problem with compression hang on gen12lp
add creating of pageTableManager for non regular engins Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
92bf4b978a
commit
a157963e79
@@ -668,12 +668,9 @@ bool CommandStreamReceiver::expectMemory(const void *gfxAddress, const void *src
|
||||
return (isMemoryEqual == isEqualMemoryExpected);
|
||||
}
|
||||
|
||||
bool CommandStreamReceiver::needsPageTableManager(EngineUsage engineTypeUsage) const {
|
||||
bool CommandStreamReceiver::needsPageTableManager() const {
|
||||
auto hwInfo = executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->getHardwareInfo();
|
||||
|
||||
if (engineTypeUsage != EngineUsage::Regular) {
|
||||
return false;
|
||||
}
|
||||
if (pageTableManager.get() != nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ class CommandStreamReceiver {
|
||||
ResidencyContainer &getEvictionAllocations();
|
||||
|
||||
virtual GmmPageTableMngr *createPageTableManager() { return nullptr; }
|
||||
bool needsPageTableManager(EngineUsage engineTypeUsage) const;
|
||||
bool needsPageTableManager() const;
|
||||
|
||||
void waitForTaskCountAndCleanAllocationList(uint32_t requiredTaskCount, uint32_t allocationUsage);
|
||||
MOCKABLE_VIRTUAL void waitForTaskCountAndCleanTemporaryAllocationList(uint32_t requiredTaskCount);
|
||||
|
||||
@@ -317,7 +317,7 @@ bool Device::createEngine(uint32_t deviceCsrIndex, EngineTypeUsage engineTypeUsa
|
||||
commandStreamReceiver->initializeDefaultsForInternalEngine();
|
||||
}
|
||||
|
||||
if (commandStreamReceiver->needsPageTableManager(engineUsage)) {
|
||||
if (commandStreamReceiver->needsPageTableManager()) {
|
||||
commandStreamReceiver->createPageTableManager();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user