From 7a920da06d1417828674842f44b919b75d70d3fe Mon Sep 17 00:00:00 2001 From: loki Date: Sat, 21 Aug 2021 20:35:36 +0200 Subject: [PATCH] Removed unnecessary references to drmModeFB2 --- sunshine/platform/linux/kmsgrab.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sunshine/platform/linux/kmsgrab.cpp b/sunshine/platform/linux/kmsgrab.cpp index 784dff64..d775946a 100644 --- a/sunshine/platform/linux/kmsgrab.cpp +++ b/sunshine/platform/linux/kmsgrab.cpp @@ -26,7 +26,6 @@ namespace kms { using plane_res_t = util::safe_ptr; using plane_t = util::safe_ptr; using fb_t = util::safe_ptr; -using fb2_t = util::safe_ptr; using crtc_t = util::safe_ptr; using obj_prop_t = util::safe_ptr; using prop_t = util::safe_ptr; @@ -126,10 +125,6 @@ class card_t { return drmModeGetFB(fd.el, plane->fb_id); } - fb2_t fb2(plane_t::pointer plane) { - return drmModeGetFB2(fd.el, plane->fb_id); - } - crtc_t crtc(std::uint32_t id) { return drmModeGetCrtc(fd.el, id); } @@ -736,12 +731,6 @@ std::vector kms_display_names() { kms::env_width = std::max(kms::env_width, (int)(crtc->x + crtc->width)); kms::env_height = std::max(kms::env_height, (int)(crtc->y + crtc->height)); - auto fb_2 = card.fb2(plane.get()); - for(int x = 0; x < 4 && fb_2->handles[x]; ++x) { - BOOST_LOG(debug) << "handles::"sv << x << '(' << fb_2->handles[x] << ')'; - BOOST_LOG(debug) << "pixel_format::"sv << util::view(fb_2->pixel_format); - } - kms::print(plane.get(), fb.get(), crtc.get()); if(!cursor) {