2018-07-13 18:50:55 +02:00
|
|
|
/*
|
2018-12-20 17:38:38 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
2018-07-13 18:50:55 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "runtime/os_interface/windows/wddm_allocation.h"
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-07-13 18:50:55 +02:00
|
|
|
|
|
|
|
|
class MockWddmAllocation : public WddmAllocation {
|
|
|
|
|
public:
|
2019-11-04 16:03:30 +01:00
|
|
|
MockWddmAllocation() : WddmAllocation(0, GraphicsAllocation::AllocationType::UNKNOWN, nullptr, 0, nullptr, MemoryPool::MemoryNull), gpuPtr(gpuAddress), handle(handles[0]) {
|
2018-07-13 18:50:55 +02:00
|
|
|
}
|
2019-03-05 09:25:18 +01:00
|
|
|
using WddmAllocation::cpuPtr;
|
2019-03-05 14:21:57 +01:00
|
|
|
using WddmAllocation::memoryPool;
|
2019-03-05 09:25:18 +01:00
|
|
|
using WddmAllocation::size;
|
2018-12-20 17:38:38 +01:00
|
|
|
|
2019-03-05 14:21:57 +01:00
|
|
|
D3DGPU_VIRTUAL_ADDRESS &gpuPtr;
|
2019-03-05 09:25:18 +01:00
|
|
|
D3DKMT_HANDLE &handle;
|
2018-07-13 18:50:55 +02:00
|
|
|
};
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|