-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep track of modeset_sequence_id for pageflips
After successfully committing a pageflip, keep track of the current modeset_sequence_id when the pageflip was committed. If there is a modeset before the pageflip is presented, check the current modeset_sequence_id and avoid calling ResetModesetBufferOfCrtc. Doing so with a stale pageflip could end up releasing the DrmFramebuffer that was committed with the modeset, and end up releasing the framebuffer while it's associated with the crtc. (cherry picked from commit f7859e4) Bug: b:183238601 Test: Toggle primary displays while in extended mode Change-Id: I2c06942998fdadd82c645c4d5cbb200344cd4610 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2812918 Commit-Queue: Drew Davenport <ddavenport@chromium.org> Reviewed-by: Daniel Nicoara <dnicoara@chromium.org> Reviewed-by: Michael Spang <spang@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#871374} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2823582 Auto-Submit: Drew Davenport <ddavenport@chromium.org> Commit-Queue: Michael Spang <spang@chromium.org> Cr-Commit-Position: refs/branch-heads/4472@{#40} Cr-Branched-From: 3d60439-refs/heads/master@{#870763}
- Loading branch information
1 parent
ca09169
commit 3fdc682
Showing
3 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters