SWDEV-406687 - combining rocblitcl and palblitcl blit kernel defs

Change-Id: Ia312d73584a03491e8d574f424295b64df6de174
이 커밋은 다음에 포함됨:
ajay 작성하고 Ajay GunaShekar가 2023-06-23 18:38:36 -04:00를 커밋함
1 부모 e9750de215
커밋 d6946ffcbc
5 파일이 변경됨
+28 -87

검색과 일치하는 파일 없음

-35
파일 보기
@@ -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