mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
36 lines
912 B
C++
36 lines
912 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/memory_manager/deferrable_deletion.h"
|
|
#include "shared/source/os_interface/os_context.h"
|
|
#include "shared/source/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
|