From c94060b22c8eb1b5266d6d6337e6b28a99053d58 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 9 Aug 2024 19:06:34 +0200 Subject: [PATCH] drm: log calculated modeline for custom modes --- src/backend/drm/DRM.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index ff2281d..231872f 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1940,6 +1940,11 @@ void Aquamarine::SDRMConnectorCommitData::calculateMode(Hyprutils::Memory::CShar .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_PVSYNC, }; snprintf(modeInfo.name, sizeof(modeInfo.name), "%dx%d", (int)MODE->pixelSize.x, (int)MODE->pixelSize.y); + + TRACE(connector->backend->log(AQ_LOG_TRACE, + std::format("drm: calculateMode: modeline dump: {} {} {} {} {} {} {} {} {} {} {}", modeInfo.clock, modeInfo.hdisplay, modeInfo.hsync_start, + modeInfo.hsync_end, modeInfo.htotal, modeInfo.vdisplay, modeInfo.vsync_start, modeInfo.vsync_end, modeInfo.vtotal, modeInfo.vrefresh, + modeInfo.flags))); } Aquamarine::CDRMBufferAttachment::CDRMBufferAttachment(SP fb_) : fb(fb_) {