Make all active CRTCs scan out an all-black framebuffer in LeaveVT

Graphics / X.Org / xf86-video-ati - Michel Dänzer [amd.com] - 29 August 2017 03:35 EDT

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: 55e513b978b2 ("Use reference counting for tracking KMS framebuffer lifetimes")

06a4654 Make all active CRTCs scan out an all-black framebuffer in LeaveVT
src/drmmode_display.c | 4 +--
src/drmmode_display.h | 4 +++
src/radeon_kms.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++----
3 files changed, 98 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share