SWDEV-305527 - Changes to handle memset blit kernel that takes width, height and depth. This also fixes SWDEV-317261.

Change-Id: Ic85f63a95d9d8f48884fc8c7fd95cbb496dfbbca


[ROCm/clr commit: 7fb80a027a]
This commit is contained in:
kjayapra-amd
2021-10-19 13:00:51 -04:00
committed by Karthik Jayaprakash
parent 8fb4e3478a
commit 31c0525344
11 changed files with 224 additions and 47 deletions
+19
View File
@@ -27,6 +27,10 @@ const char* BlitLinearSourceCode = BLIT_KERNELS(
extern void __amd_fillBufferAligned(__global uchar*, __global ushort*, __global uint*,
__global ulong*, __constant uchar*, uint, ulong, ulong);
extern void __amd_fillBufferAligned2D(__global uchar*, __global ushort*, __global uint*,
__global ulong*, __constant uchar*, uint, ulong, ulong,
ulong, ulong);
extern void __amd_copyBuffer(__global uchar*, __global uchar*, ulong, ulong, ulong, uint);
extern void __amd_copyBufferAligned(__global uint*, __global uint*, ulong, ulong, ulong, uint);
@@ -47,6 +51,21 @@ const char* BlitLinearSourceCode = BLIT_KERNELS(
pattern, patternSize, offset, size);
}
__kernel void __amd_rocclr_fillBufferAligned2D(__global uchar* bufUChar,
__global ushort* bufUShort,
__global uint* bufUInt,
__global ulong* bufULong,
__constant uchar* pattern,
uint patternSize,
ulong offset,
ulong width,
ulong height,
ulong pitch) {
__amd_fillBufferAligned2D(bufUChar, bufUShort, bufUInt, bufULong,
pattern, patternSize, offset, width, height,
pitch);
}
__kernel void __amd_rocclr_copyBuffer(__global uchar* srcI, __global uchar* dstI,
ulong srcOrigin, ulong dstOrigin, ulong size,
uint remain) {