mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
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:
committed by
sys_ocldev
parent
28279bddd5
commit
03527f496d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user