diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-03-18 16:23:24 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-04-03 11:42:00 +0900 |
commit | ae92d1765fa370a8d94c2856ad6c45d273ec3c69 (patch) | |
tree | 1c602a906d80ac92620f4a2d48e1b4353d5a9d19 /src/drmmode_display.h | |
parent | eea79472a84672ee4dc7adc4487cec6a4037048a (diff) |
glamor: Add Option "ShadowPrimary" v2
When this option is enabled, most pixmaps (including the screen pixmap)
are allocated in system RAM and mostly accessed by the CPU. Changed areas
of the screen pixmap are copied to dedicated per-CRTC scanout pixmaps
regularly, triggered by the vblank interrupt.
v2:
* Set region data pointer to NULL for keeping only the extents
* Move pRegion and pBox local variable declarations closer to their uses
in drmmode_set_mode_major()
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r-- | src/drmmode_display.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 66078962..43a3a4a3 100644 --- a/src/drmmode_display.h +++ b/src/drmmode_display.h @@ -76,6 +76,7 @@ struct drmmode_scanout { struct radeon_bo *bo; PixmapPtr pixmap; unsigned fb_id; + int width, height; }; typedef struct { @@ -84,6 +85,9 @@ typedef struct { int hw_id; struct radeon_bo *cursor_bo; struct drmmode_scanout rotate; + struct drmmode_scanout scanout; + DamagePtr scanout_damage; + Bool scanout_update_pending; int dpms_mode; CARD64 dpms_last_ust; uint32_t dpms_last_seq; @@ -125,6 +129,8 @@ extern Bool drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode); extern void drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode); extern Bool drmmode_setup_colormap(ScreenPtr pScreen, ScrnInfoPtr pScrn); +extern void drmmode_scanout_free(ScrnInfoPtr scrn); + extern void drmmode_uevent_init(ScrnInfoPtr scrn, drmmode_ptr drmmode); extern void drmmode_uevent_fini(ScrnInfoPtr scrn, drmmode_ptr drmmode); |