fix: don't evict always resident allocations

Related-To: NEO-12008

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2024-07-13 14:02:01 +00:00
committed by Compute-Runtime-Automation
parent 64f2312aa0
commit 09cbbc2625
2 changed files with 8 additions and 1 deletions

View File

@@ -179,7 +179,7 @@ void CommandStreamReceiver::processEviction() {
void CommandStreamReceiver::makeNonResident(GraphicsAllocation &gfxAllocation) {
if (gfxAllocation.isResident(osContext->getContextId())) {
if (gfxAllocation.peekEvictable()) {
if (gfxAllocation.peekEvictable() && !gfxAllocation.isAlwaysResident(osContext->getContextId())) {
this->getEvictionAllocations().push_back(&gfxAllocation);
} else {
gfxAllocation.setEvictable(true);