compute-runtime/runtime/os_interface/linux/drm_residency_handler.h

23 lines
521 B
C
Raw Normal View History

/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/memory_manager/residency_handler.h"
namespace NEO {
class DrmResidencyHandler : public ResidencyHandler {
public:
DrmResidencyHandler();
~DrmResidencyHandler() override = default;
bool makeResident(GraphicsAllocation &gfxAllocation) override;
bool evict(GraphicsAllocation &gfxAllocation) override;
bool isResident(GraphicsAllocation &gfxAllocation) override;
};
} // namespace NEO