Skip to content

drm: Ignore timestamp for monitor shut-off

Derek Foreman requested to merge derekf/weston:derekf/blanker_assertion into main

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: Derek Foreman derek.foreman@collabora.com

Merge request reports

Loading