mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
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:
committed by
Compute-Runtime-Automation
parent
64f2312aa0
commit
09cbbc2625
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user