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]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
8fb4e3478a
tiomantas
31c0525344
11 comhad athraithe
+224
-47
Níor tháinig aon chomhaid le do chuardach
@@ -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) {
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir