Initialize registers of page table manager for each command stream receiver

Resolves: NEO-4097
Change-Id: I364550f4e183e9375966eaff22c5726c67761589
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-12-31 10:45:14 +01:00
committed by sys_ocldev
parent 45601cf26c
commit 3e5fc4111b
13 changed files with 94 additions and 108 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 Intel Corporation
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -12,13 +12,12 @@
#include "gmm_client_context.h"
namespace NEO {
void gmmSetCsrHandle(GMM_PAGETABLE_MGR *pageTableManager, HANDLE csrHandle) {
pageTableManager->GmmSetCsrHandle(csrHandle);
}
GmmPageTableMngr::GmmPageTableMngr(unsigned int translationTableFlags, GMM_TRANSLATIONTABLE_CALLBACKS *translationTableCb) {
clientContext = platform()->peekGmmClientContext()->getHandle();
pageTableManager = clientContext->CreatePageTblMgrObject(translationTableCb, translationTableFlags);
}
void GmmPageTableMngr::setCsrHandle(void *csrHandle) {
pageTableManager->GmmSetCsrHandle(csrHandle);
}
} // namespace NEO