2019-07-12 16:50:14 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2019 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2019-08-21 10:53:07 +02:00
|
|
|
#include "core/memory_manager/memory_operations_handler.h"
|
2019-07-12 16:50:14 +02:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2019-08-21 10:53:07 +02:00
|
|
|
class DrmMemoryOperationsHandler : public MemoryOperationsHandler {
|
2019-07-12 16:50:14 +02:00
|
|
|
public:
|
2019-08-21 10:53:07 +02:00
|
|
|
DrmMemoryOperationsHandler();
|
|
|
|
|
~DrmMemoryOperationsHandler() override = default;
|
2019-07-12 16:50:14 +02:00
|
|
|
|
2019-08-29 13:46:49 +02:00
|
|
|
MemoryOperationsStatus makeResident(GraphicsAllocation &gfxAllocation) override;
|
|
|
|
|
MemoryOperationsStatus evict(GraphicsAllocation &gfxAllocation) override;
|
|
|
|
|
MemoryOperationsStatus isResident(GraphicsAllocation &gfxAllocation) override;
|
2019-07-12 16:50:14 +02:00
|
|
|
};
|
|
|
|
|
} // namespace NEO
|