Removed unnecessary references to drmModeFB2
This commit is contained in:
parent
ec84f43b80
commit
7a920da06d
1 changed files with 0 additions and 11 deletions
|
|
@ -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>;
|
||||
|
|
@ -126,10 +125,6 @@ public:
|
|||
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<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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue