mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add debug flag to bind at creation time
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
596fe02dd3
commit
538e0aea87
@ -115,7 +115,16 @@ void CommandStreamReceiver::makeResident(MultiGraphicsAllocation &gfxAllocation)
|
||||
void CommandStreamReceiver::makeResident(GraphicsAllocation &gfxAllocation) {
|
||||
auto submissionTaskCount = this->taskCount + 1;
|
||||
if (gfxAllocation.isResidencyTaskCountBelow(submissionTaskCount, osContext->getContextId())) {
|
||||
this->getResidencyAllocations().push_back(&gfxAllocation);
|
||||
auto pushAllocations = true;
|
||||
|
||||
if (DebugManager.flags.MakeEachAllocationResident.get() != -1) {
|
||||
pushAllocations = !DebugManager.flags.MakeEachAllocationResident.get();
|
||||
}
|
||||
|
||||
if (pushAllocations) {
|
||||
this->getResidencyAllocations().push_back(&gfxAllocation);
|
||||
}
|
||||
|
||||
checkForNewResources(submissionTaskCount, gfxAllocation.getTaskCount(osContext->getContextId()), gfxAllocation);
|
||||
gfxAllocation.updateTaskCount(submissionTaskCount, osContext->getContextId());
|
||||
if (!gfxAllocation.isResident(osContext->getContextId())) {
|
||||
|
Reference in New Issue
Block a user