Skip to content
Commit 74bdb35c authored by Derek Foreman's avatar Derek Foreman Committed by Daniel Stone
Browse files

drm: Ignore timestamp for monitor shut-off



Some graphics drivers (currently at least VMware and AMD) will give a 0
timestamp for the atomic mode flip completion event when turning off
the display. This causes us to trip an assertion in
weston_output_frame_finish() because the clock jumps backwards, which
isn't a condition the presentation feedback code should be dealing with.

This is a good assertion and we'd like to keep it. And there's some
expectation that this is buggy behaviour in the graphics drivers that will
be fixed at some point.

Pragmatically speaking though, there's nothing productive we can do with a
correct timestamp for the display shutdown.  So let's just flag the
event sent for DPMS off as invalid so presentation feedback doesn't have
to worry about it, and the assert doesn't fire.

Signed-off-by: default avatarDerek Foreman <derek.foreman@collabora.com>
parent c2b97478
Loading
Loading
Loading
Pipeline #371877 passed with stages
in 2 minutes and 18 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment