2019-07-12 16:50:14 +02:00
|
|
|
/*
|
2020-01-09 17:21:52 +01:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-07-12 16:50:14 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 18:46:50 +01:00
|
|
|
#include "memory_manager/memory_operations_status.h"
|
|
|
|
|
#include "utilities/arrayref.h"
|
2019-07-12 16:50:14 +02:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
class GraphicsAllocation;
|
|
|
|
|
|
2019-08-21 10:53:07 +02:00
|
|
|
class MemoryOperationsHandler {
|
2019-07-12 16:50:14 +02:00
|
|
|
public:
|
2019-08-21 10:53:07 +02:00
|
|
|
MemoryOperationsHandler() = default;
|
|
|
|
|
virtual ~MemoryOperationsHandler() = default;
|
2019-07-12 16:50:14 +02:00
|
|
|
|
2020-01-09 17:21:52 +01:00
|
|
|
virtual MemoryOperationsStatus makeResident(ArrayRef<GraphicsAllocation *> gfxAllocations) = 0;
|
2019-08-29 13:46:49 +02:00
|
|
|
virtual MemoryOperationsStatus evict(GraphicsAllocation &gfxAllocation) = 0;
|
|
|
|
|
virtual MemoryOperationsStatus isResident(GraphicsAllocation &gfxAllocation) = 0;
|
2019-07-12 16:50:14 +02:00
|
|
|
};
|
|
|
|
|
} // namespace NEO
|