mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
- wddm_allocation.h/.cpp - os_context.h - residency_container.h Change-Id: I9f933a09d1142f86550c0d67626f0719b6450303 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
36 lines
885 B
C++
36 lines
885 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "core/memory_manager/deferrable_deletion.h"
|
|
#include "core/os_interface/os_context.h"
|
|
#include "core/os_interface/windows/windows_wrapper.h"
|
|
|
|
#include <d3dkmthk.h>
|
|
|
|
namespace NEO {
|
|
|
|
class OsContextWin;
|
|
class Wddm;
|
|
|
|
class DeferrableDeletionImpl : public DeferrableDeletion {
|
|
public:
|
|
DeferrableDeletionImpl(Wddm *wddm, const D3DKMT_HANDLE *handles, uint32_t allocationCount, D3DKMT_HANDLE resourceHandle);
|
|
bool apply() override;
|
|
~DeferrableDeletionImpl();
|
|
|
|
DeferrableDeletionImpl(const DeferrableDeletionImpl &) = delete;
|
|
DeferrableDeletionImpl &operator=(const DeferrableDeletionImpl &) = delete;
|
|
|
|
protected:
|
|
Wddm *wddm;
|
|
D3DKMT_HANDLE *handles = nullptr;
|
|
uint32_t allocationCount;
|
|
D3DKMT_HANDLE resourceHandle;
|
|
};
|
|
} // namespace NEO
|