mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
36 lines
919 B
C++
36 lines
919 B
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/memory_manager/deferrable_deletion.h"
|
|
#include "runtime/os_interface/os_context.h"
|
|
#include "runtime/os_interface/windows/windows_wrapper.h"
|
|
#include <d3dkmthk.h>
|
|
|
|
namespace OCLRT {
|
|
|
|
class Wddm;
|
|
|
|
using OsContextWin = OsContext::OsContextImpl;
|
|
|
|
class DeferrableDeletionImpl : public DeferrableDeletion {
|
|
public:
|
|
DeferrableDeletionImpl(Wddm *wddm, D3DKMT_HANDLE *handles, uint32_t allocationCount, D3DKMT_HANDLE resourceHandle);
|
|
void 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 OCLRT
|