mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
- wddm_allocation.h/.cpp - os_context.h - residency_container.h Change-Id: I9f933a09d1142f86550c0d67626f0719b6450303 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
26 lines
612 B
C++
26 lines
612 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "core/os_interface/windows/wddm_allocation.h"
|
|
|
|
namespace NEO {
|
|
|
|
class MockWddmAllocation : public WddmAllocation {
|
|
public:
|
|
MockWddmAllocation() : WddmAllocation(0, GraphicsAllocation::AllocationType::UNKNOWN, nullptr, 0, nullptr, MemoryPool::MemoryNull), gpuPtr(gpuAddress), handle(handles[0]) {
|
|
}
|
|
using WddmAllocation::cpuPtr;
|
|
using WddmAllocation::memoryPool;
|
|
using WddmAllocation::size;
|
|
|
|
D3DGPU_VIRTUAL_ADDRESS &gpuPtr;
|
|
D3DKMT_HANDLE &handle;
|
|
};
|
|
|
|
} // namespace NEO
|