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>dev
parent
c2b9747812
commit
74bdb35c85
Loading…
Reference in new issue