mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
fix: set NotLockable flag when resource doesn't need to be lockable
disable compression preference when resource is lockable Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
36d3c65284
commit
7b2af39fd6
@@ -184,6 +184,9 @@ HWTEST2_F(MigrationControllerTests, givenMultiGraphicsAllocationUsedInOneCsrWhen
|
||||
|
||||
ASSERT_TRUE(pImage->getMultiGraphicsAllocation().requiresMigrations());
|
||||
|
||||
pImage->getMultiGraphicsAllocation().getGraphicsAllocation(0)->getDefaultGmm()->resourceParams.Flags.Info.NotLockable = false;
|
||||
pImage->getMultiGraphicsAllocation().getGraphicsAllocation(1)->getDefaultGmm()->resourceParams.Flags.Info.NotLockable = false;
|
||||
|
||||
auto migrationSyncData = static_cast<MockMigrationSyncData *>(pImage->getMultiGraphicsAllocation().getMigrationSyncData());
|
||||
|
||||
EXPECT_EQ(0u, migrationSyncData->waitOnCpuCalled);
|
||||
|
||||
Reference in New Issue
Block a user