Cleanup Wddm interface 1/n

pass const D3DKMT_HANDLE * to makeResident/evict/destroyAllocation calls
remove gpuPtr from WddmAllocation

Change-Id: Ia5ca162946a2d893d4f56c37f8027eab02af90b0
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-03-05 14:21:57 +01:00
committed by sys_ocldev
parent 28279bddd5
commit 03527f496d
16 changed files with 61 additions and 73 deletions

View File

@@ -12,12 +12,11 @@ namespace OCLRT {
class MockWddmAllocation : public WddmAllocation {
public:
MockWddmAllocation() : WddmAllocation(GraphicsAllocation::AllocationType::UNDECIDED, nullptr, 0, nullptr, MemoryPool::MemoryNull, false) {
MockWddmAllocation() : WddmAllocation(GraphicsAllocation::AllocationType::UNDECIDED, nullptr, 0, nullptr, MemoryPool::MemoryNull, false), gpuPtr(gpuAddress) {
}
using WddmAllocation::memoryPool;
void setMemoryPool(MemoryPool::Type pool) {
memoryPool = pool;
}
D3DGPU_VIRTUAL_ADDRESS &gpuPtr;
};
} // namespace OCLRT