mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Make sure that residency is properly initialized.
- all members needs proper init. Change-Id: I578eee8178ae375cc4861872c84ced1729fb689b
This commit is contained in:
committed by
sys_ocldev
parent
e06b370697
commit
f3bcb5c539
@@ -1759,6 +1759,13 @@ TEST(GraphicsAllocation, givenSharedHandleBasedConstructorWhenGraphicsAllocation
|
||||
EXPECT_EQ(expectedGpuAddress, graphicsAllocation.getGpuAddress());
|
||||
}
|
||||
|
||||
TEST(GraphicsAllocation, givenGraphicsAllocationCreatedWithDefaultConstructorThenItIsNotResidentInAllContexts) {
|
||||
GraphicsAllocation graphicsAllocation(nullptr, 1u);
|
||||
for (uint32_t index = 0u; index < maxOsContextCount; index++) {
|
||||
EXPECT_EQ(ObjectNotResident, graphicsAllocation.residencyTaskCount[index]);
|
||||
}
|
||||
}
|
||||
|
||||
TEST(ResidencyDataTest, givenOsContextWhenItIsRegisteredToMemoryManagerThenRefCountIncreases) {
|
||||
auto osContext = new OsContext(nullptr, 0u);
|
||||
OsAgnosticMemoryManager memoryManager;
|
||||
|
||||
Reference in New Issue
Block a user