mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
Improve page table manager initialization
Change-Id: Ifdd74bf93a93fcdecaae5b1276c0fa83a9664987
This commit is contained in:
committed by
sys_ocldev
parent
4f270223d1
commit
87ed3d4fff
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user