mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
Refactor GraphicsAllocation::AllocationType and allocationType enums
- change GraphicsAllocatoin::AllocationType to scoped enumeration so that ALLOCATION_TYPE_ prefix in every enum value can be removed - all accesses are typed (example AllocationType::IMAGE) - Rename allocationType to AllocationUsage to eliminate confusion with multiple AllocationType enums / types Change-Id: I16003297ecfcb0aaa5779ad00706c5d983914bbe
This commit is contained in:
committed by
sys_ocldev
parent
1c88165f6f
commit
684b1d75ba
@@ -463,7 +463,7 @@ TEST_F(EnqueueSvmTest, givenEnqueueSVMMemFillWhenPatternAllocationIsObtainedThen
|
||||
GraphicsAllocation *patternAllocation = mmgr->allocationsForReuse.peekHead();
|
||||
ASSERT_NE(nullptr, patternAllocation);
|
||||
|
||||
EXPECT_EQ(GraphicsAllocation::ALLOCATION_TYPE_FILL_PATTERN, patternAllocation->getAllocationType());
|
||||
EXPECT_EQ(GraphicsAllocation::AllocationType::FILL_PATTERN, patternAllocation->getAllocationType());
|
||||
}
|
||||
|
||||
TEST_F(EnqueueSvmTest, enqueueTaskWithKernelExecInfo_success) {
|
||||
|
||||
Reference in New Issue
Block a user