mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
refactor: placeholder for device handle in gmm client context
Related-To: NEO-11080 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
86ae7d8a2d
commit
73a6b75f57
@@ -51,9 +51,13 @@ class GmmClientContext {
|
||||
GmmHandleAllocator *getHandleAllocator() {
|
||||
return handleAllocator.get();
|
||||
}
|
||||
uint64_t getDeviceHandle() const {
|
||||
return deviceHandle;
|
||||
}
|
||||
|
||||
protected:
|
||||
std::unique_ptr<GMM_CLIENT_CONTEXT, std::function<void(GMM_CLIENT_CONTEXT *)>> clientContext;
|
||||
std::unique_ptr<GmmHandleAllocator> handleAllocator;
|
||||
uint64_t deviceHandle = 0;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
@@ -41,6 +41,7 @@ uint64_t MockGmmClientContextBase::freeGpuVirtualAddress(FreeGpuVirtualAddressGm
|
||||
|
||||
void MockGmmClientContextBase::initialize(const RootDeviceEnvironment &rootDeviceEnvironment) {
|
||||
initializeCalled++;
|
||||
clientContext = {reinterpret_cast<GMM_CLIENT_CONTEXT *>(0x08), [](auto) {}};
|
||||
deviceHandle = 0x08;
|
||||
clientContext = {reinterpret_cast<GMM_CLIENT_CONTEXT *>(deviceHandle), [](auto) {}};
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user