diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2017-08-29 17:06:58 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2017-08-30 17:10:21 +0900 |
commit | c16ff42f927df805619a5255bc383841474daff8 (patch) | |
tree | e901d99c674fd435f063f3d3b642842904e78ac5 /src/drmmode_display.c | |
parent | 19672625df0531c12acc05999ea09ea763e5db59 (diff) |
Make all active CRTCs scan out an all-black framebuffer in LeaveVT
And destroy all other FBs. This is so that other DRM masters can only
get access to this all-black FB, not to any other FB we created, while
we're switched away and not DRM master.
Fixes: b09fde0d81e0 ("Use reference counting for tracking KMS
framebuffer lifetimes")
(Ported from radeon commit 06a465484101f21e99d3a0a62fb03440bcaff93e)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 6092805..6057699 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -478,7 +478,7 @@ drmmode_crtc_scanout_destroy(drmmode_ptr drmmode, } } -static void +void drmmode_crtc_scanout_free(drmmode_crtc_private_ptr drmmode_crtc) { drmmode_crtc_scanout_destroy(drmmode_crtc->drmmode, @@ -500,7 +500,7 @@ drmmode_scanout_free(ScrnInfoPtr scrn) drmmode_crtc_scanout_free(xf86_config->crtc[c]->driver_private); } -static PixmapPtr +PixmapPtr drmmode_crtc_scanout_create(xf86CrtcPtr crtc, struct drmmode_scanout *scanout, int width, int height) { |