Fix crash caused by missing residency data.

Change-Id: Ib615e3b13382950ec8ecc128bea0032a126666e0
This commit is contained in:
Zdunowski, Piotr
2018-08-27 11:33:25 +02:00
committed by sys_ocldev
parent e0e25d28c6
commit ad65477868
4 changed files with 8 additions and 0 deletions

View File

@@ -161,6 +161,7 @@ TEST_F(MemoryAllocatorTest, GivenGraphicsAllocationWhenAddAndRemoveAllocationToH
EXPECT_EQ(fragment->fragmentCpuPointer, cpuPtr);
EXPECT_EQ(fragment->fragmentSize, size);
EXPECT_NE(fragment->osInternalStorage, nullptr);
EXPECT_NE(fragment->residency, nullptr);
FragmentStorage fragmentStorage = {};
fragmentStorage.fragmentCpuPointer = cpuPtr;