Skip to content

Commit

Permalink
Removed unnecessary references to drmModeFB2
Browse files Browse the repository at this point in the history
  • Loading branch information
loki committed Aug 21, 2021
1 parent ec84f43 commit 7a920da
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sunshine/platform/linux/kmsgrab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ namespace kms {
using plane_res_t = util::safe_ptr<drmModePlaneRes, drmModeFreePlaneResources>;
using plane_t = util::safe_ptr<drmModePlane, drmModeFreePlane>;
using fb_t = util::safe_ptr<drmModeFB, drmModeFreeFB>;
using fb2_t = util::safe_ptr<drmModeFB2, drmModeFreeFB2>;
using crtc_t = util::safe_ptr<drmModeCrtc, drmModeFreeCrtc>;
using obj_prop_t = util::safe_ptr<drmModeObjectProperties, drmModeFreeObjectProperties>;
using prop_t = util::safe_ptr<drmModePropertyRes, drmModeFreeProperty>;
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -736,12 +731,6 @@ std::vector<std::string> 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) {
Expand Down

0 comments on commit 7a920da

Please sign in to comment.