mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Rename SHARED_RESOURCE allocation type to SHARED_RESOURCE_COPY
Change-Id: Ie846450384730171304788bbb1709d7f088036a8
This commit is contained in:
committed by
sys_ocldev
parent
d56daf1726
commit
c870628d08
@@ -888,7 +888,7 @@ AllocationTypeTestCase allocationTypeValues[] = {
|
||||
{OCLRT::GraphicsAllocation::AllocationType::INDIRECT_OBJECT_HEAP, "INDIRECT_OBJECT_HEAP"},
|
||||
{OCLRT::GraphicsAllocation::AllocationType::SURFACE_STATE_HEAP, "SURFACE_STATE_HEAP"},
|
||||
{OCLRT::GraphicsAllocation::AllocationType::DYNAMIC_STATE_HEAP, "DYNAMIC_STATE_HEAP"},
|
||||
{OCLRT::GraphicsAllocation::AllocationType::SHARED_RESOURCE, "SHARED_RESOURCE"},
|
||||
{OCLRT::GraphicsAllocation::AllocationType::SHARED_RESOURCE_COPY, "SHARED_RESOURCE_COPY"},
|
||||
{OCLRT::GraphicsAllocation::AllocationType::SVM, "SVM"},
|
||||
{OCLRT::GraphicsAllocation::AllocationType::UNDECIDED, "UNDECIDED"}};
|
||||
|
||||
|
||||
@@ -3076,7 +3076,7 @@ TEST_F(DrmMemoryManagerTest, givenDisabledHostPtrTrackingWhenAllocateGraphicsMem
|
||||
memoryManager->freeGraphicsMemory(allocation);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, givenImageOrSharedResourceWhenGraphicsAllocationInDevicePoolIsAllocatedThenNullptrIsReturned) {
|
||||
TEST_F(DrmMemoryManagerTest, givenImageOrSharedResourceCopyWhenGraphicsAllocationInDevicePoolIsAllocatedThenNullptrIsReturned) {
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
std::unique_ptr<TestedDrmMemoryManager> memoryManager(new (std::nothrow) TestedDrmMemoryManager(Drm::get(0), false, false, executionEnvironment));
|
||||
|
||||
@@ -3086,7 +3086,7 @@ TEST_F(DrmMemoryManagerTest, givenImageOrSharedResourceWhenGraphicsAllocationInD
|
||||
allocData.flags.allocateMemory = true;
|
||||
|
||||
GraphicsAllocation::AllocationType types[] = {GraphicsAllocation::AllocationType::IMAGE,
|
||||
GraphicsAllocation::AllocationType::SHARED_RESOURCE};
|
||||
GraphicsAllocation::AllocationType::SHARED_RESOURCE_COPY};
|
||||
|
||||
for (uint32_t i = 0; i < arrayCount(types); i++) {
|
||||
allocData.type = types[i];
|
||||
|
||||
Reference in New Issue
Block a user