Improve page table manager initialization

Change-Id: Ifdd74bf93a93fcdecaae5b1276c0fa83a9664987
This commit is contained in:
Dunajski, Bartosz
2018-02-14 20:14:20 +01:00
committed by sys_ocldev
parent 4f270223d1
commit 87ed3d4fff
14 changed files with 22 additions and 120 deletions

View File

@@ -21,19 +21,12 @@
*/
#include "runtime/helpers/translationtable_callbacks.h"
#include "runtime/helpers/hw_helper.h"
#include "test.h"
using namespace OCLRT;
typedef ::testing::Test Gen9TTCallbacksTests;
GEN9TEST_F(Gen9TTCallbacksTests, givenLriWhenAppendCalledThenDoNothing) {
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
auto lri = MI_LOAD_REGISTER_IMM::sInit();
auto lriBefore = lri;
TTCallbacks<FamilyType>::appendLriParams(&lri);
EXPECT_TRUE(memcmp(&lri, &lriBefore, sizeof(MI_LOAD_REGISTER_IMM)) == 0);
GEN9TEST_F(Gen9TTCallbacksTests, notSupported) {
EXPECT_EQ(0, TTCallbacks<FamilyType>::writeL3Address(nullptr, 1, 2));
}