@@ -913,8 +913,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendImageCopyToMemory(void *
913913 CmdListKernelLaunchParams launchParams = {};
914914 launchParams.isBuiltInKernel = true ;
915915 launchParams.isDestinationAllocationInSystemMemory =
916- (dstAllocationType == NEO::AllocationType::BUFFER_HOST_MEMORY ) ||
917- (dstAllocationType == NEO::AllocationType::EXTERNAL_HOST_PTR );
916+ (dstAllocationType == NEO::AllocationType::bufferHostMemory ) ||
917+ (dstAllocationType == NEO::AllocationType::externalHostPtr );
918918 ret = CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel (builtinKernel->toHandle (), kernelArgs,
919919 event, numWaitEvents, phWaitEvents, launchParams, relaxedOrderingDispatch);
920920 addToMappedEventList (event);
@@ -1193,9 +1193,9 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyKernelWithGA(v
11931193 auto dstAllocationType = dstPtrAlloc->getAllocationType ();
11941194 launchParams.isBuiltInKernel = true ;
11951195 launchParams.isDestinationAllocationInSystemMemory =
1196- (dstAllocationType == NEO::AllocationType::BUFFER_HOST_MEMORY ) ||
1197- (dstAllocationType == NEO::AllocationType::SVM_CPU ) ||
1198- (dstAllocationType == NEO::AllocationType::EXTERNAL_HOST_PTR );
1196+ (dstAllocationType == NEO::AllocationType::bufferHostMemory ) ||
1197+ (dstAllocationType == NEO::AllocationType::svmCpu ) ||
1198+ (dstAllocationType == NEO::AllocationType::externalHostPtr );
11991199
12001200 return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernelSplit (builtinKernel, dispatchKernelArgs, signalEvent, launchParams);
12011201}
@@ -1720,8 +1720,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyKernel3d(Align
17201720 CmdListKernelLaunchParams launchParams = {};
17211721 launchParams.isBuiltInKernel = true ;
17221722 launchParams.isDestinationAllocationInSystemMemory =
1723- (dstAllocationType == NEO::AllocationType::BUFFER_HOST_MEMORY ) ||
1724- (dstAllocationType == NEO::AllocationType::EXTERNAL_HOST_PTR );
1723+ (dstAllocationType == NEO::AllocationType::bufferHostMemory ) ||
1724+ (dstAllocationType == NEO::AllocationType::externalHostPtr );
17251725 return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel (builtinKernel->toHandle (), dispatchKernelArgs, signalEvent, numWaitEvents,
17261726 phWaitEvents, launchParams, relaxedOrderingDispatch);
17271727}
@@ -1787,8 +1787,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyKernel2d(Align
17871787 CmdListKernelLaunchParams launchParams = {};
17881788 launchParams.isBuiltInKernel = true ;
17891789 launchParams.isDestinationAllocationInSystemMemory =
1790- (dstAllocationType == NEO::AllocationType::BUFFER_HOST_MEMORY ) ||
1791- (dstAllocationType == NEO::AllocationType::EXTERNAL_HOST_PTR );
1790+ (dstAllocationType == NEO::AllocationType::bufferHostMemory ) ||
1791+ (dstAllocationType == NEO::AllocationType::externalHostPtr );
17921792 return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel (builtinKernel->toHandle (),
17931793 dispatchKernelArgs, signalEvent,
17941794 numWaitEvents,
@@ -1978,11 +1978,11 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryFill(void *ptr,
19781978 builtinKernel->setGroupSize (static_cast <uint32_t >(fillArguments.mainGroupSize ), 1 , 1 );
19791979
19801980 size_t patternAllocationSize = alignUp (patternSize, MemoryConstants::cacheLineSize);
1981- auto patternGfxAlloc = device->obtainReusableAllocation (patternAllocationSize, NEO::AllocationType::FILL_PATTERN );
1981+ auto patternGfxAlloc = device->obtainReusableAllocation (patternAllocationSize, NEO::AllocationType::fillPattern );
19821982 if (patternGfxAlloc == nullptr ) {
19831983 NEO::AllocationProperties allocationProperties{device->getNEODevice ()->getRootDeviceIndex (),
19841984 patternAllocationSize,
1985- NEO::AllocationType::FILL_PATTERN ,
1985+ NEO::AllocationType::fillPattern ,
19861986 device->getNEODevice ()->getDeviceBitfield ()};
19871987 allocationProperties.alignment = MemoryConstants::pageSize;
19881988 patternGfxAlloc = device->getDriverHandle ()->getMemoryManager ()->allocateGraphicsMemoryWithProperties (allocationProperties);
@@ -2254,7 +2254,7 @@ inline AlignedAllocationData CommandListCoreFamily<gfxCoreFamily>::getAlignedAll
22542254 return {0u , 0 , nullptr , false };
22552255 }
22562256 alignedPtr = static_cast <uintptr_t >(alignDown (alloc->getGpuAddress (), NEO::EncodeSurfaceState<GfxFamily>::getSurfaceBaseAddressAlignment ()));
2257- if (alloc->getAllocationType () == NEO::AllocationType::EXTERNAL_HOST_PTR ) {
2257+ if (alloc->getAllocationType () == NEO::AllocationType::externalHostPtr ) {
22582258 auto hostAllocCpuPtr = reinterpret_cast <uintptr_t >(alloc->getUnderlyingBuffer ());
22592259 hostAllocCpuPtr = alignDown (hostAllocCpuPtr, NEO::EncodeSurfaceState<GfxFamily>::getSurfaceBaseAddressAlignment ());
22602260 auto allignedPtrOffset = sourcePtr - hostAllocCpuPtr;
@@ -2301,7 +2301,7 @@ inline AlignedAllocationData CommandListCoreFamily<gfxCoreFamily>::getAlignedAll
23012301template <GFXCORE_FAMILY gfxCoreFamily>
23022302inline size_t CommandListCoreFamily<gfxCoreFamily>::getAllocationOffsetForAppendBlitFill(void *ptr, NEO::GraphicsAllocation &gpuAllocation) {
23032303 uint64_t offset;
2304- if (gpuAllocation.getAllocationType () == NEO::AllocationType::EXTERNAL_HOST_PTR ) {
2304+ if (gpuAllocation.getAllocationType () == NEO::AllocationType::externalHostPtr ) {
23052305 offset = castToUint64 (ptr) - castToUint64 (gpuAllocation.getUnderlyingBuffer ()) + gpuAllocation.getAllocationOffset ();
23062306 } else {
23072307 offset = castToUint64 (ptr) - gpuAllocation.getGpuAddress ();
@@ -2771,7 +2771,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendQueryKernelTimestamps(
27712771 }
27722772
27732773 size_t alignedSize = alignUp<size_t >(sizeof (EventData) * numEvents, MemoryConstants::pageSize64k);
2774- NEO::AllocationType allocationType = NEO::AllocationType::GPU_TIMESTAMP_DEVICE_BUFFER ;
2774+ NEO::AllocationType allocationType = NEO::AllocationType::gpuTimestampDeviceBuffer ;
27752775 auto devices = device->getNEODevice ()->getDeviceBitfield ();
27762776 NEO::AllocationProperties allocationProperties{device->getRootDeviceIndex (),
27772777 true ,
@@ -2840,8 +2840,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendQueryKernelTimestamps(
28402840 CmdListKernelLaunchParams launchParams = {};
28412841 launchParams.isBuiltInKernel = true ;
28422842 launchParams.isDestinationAllocationInSystemMemory =
2843- (dstAllocationType == NEO::AllocationType::BUFFER_HOST_MEMORY ) ||
2844- (dstAllocationType == NEO::AllocationType::EXTERNAL_HOST_PTR );
2843+ (dstAllocationType == NEO::AllocationType::bufferHostMemory ) ||
2844+ (dstAllocationType == NEO::AllocationType::externalHostPtr );
28452845 auto appendResult = appendLaunchKernel (builtinKernel->toHandle (), dispatchKernelArgs, hSignalEvent, numWaitEvents,
28462846 phWaitEvents, launchParams, false );
28472847 if (appendResult != ZE_RESULT_SUCCESS) {
@@ -3403,8 +3403,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWaitOnMemory(void *desc,
34033403 const auto &rootDeviceEnvironment = this ->device ->getNEODevice ()->getRootDeviceEnvironment ();
34043404 auto allocType = srcAllocationStruct.alloc ->getAllocationType ();
34053405 bool isSystemMemoryUsed =
3406- (allocType == NEO::AllocationType::BUFFER_HOST_MEMORY ) ||
3407- (allocType == NEO::AllocationType::EXTERNAL_HOST_PTR );
3406+ (allocType == NEO::AllocationType::bufferHostMemory ) ||
3407+ (allocType == NEO::AllocationType::externalHostPtr );
34083408 if (isSystemMemoryUsed) {
34093409 NEO::MemorySynchronizationCommands<GfxFamily>::addAdditionalSynchronization (*commandContainer.getCommandStream (), gpuAddress, true , rootDeviceEnvironment);
34103410 }
0 commit comments