@@ -913,8 +913,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendImageCopyToMemory(void *
913
913
CmdListKernelLaunchParams launchParams = {};
914
914
launchParams.isBuiltInKernel = true ;
915
915
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 );
918
918
ret = CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel (builtinKernel->toHandle (), kernelArgs,
919
919
event, numWaitEvents, phWaitEvents, launchParams, relaxedOrderingDispatch);
920
920
addToMappedEventList (event);
@@ -1193,9 +1193,9 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyKernelWithGA(v
1193
1193
auto dstAllocationType = dstPtrAlloc->getAllocationType ();
1194
1194
launchParams.isBuiltInKernel = true ;
1195
1195
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 );
1199
1199
1200
1200
return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernelSplit (builtinKernel, dispatchKernelArgs, signalEvent, launchParams);
1201
1201
}
@@ -1720,8 +1720,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyKernel3d(Align
1720
1720
CmdListKernelLaunchParams launchParams = {};
1721
1721
launchParams.isBuiltInKernel = true ;
1722
1722
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 );
1725
1725
return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel (builtinKernel->toHandle (), dispatchKernelArgs, signalEvent, numWaitEvents,
1726
1726
phWaitEvents, launchParams, relaxedOrderingDispatch);
1727
1727
}
@@ -1787,8 +1787,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryCopyKernel2d(Align
1787
1787
CmdListKernelLaunchParams launchParams = {};
1788
1788
launchParams.isBuiltInKernel = true ;
1789
1789
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 );
1792
1792
return CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernel (builtinKernel->toHandle (),
1793
1793
dispatchKernelArgs, signalEvent,
1794
1794
numWaitEvents,
@@ -1978,11 +1978,11 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendMemoryFill(void *ptr,
1978
1978
builtinKernel->setGroupSize (static_cast <uint32_t >(fillArguments.mainGroupSize ), 1 , 1 );
1979
1979
1980
1980
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 );
1982
1982
if (patternGfxAlloc == nullptr ) {
1983
1983
NEO::AllocationProperties allocationProperties{device->getNEODevice ()->getRootDeviceIndex (),
1984
1984
patternAllocationSize,
1985
- NEO::AllocationType::FILL_PATTERN ,
1985
+ NEO::AllocationType::fillPattern ,
1986
1986
device->getNEODevice ()->getDeviceBitfield ()};
1987
1987
allocationProperties.alignment = MemoryConstants::pageSize;
1988
1988
patternGfxAlloc = device->getDriverHandle ()->getMemoryManager ()->allocateGraphicsMemoryWithProperties (allocationProperties);
@@ -2254,7 +2254,7 @@ inline AlignedAllocationData CommandListCoreFamily<gfxCoreFamily>::getAlignedAll
2254
2254
return {0u , 0 , nullptr , false };
2255
2255
}
2256
2256
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 ) {
2258
2258
auto hostAllocCpuPtr = reinterpret_cast <uintptr_t >(alloc->getUnderlyingBuffer ());
2259
2259
hostAllocCpuPtr = alignDown (hostAllocCpuPtr, NEO::EncodeSurfaceState<GfxFamily>::getSurfaceBaseAddressAlignment ());
2260
2260
auto allignedPtrOffset = sourcePtr - hostAllocCpuPtr;
@@ -2301,7 +2301,7 @@ inline AlignedAllocationData CommandListCoreFamily<gfxCoreFamily>::getAlignedAll
2301
2301
template <GFXCORE_FAMILY gfxCoreFamily>
2302
2302
inline size_t CommandListCoreFamily<gfxCoreFamily>::getAllocationOffsetForAppendBlitFill(void *ptr, NEO::GraphicsAllocation &gpuAllocation) {
2303
2303
uint64_t offset;
2304
- if (gpuAllocation.getAllocationType () == NEO::AllocationType::EXTERNAL_HOST_PTR ) {
2304
+ if (gpuAllocation.getAllocationType () == NEO::AllocationType::externalHostPtr ) {
2305
2305
offset = castToUint64 (ptr) - castToUint64 (gpuAllocation.getUnderlyingBuffer ()) + gpuAllocation.getAllocationOffset ();
2306
2306
} else {
2307
2307
offset = castToUint64 (ptr) - gpuAllocation.getGpuAddress ();
@@ -2771,7 +2771,7 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendQueryKernelTimestamps(
2771
2771
}
2772
2772
2773
2773
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 ;
2775
2775
auto devices = device->getNEODevice ()->getDeviceBitfield ();
2776
2776
NEO::AllocationProperties allocationProperties{device->getRootDeviceIndex (),
2777
2777
true ,
@@ -2840,8 +2840,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendQueryKernelTimestamps(
2840
2840
CmdListKernelLaunchParams launchParams = {};
2841
2841
launchParams.isBuiltInKernel = true ;
2842
2842
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 );
2845
2845
auto appendResult = appendLaunchKernel (builtinKernel->toHandle (), dispatchKernelArgs, hSignalEvent, numWaitEvents,
2846
2846
phWaitEvents, launchParams, false );
2847
2847
if (appendResult != ZE_RESULT_SUCCESS) {
@@ -3403,8 +3403,8 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendWaitOnMemory(void *desc,
3403
3403
const auto &rootDeviceEnvironment = this ->device ->getNEODevice ()->getRootDeviceEnvironment ();
3404
3404
auto allocType = srcAllocationStruct.alloc ->getAllocationType ();
3405
3405
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 );
3408
3408
if (isSystemMemoryUsed) {
3409
3409
NEO::MemorySynchronizationCommands<GfxFamily>::addAdditionalSynchronization (*commandContainer.getCommandStream (), gpuAddress, true , rootDeviceEnvironment);
3410
3410
}
0 commit comments