mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Add residency mechanism to OS interface
Change-Id: I323ca856d3c901bdc4d5961cdefa42685b53d4d9 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
775336df92
commit
f01c1d2d49
@@ -18,6 +18,7 @@
|
||||
|
||||
namespace NEO {
|
||||
class Wddm;
|
||||
class WddmResidencyHandler;
|
||||
|
||||
class OSInterface::OSInterfaceImpl {
|
||||
public:
|
||||
@@ -29,6 +30,9 @@ class OSInterface::OSInterfaceImpl {
|
||||
D3DKMT_HANDLE getDeviceHandle() const;
|
||||
PFND3DKMT_ESCAPE getEscapeHandle() const;
|
||||
uint32_t getHwContextId() const;
|
||||
WddmResidencyHandler *getResidencyInterface() const {
|
||||
return residencyInterface.get();
|
||||
}
|
||||
|
||||
MOCKABLE_VIRTUAL HANDLE createEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState,
|
||||
LPCSTR lpName);
|
||||
@@ -36,5 +40,6 @@ class OSInterface::OSInterfaceImpl {
|
||||
|
||||
protected:
|
||||
std::unique_ptr<Wddm> wddm;
|
||||
std::unique_ptr<WddmResidencyHandler> residencyInterface;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user