SWDEV-406687 - combining rocblitcl and palblitcl blit kernel defs
Change-Id: Ia312d73584a03491e8d574f424295b64df6de174
This commit is contained in:
@@ -22,32 +22,6 @@ namespace pal {
|
||||
|
||||
#define BLIT_KERNEL(...) #__VA_ARGS__
|
||||
|
||||
const char* palBlitLinearSourceCode = BLIT_KERNEL(
|
||||
\n
|
||||
extern void __amd_streamOpsWrite(__global uint*, __global ulong*, ulong, ulong);
|
||||
\n
|
||||
extern void __amd_streamOpsWait(__global uint*,__global ulong*, ulong, ulong, ulong);
|
||||
\n
|
||||
extern void __ockl_dm_init_v1(ulong, ulong, uint, uint);
|
||||
\n
|
||||
__kernel void __amd_rocclr_streamOpsWrite(__global uint* ptrInt, __global ulong* ptrUlong,
|
||||
ulong value, ulong sizeBytes) {
|
||||
__amd_streamOpsWrite(ptrInt, ptrUlong, value, sizeBytes);
|
||||
}
|
||||
\n
|
||||
__kernel void __amd_rocclr_streamOpsWait(__global uint* ptrInt, __global ulong* ptrUlong,
|
||||
ulong value, ulong flags, ulong mask) {
|
||||
__amd_streamOpsWait(ptrInt, ptrUlong, value, flags, mask);
|
||||
}
|
||||
\n
|
||||
__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);
|
||||
}
|
||||
\n);
|
||||
|
||||
|
||||
|
||||
const char* SchedulerSourceCode = BLIT_KERNEL(
|
||||
\n
|
||||
extern void __amd_scheduler(__global void*, __global void*, uint);
|
||||
@@ -67,13 +41,4 @@ extern void __amd_scheduler_pal(__global void*, __global void*, uint);
|
||||
}
|
||||
\n);
|
||||
|
||||
const char* GwsInitSourceCode = BLIT_KERNEL(
|
||||
\n
|
||||
extern void __ockl_gws_init(uint nwm1, uint rid);
|
||||
\n
|
||||
__kernel void __amd_rocclr_gwsInit(uint value) {
|
||||
__ockl_gws_init(value, 0);
|
||||
}
|
||||
\n);
|
||||
|
||||
} // namespace pal
|
||||
|
||||
Reference in New Issue
Block a user