Extend zeCommandListAppendMemoryPrefetch to migrate to associated device

Related-To: NEO-6740

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2022-03-22 15:54:48 +00:00
committed by Compute-Runtime-Automation
parent 1f7fd45251
commit f03f530327
10 changed files with 50 additions and 13 deletions

View File

@@ -258,7 +258,7 @@ TEST_F(IoctlHelperPrelimFixture, givenDrmAllocationWhenSetMemPrefetchSucceedsThe
allocation.bufferObjects[0] = &bo;
drm->ioctlRetVal = 0;
EXPECT_TRUE(allocation.setMemPrefetch(drm.get()));
EXPECT_TRUE(allocation.setMemPrefetch(drm.get(), 0));
}
TEST_F(IoctlHelperPrelimFixture, givenDrmAllocationWhenSetMemPrefetchFailsThenReturnFalse) {
@@ -267,7 +267,7 @@ TEST_F(IoctlHelperPrelimFixture, givenDrmAllocationWhenSetMemPrefetchFailsThenRe
allocation.bufferObjects[0] = &bo;
drm->ioctlRetVal = EINVAL;
EXPECT_FALSE(allocation.setMemPrefetch(drm.get()));
EXPECT_FALSE(allocation.setMemPrefetch(drm.get(), 0));
}
TEST_F(IoctlHelperPrelimFixture, givenVariousDirectSubmissionFlagSettingWhenCreateDrmContextIsCalledThenCorrectFlagsArePassedToIoctl) {