mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Add functionality to make resident before locking resource
Change-Id: I0963c1edcb43f409e9dd62cb46a0da1f2b05667b Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
72f17d6435
commit
ad3bfd84cb
@@ -301,6 +301,11 @@ void WddmMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation
|
||||
return;
|
||||
}
|
||||
|
||||
if (input->isLocked() && input->needsMakeResidentBeforeLock) {
|
||||
auto evictionStatus = wddm->evictTemporaryResource(input);
|
||||
DEBUG_BREAK_IF(evictionStatus == EvictionStatus::FAILED);
|
||||
}
|
||||
|
||||
for (auto &osContext : this->registeredOsContexts) {
|
||||
if (osContext) {
|
||||
auto &residencyController = osContext->get()->getResidencyController();
|
||||
|
||||
Reference in New Issue
Block a user