Move WddmResidencyController to OsContext

Change-Id: If27d52617dec9b290b7eccc7cb4a6ae5037d7112
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-10-10 10:39:02 +02:00
committed by sys_ocldev
parent d924b890f2
commit de5ed6509f
7 changed files with 85 additions and 109 deletions

View File

@@ -7,6 +7,7 @@
#pragma once
#include "runtime/os_interface/os_context.h"
#include "runtime/os_interface/windows/wddm_residency_controller.h"
#include "runtime/os_interface/windows/windows_wrapper.h"
#include "runtime/os_interface/windows/windows_defs.h"
#include <d3dkmthk.h>
@@ -35,6 +36,7 @@ class OsContext::OsContextImpl {
MonitoredFence &getMonitoredFence() { return monitoredFence; }
void resetMonitoredFenceParams(D3DKMT_HANDLE &handle, uint64_t *cpuAddress, D3DGPU_VIRTUAL_ADDRESS &gpuAddress);
Wddm *getWddm() const { return &wddm; }
WddmResidencyController &getResidencyController() { return residencyController; }
protected:
bool initialized = false;
@@ -42,5 +44,6 @@ class OsContext::OsContextImpl {
D3DKMT_HANDLE hwQueueHandle = 0;
Wddm &wddm;
MonitoredFence monitoredFence = {};
WddmResidencyController residencyController;
};
} // namespace OCLRT