eglGetFrameTimestamps: Don't require reads done to be monotonic.
authorBrian Anderson <brianderson@google.com>
Fri, 9 Mar 2018 18:25:08 +0000 (10:25 -0800)
committerBrian Anderson <brianderson@google.com>
Fri, 9 Mar 2018 21:39:09 +0000 (13:39 -0800)
commite8634c92542be54bddd428cd8fa1e977f408030b
tree6fe3ff6adabe8a53c4ed03c2c8a666888a3ab2b5
parent7c8b312fbeae2fbeefa1a571b144d585fb4ca8fe
eglGetFrameTimestamps: Don't require reads done to be monotonic.

Reads done is usually monotonic, but only under the assumption
that every buffer of the surface is being consumed by the same
unit. It is possible for a surface to switch between being an
overlay and being composited by the GPU. It's also possible a
driver will maintain a shadow copy of a frame that will further
affect when reads from a buffer might finish.

Remove the overly strict check.

Bug: 7033485174184639
Test: --deqp-case=dEQP-EGL*get_frame_timestamps*
Change-Id: I8e242a9fd649720b4d8059797c71163329b7b92c
modules/egl/teglGetFrameTimestampsTests.cpp