eglGetFrameTimestamps: Don't require reads done to be monotonic. am: e8634c9254
am: 24f69aed49
Change-Id: Iab3e70c081836b7219962477fdda27c730c5e0ae
diff --git a/modules/egl/teglGetFrameTimestampsTests.cpp b/modules/egl/teglGetFrameTimestampsTests.cpp
index 09deb06..642262d 100644
--- a/modules/egl/teglGetFrameTimestampsTests.cpp
+++ b/modules/egl/teglGetFrameTimestampsTests.cpp
@@ -253,7 +253,7 @@
check_lt(result, frameTimes.firstCompositionStart, frameTimes.displayPresent, "Buffer displayed before it was composited.");
}
-void verifyNeighboringFrames (const FrameTimes& frame1, const FrameTimes& frame2, tcu::ResultCollector& result, bool verifyReadsDone)
+void verifyNeighboringFrames (const FrameTimes& frame1, const FrameTimes& frame2, tcu::ResultCollector& result)
{
// CPU timeline.
check_lt(result, frame1.swapBufferBeginNs, frame2.swapBufferBeginNs, "Swap begin times not monotonic.");
@@ -270,9 +270,6 @@
if (timestampValid(frame1.displayPresent) && timestampValid(frame2.displayPresent))
check_lt(result, frame1.displayPresent, frame2.displayPresent, "Display present times not monotonic.");
-
- if (verifyReadsDone && timestampValid(frame1.readsDone) && timestampValid(frame2.readsDone))
- check_lt(result, frame1.readsDone, frame2.readsDone, "Reads done times not monotonic.");
}
EGLContext createGLES2Context (const Library& egl, EGLDisplay display, EGLConfig config)
@@ -675,7 +672,7 @@
if (i >= frameDelay + 1)
{
FrameTimes& frame6ago = frameTimes[i-frameDelay-1];
- verifyNeighboringFrames(frame6ago, frame5ago, m_result, verifyReadsDone);
+ verifyNeighboringFrames(frame6ago, frame5ago, m_result);
}
}
}