Rename SHARED_RESOURCE allocation type to SHARED_RESOURCE_COPY

Change-Id: Ie846450384730171304788bbb1709d7f088036a8
This commit is contained in:
Hoppe, Mateusz
2019-01-28 13:59:37 +01:00
committed by sys_ocldev
parent d56daf1726
commit c870628d08
10 changed files with 14 additions and 14 deletions

View File

@@ -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"}};

View File

@@ -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];