mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Change-Id: I323ca856d3c901bdc4d5961cdefa42685b53d4d9 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
32 lines
711 B
C++
32 lines
711 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "core/memory_manager/residency_handler.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace NEO {
|
|
|
|
class Wddm;
|
|
class WddmResidentAllocationsContainer;
|
|
|
|
class WddmResidencyHandler : public ResidencyHandler {
|
|
public:
|
|
WddmResidencyHandler(Wddm *wddm);
|
|
~WddmResidencyHandler() override = default;
|
|
|
|
bool makeResident(GraphicsAllocation &gfxAllocation) override;
|
|
bool evict(GraphicsAllocation &gfxAllocation) override;
|
|
bool isResident(GraphicsAllocation &gfxAllocation) override;
|
|
|
|
protected:
|
|
Wddm *wddm;
|
|
std::unique_ptr<WddmResidentAllocationsContainer> residentAllocations;
|
|
};
|
|
} // namespace NEO
|