Don't assume rendering complete before buffer latch
[platform/upstream/VK-GL-CTS.git] / modules / egl / teglGetFrameTimestampsTests.cpp
index 09deb06..bbf27cc 100644 (file)
@@ -194,8 +194,7 @@ void populateFrameTimes(FrameTimes* frameTimes, TimestampInfoMap& map, const std
 
 bool timestampValid (EGLnsecsANDROID timestamp)
 {
-       // \todo [2017-10-19 brianderson] Don't consider 0 invalid once kernel fix is in.
-       return (timestamp > 0) || (timestamp == EGL_TIMESTAMP_PENDING_ANDROID);
+       return (timestamp >= 0) || (timestamp == EGL_TIMESTAMP_PENDING_ANDROID);
 }
 
 bool timestampPending (EGLnsecsANDROID timestamp)
@@ -242,7 +241,7 @@ void verifySingleFrame (const FrameTimes& frameTimes, tcu::ResultCollector& resu
        // be sure that the readsDone time must be after the renderingComplete time.
     // It may also be equal to the renderingComplete time if no reads were
     // peformed.
-       if (verifyReadsDone && timestampValid(frameTimes.readsDone))
+       if (verifyReadsDone)
                check_le(result, frameTimes.renderingComplete, frameTimes.readsDone, "Buffer rendering completed after reads completed.");
 
        // Verify CPU/GPU dependencies