mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 18:25:05 +08:00
Prepare to switch to new residency model
Related-To: NEO-5007 Change-Id: Ia9b43ca7fea0ef315af5caff5a53a84ffc363937 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
c4fb85256f
commit
9ea9baf1ad
@@ -85,7 +85,6 @@ DirectSubmissionEnableDebugBuffer = 0
|
|||||||
DirectSubmissionDiagnosticExecutionCount = 30
|
DirectSubmissionDiagnosticExecutionCount = 30
|
||||||
DirectSubmissionDisableCacheFlush = 0
|
DirectSubmissionDisableCacheFlush = 0
|
||||||
DirectSubmissionDisableMonitorFence = 0
|
DirectSubmissionDisableMonitorFence = 0
|
||||||
BindAllAllocations = 0
|
|
||||||
EnableNullHardware = 0
|
EnableNullHardware = 0
|
||||||
ForceLinearImages = 0
|
ForceLinearImages = 0
|
||||||
ForceSLML3Config = 0
|
ForceSLML3Config = 0
|
||||||
|
|||||||
@@ -138,7 +138,6 @@ DECLARE_DEBUG_VARIABLE(int32_t, DirectSubmissionOverrideRenderSupport, -1, "Over
|
|||||||
DECLARE_DEBUG_VARIABLE(int32_t, DirectSubmissionOverrideComputeSupport, -1, "Overrides default compute support: -1: do not override, 0: disable engine support, 1: enable engine support")
|
DECLARE_DEBUG_VARIABLE(int32_t, DirectSubmissionOverrideComputeSupport, -1, "Overrides default compute support: -1: do not override, 0: disable engine support, 1: enable engine support")
|
||||||
DECLARE_DEBUG_VARIABLE(bool, DirectSubmissionDisableCacheFlush, false, "Disable dispatching cache flush commands")
|
DECLARE_DEBUG_VARIABLE(bool, DirectSubmissionDisableCacheFlush, false, "Disable dispatching cache flush commands")
|
||||||
DECLARE_DEBUG_VARIABLE(bool, DirectSubmissionDisableMonitorFence, false, "Disable dispatching monitor fence commands")
|
DECLARE_DEBUG_VARIABLE(bool, DirectSubmissionDisableMonitorFence, false, "Disable dispatching monitor fence commands")
|
||||||
DECLARE_DEBUG_VARIABLE(bool, BindAllAllocations, false, "Bind all allocations during flush")
|
|
||||||
|
|
||||||
/*FEATURE FLAGS*/
|
/*FEATURE FLAGS*/
|
||||||
DECLARE_DEBUG_VARIABLE(bool, EnableNV12, true, "Enables NV12 extension")
|
DECLARE_DEBUG_VARIABLE(bool, EnableNV12, true, "Enables NV12 extension")
|
||||||
|
|||||||
@@ -84,20 +84,8 @@ MemoryOperationsStatus DrmMemoryOperationsHandlerBind::isResident(Device *device
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DrmMemoryOperationsHandlerBind::mergeWithResidencyContainer(OsContext *osContext, ResidencyContainer &residencyContainer) {
|
void DrmMemoryOperationsHandlerBind::mergeWithResidencyContainer(OsContext *osContext, ResidencyContainer &residencyContainer) {
|
||||||
if (DebugManager.flags.BindAllAllocations.get()) {
|
this->makeResidentWithinOsContext(osContext, ArrayRef<GraphicsAllocation *>(residencyContainer));
|
||||||
this->makeResidentWithinOsContext(osContext, ArrayRef<GraphicsAllocation *>(residencyContainer));
|
residencyContainer.clear();
|
||||||
residencyContainer.clear();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::lock_guard<std::mutex> lock(mutex);
|
|
||||||
for (auto gfxAllocation = residencyContainer.begin(); gfxAllocation != residencyContainer.end();) {
|
|
||||||
if ((*gfxAllocation)->isAlwaysResident(osContext->getContextId())) {
|
|
||||||
gfxAllocation = residencyContainer.erase(gfxAllocation);
|
|
||||||
} else {
|
|
||||||
gfxAllocation++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_lock<std::mutex> DrmMemoryOperationsHandlerBind::lockHandlerForExecWA() {
|
std::unique_lock<std::mutex> DrmMemoryOperationsHandlerBind::lockHandlerForExecWA() {
|
||||||
|
|||||||
Reference in New Issue
Block a user