mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
fix: Set vmbind user fence when makeMemoryResident
Related-To: NEO-11977, GSD-10293 Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
18d7a22861
commit
7149743162
@@ -190,13 +190,13 @@ SubmissionStatus DrmCommandStreamReceiver<GfxFamily>::printBOsForSubmit(Residenc
|
||||
if (osContext->getDeviceBitfield().test(drmIterator)) {
|
||||
for (auto gfxAllocation = allocationsForResidency.begin(); gfxAllocation != allocationsForResidency.end(); gfxAllocation++) {
|
||||
auto drmAllocation = static_cast<DrmAllocation *>(*gfxAllocation);
|
||||
auto retCode = drmAllocation->makeBOsResident(osContext, drmIterator, &bosForSubmit, true);
|
||||
auto retCode = drmAllocation->makeBOsResident(osContext, drmIterator, &bosForSubmit, true, false);
|
||||
if (retCode) {
|
||||
return Drm::getSubmissionStatusFromReturnCode(retCode);
|
||||
}
|
||||
}
|
||||
auto drmCmdBufferAllocation = static_cast<DrmAllocation *>(&cmdBufferAllocation);
|
||||
auto retCode = drmCmdBufferAllocation->makeBOsResident(osContext, drmIterator, &bosForSubmit, true);
|
||||
auto retCode = drmCmdBufferAllocation->makeBOsResident(osContext, drmIterator, &bosForSubmit, true, false);
|
||||
if (retCode) {
|
||||
return Drm::getSubmissionStatusFromReturnCode(retCode);
|
||||
}
|
||||
@@ -260,7 +260,7 @@ SubmissionStatus DrmCommandStreamReceiver<GfxFamily>::processResidency(Residency
|
||||
int ret = 0;
|
||||
for (auto &alloc : inputAllocationsForResidency) {
|
||||
auto drmAlloc = static_cast<DrmAllocation *>(alloc);
|
||||
ret = drmAlloc->makeBOsResident(osContext, handleId, &this->residency, false);
|
||||
ret = drmAlloc->makeBOsResident(osContext, handleId, &this->residency, false, false);
|
||||
if (ret != 0) {
|
||||
break;
|
||||
}
|
||||
@@ -389,4 +389,4 @@ template <typename GfxFamily>
|
||||
bool DrmCommandStreamReceiver<GfxFamily>::isKmdWaitOnTaskCountAllowed() const {
|
||||
return this->isDirectSubmissionEnabled();
|
||||
}
|
||||
} // namespace NEO
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user