mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Add notify functions to enqueue read buffer and image calls
This commit adds notifications to enqueue read buffer and image calls and setters/getters to mark/check if an allocation is dumpable. Change-Id: I123f24752d2a86abcf934e0d404f4e0ecf1729cc
This commit is contained in:
@@ -481,3 +481,10 @@ TEST(MemObj, givenNotSharedMemObjectWhenChangingGfxAllocationThenOldAllocationIs
|
||||
|
||||
EXPECT_EQ(newGfxAllocation, memObj.getGraphicsAllocation());
|
||||
}
|
||||
|
||||
TEST(MemObj, givenGraphicsAllocationWhenCallingIsAllocDumpableThenItReturnsTheCorrectValue) {
|
||||
GraphicsAllocation gfxAllocation(nullptr, 0);
|
||||
EXPECT_FALSE(gfxAllocation.isAllocDumpable());
|
||||
gfxAllocation.setAllocDumpable(true);
|
||||
EXPECT_TRUE(gfxAllocation.isAllocDumpable());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user