mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Fix builtin kernel copy_kernel_timestamps
Resolves: NEO-5905 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7cac94b597
commit
00fc92129d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user