diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-09-01 12:54:13 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-09-06 17:13:16 +0900 |
commit | eda1f3df6aaed683036369fe8820da4dac3c2ae2 (patch) | |
tree | 2baa7e50b05c9eb6eac1dd8275651151a65e9053 /src/drmmode_display.h | |
parent | 2f6e5fb15f1a9ce523c85550e493f8bda9d0c00f (diff) |
Synchronize scanout pixmaps for TearFree
Copy the damaged areas which are still valid in the other scanout pixmap
from there, then only copy the remaining damaged area from the screen
pixmap.
This is slightly more efficient (only needs one Damage record instead of
two, and only needs to copy each screen update across PCIe once with
ShadowPrimary and a discrete GPU), and will be significantly more
efficient for PRIME with the following change.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r-- | src/drmmode_display.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 53c79268..5df9773d 100644 --- a/src/drmmode_display.h +++ b/src/drmmode_display.h @@ -73,7 +73,6 @@ typedef struct { struct drmmode_scanout { struct radeon_bo *bo; PixmapPtr pixmap; - DamagePtr damage; unsigned fb_id; int width, height; }; @@ -85,6 +84,8 @@ typedef struct { struct radeon_bo *cursor_bo; struct drmmode_scanout rotate; struct drmmode_scanout scanout[2]; + DamagePtr scanout_damage; + RegionRec scanout_last_region; unsigned scanout_id; Bool scanout_update_pending; int dpms_mode; |