mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +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
@@ -394,7 +394,7 @@ TEST_F(CommandQueueCommandStreamTest, givenCommandQueueWhenGetCSIsCalledThenComm
|
||||
auto commandStreamAllocation = commandStream.getGraphicsAllocation();
|
||||
ASSERT_NE(nullptr, commandStreamAllocation);
|
||||
|
||||
EXPECT_EQ(GraphicsAllocation::ALLOCATION_TYPE_LINEAR_STREAM, commandStreamAllocation->getAllocationType());
|
||||
EXPECT_EQ(GraphicsAllocation::AllocationType::LINEAR_STREAM, commandStreamAllocation->getAllocationType());
|
||||
}
|
||||
|
||||
struct CommandQueueIndirectHeapTest : public CommandQueueMemoryDevice,
|
||||
@@ -638,7 +638,7 @@ TEST_P(CommandQueueIndirectHeapTest, givenCommandQueueWhenGetIndirectHeapIsCalle
|
||||
auto indirectHeapAllocation = indirectHeap.getGraphicsAllocation();
|
||||
ASSERT_NE(nullptr, indirectHeapAllocation);
|
||||
|
||||
EXPECT_EQ(GraphicsAllocation::ALLOCATION_TYPE_LINEAR_STREAM, indirectHeapAllocation->getAllocationType());
|
||||
EXPECT_EQ(GraphicsAllocation::AllocationType::LINEAR_STREAM, indirectHeapAllocation->getAllocationType());
|
||||
}
|
||||
|
||||
TEST_P(CommandQueueIndirectHeapTest, givenCommandQueueWhenGetHeapMemoryIsCalledThenHeapIsCreated) {
|
||||
|
||||
Reference in New Issue
Block a user