mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Change-Id: I3ebeef39befdc2a3e0f9d7d76ae531622ecf1a42 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
26 lines
612 B
C++
26 lines
612 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/os_interface/windows/wddm_allocation.h"
|
|
|
|
namespace NEO {
|
|
|
|
class MockWddmAllocation : public WddmAllocation {
|
|
public:
|
|
MockWddmAllocation() : WddmAllocation(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
|