Fix builtin kernel copy_kernel_timestamps

Resolves: NEO-5905

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2021-05-26 15:17:34 +00:00
committed by Compute-Runtime-Automation
parent 7cac94b597
commit 00fc92129d
6 changed files with 8 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ __kernel void QueryKernelTimestamps(__global ulong* srcEvents, __global ulong* d
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}
@@ -93,7 +93,7 @@ __kernel void QueryKernelTimestampsWithOffsets(__global ulong* srcEvents, __glob
if(packetUsed > 1) {
uint timestampsOffsets = 4;
for(uint i = 1; i < packetUsed; i++) {
timestampsOffsets *= i;
timestampsOffsets += i;
if(contextStart > GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets)) {
contextStart = GetTimestampValue(srcPtr, timestampSizeInDw, timestampsOffsets);
}