SWDEV-406687 - combining rocblitcl and palblitcl blit kernel defs
Change-Id: Ia312d73584a03491e8d574f424295b64df6de174
This commit is contained in:
committed by
Ajay GunaShekar
orang tua
e9750de215
melakukan
d6946ffcbc
@@ -22,32 +22,6 @@ namespace roc {
|
||||
|
||||
#define BLIT_KERNEL(...) #__VA_ARGS__
|
||||
|
||||
const char* rocBlitLinearSourceCode = BLIT_KERNEL(
|
||||
|
||||
// Extern
|
||||
extern void __amd_streamOpsWrite(__global uint*, __global ulong*, ulong, ulong);
|
||||
|
||||
extern void __amd_streamOpsWait(__global uint*, __global ulong*, ulong, ulong, ulong);
|
||||
|
||||
extern void __ockl_dm_init_v1(ulong, ulong, uint, uint);
|
||||
// Implementation
|
||||
__kernel void __amd_rocclr_streamOpsWrite(__global uint* ptrInt, __global ulong* ptrUlong,
|
||||
ulong value, ulong sizeBytes) {
|
||||
__amd_streamOpsWrite(ptrInt, ptrUlong, value, sizeBytes);
|
||||
}
|
||||
|
||||
__kernel void __amd_rocclr_streamOpsWait(__global uint* ptrInt, __global ulong* ptrUlong,
|
||||
ulong value, ulong flags, ulong mask) {
|
||||
__amd_streamOpsWait(ptrInt, ptrUlong, value, flags, mask);
|
||||
}
|
||||
|
||||
__kernel void __amd_rocclr_initHeap(ulong heap_to_initialize, ulong initial_blocks,
|
||||
uint heap_size, uint number_of_initial_blocks) {
|
||||
__ockl_dm_init_v1(heap_to_initialize, initial_blocks, heap_size, number_of_initial_blocks);
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
const char* SchedulerSourceCode = BLIT_KERNEL(
|
||||
|
||||
extern void __amd_scheduler_rocm(__global void*);
|
||||
@@ -57,13 +31,4 @@ const char* SchedulerSourceCode = BLIT_KERNEL(
|
||||
}
|
||||
);
|
||||
|
||||
const char* GwsInitSourceCode = BLIT_KERNEL(
|
||||
|
||||
extern void __ockl_gws_init(uint nwm1, uint rid);
|
||||
|
||||
__kernel void __amd_rocclr_gwsInit(uint value) {
|
||||
__ockl_gws_init(value, 0);
|
||||
}
|
||||
);
|
||||
|
||||
} // namespace roc
|
||||
|
||||
Reference in New Issue
Block a user