@@ -35,7 +35,7 @@ struct CommandListCoreFamily : CommandListImp {
35
35
36
36
using CommandListImp::CommandListImp;
37
37
38
- bool initialize (Device *device) override ;
38
+ bool initialize (Device *device, bool isCopyOnly ) override ;
39
39
virtual void programL3 (bool isSLMused);
40
40
41
41
ze_result_t close () override ;
@@ -124,26 +124,39 @@ struct CommandListCoreFamily : CommandListImp {
124
124
ze_result_t executeCommandListImmediate (bool performMigration) override ;
125
125
126
126
protected:
127
- ze_result_t appendMemoryCopyKernelWithGA (void *dstPtr, NEO::GraphicsAllocation *dstPtrAlloc,
128
- uint64_t dstOffset, void *srcPtr,
129
- NEO::GraphicsAllocation *srcPtrAlloc,
130
- uint64_t srcOffset, uint32_t size,
131
- uint32_t elementSize, Builtin builtin);
132
-
133
- ze_result_t appendMemoryCopyKernel2d (const void *dstptr, const void *srcptr,
134
- Builtin builtin, const ze_copy_region_t *dstRegion,
135
- uint32_t dstPitch, size_t dstOffset,
136
- const ze_copy_region_t *srcRegion, uint32_t srcPitch,
137
- size_t srcOffset, ze_event_handle_t hSignalEvent,
138
- uint32_t numWaitEvents, ze_event_handle_t *phWaitEvents);
139
-
140
- ze_result_t appendMemoryCopyKernel3d (const void *dstptr, const void *srcptr,
141
- Builtin builtin, const ze_copy_region_t *dstRegion,
142
- uint32_t dstPitch, uint32_t dstSlicePitch, size_t dstOffset,
143
- const ze_copy_region_t *srcRegion, uint32_t srcPitch,
144
- uint32_t srcSlicePitch, size_t srcOffset,
145
- ze_event_handle_t hSignalEvent, uint32_t numWaitEvents,
146
- ze_event_handle_t *phWaitEvents);
127
+ MOCKABLE_VIRTUAL ze_result_t appendMemoryCopyKernelWithGA (void *dstPtr, NEO::GraphicsAllocation *dstPtrAlloc,
128
+ uint64_t dstOffset, void *srcPtr,
129
+ NEO::GraphicsAllocation *srcPtrAlloc,
130
+ uint64_t srcOffset, uint32_t size,
131
+ uint32_t elementSize, Builtin builtin);
132
+
133
+ MOCKABLE_VIRTUAL ze_result_t appendMemoryCopyBlit (NEO::GraphicsAllocation *dstPtrAlloc,
134
+ uint64_t dstOffset,
135
+ NEO::GraphicsAllocation *srcPtrAlloc,
136
+ uint64_t srcOffset, uint32_t size);
137
+
138
+ MOCKABLE_VIRTUAL ze_result_t appendMemoryCopyBlitRegion (const void *srcptr,
139
+ const void *dstptr,
140
+ ze_copy_region_t srcRegion,
141
+ ze_copy_region_t dstRegion, Vec3<size_t > copySize,
142
+ size_t srcRowPitch, size_t srcSlicePitch,
143
+ size_t dstRowPitch, size_t dstSlicePitch,
144
+ size_t srcSize, size_t dstSize);
145
+
146
+ MOCKABLE_VIRTUAL ze_result_t appendMemoryCopyKernel2d (const void *dstptr, const void *srcptr,
147
+ Builtin builtin, const ze_copy_region_t *dstRegion,
148
+ uint32_t dstPitch, size_t dstOffset,
149
+ const ze_copy_region_t *srcRegion, uint32_t srcPitch,
150
+ size_t srcOffset, ze_event_handle_t hSignalEvent,
151
+ uint32_t numWaitEvents, ze_event_handle_t *phWaitEvents);
152
+
153
+ MOCKABLE_VIRTUAL ze_result_t appendMemoryCopyKernel3d (const void *dstptr, const void *srcptr,
154
+ Builtin builtin, const ze_copy_region_t *dstRegion,
155
+ uint32_t dstPitch, uint32_t dstSlicePitch, size_t dstOffset,
156
+ const ze_copy_region_t *srcRegion, uint32_t srcPitch,
157
+ uint32_t srcSlicePitch, size_t srcOffset,
158
+ ze_event_handle_t hSignalEvent, uint32_t numWaitEvents,
159
+ ze_event_handle_t *phWaitEvents);
147
160
148
161
ze_result_t appendLaunchKernelWithParams (ze_kernel_handle_t hKernel,
149
162
const ze_group_count_t *pThreadGroupDimensions,
@@ -160,7 +173,7 @@ struct CommandListCoreFamily : CommandListImp {
160
173
void appendSignalEventPostWalker (ze_event_handle_t hEvent);
161
174
162
175
uint64_t getInputBufferSize (NEO::ImageType imageType, uint64_t bytesPerPixel, const ze_image_region_t *region);
163
- AlignedAllocationData getAlignedAllocation (Device *device, const void *buffer, uint64_t bufferSize);
176
+ virtual AlignedAllocationData getAlignedAllocation (Device *device, const void *buffer, uint64_t bufferSize);
164
177
ze_result_t addEventsToCmdList (ze_event_handle_t hEvent, uint32_t numWaitEvents, ze_event_handle_t *phWaitEvents);
165
178
};
166
179
0 commit comments