SWDEV-289378 - Avoid CPU TS overwrite if GPU TS is available

Change-Id: I444ec284669b6a6fff31182e213b47c562c90192


[ROCm/clr commit: f4032401cf]
Этот коммит содержится в:
German Andryeyev
2021-07-06 14:09:22 -04:00
коммит произвёл Maneesh Gupta
родитель b5c9af9b52
Коммит e58a6f3502
+1 -1
Просмотреть файл
@@ -135,7 +135,7 @@ class Timestamp : public amd::HeapObject {
// Timestamp value can be updated by HW profiling if current command had a stall.
// Although CPU TS should be still valid in this situation, there are cases in VM mode
// when CPU timeline is out of sync with GPU timeline and shifted time can be reported
if (end_ != 0) {
if (end_ == 0) {
end_ = amd::Os::timeNanos();
}
}