Update smithay

Updates to use `GbmFramebufferExporter`.
This commit is contained in:
Ian Douglas Scott 2025-04-28 13:03:50 -07:00 committed by Victoria Brekenfeld
parent 982af8ff10
commit d7b37cfde5
4 changed files with 9 additions and 11 deletions

View file

@ -19,6 +19,7 @@ use smithay::{
},
drm::{
compositor::{FrameError, FrameFlags},
exporter::gbm::GbmFramebufferExporter,
output::DrmOutputManager,
DrmDevice, DrmDeviceFd, DrmEvent, DrmNode,
},
@ -61,7 +62,7 @@ pub struct EGLInternals {
pub type GbmDrmOutputManager = DrmOutputManager<
GbmAllocator<DrmDeviceFd>,
GbmDevice<DrmDeviceFd>,
GbmFramebufferExporter<DrmDeviceFd>,
Option<(
OutputPresentationFeedback,
Receiver<(ScreencopyFrame, Vec<Rectangle<i32, BufferCoords>>)>,
@ -221,7 +222,7 @@ impl State {
gbm.clone(),
GbmBufferFlags::RENDERING | GbmBufferFlags::SCANOUT,
),
gbm.clone(),
GbmFramebufferExporter::new(gbm.clone()),
Some(gbm.clone()),
[
Fourcc::Abgr2101010,

View file

@ -22,13 +22,10 @@ use anyhow::{Context, Result};
use calloop::channel::Channel;
use smithay::{
backend::{
allocator::{
format::FormatSet,
gbm::{GbmAllocator, GbmDevice},
Fourcc,
},
allocator::{format::FormatSet, gbm::GbmAllocator, Fourcc},
drm::{
compositor::{BlitFrameResultError, FrameError, FrameFlags, PrimaryPlaneElement},
exporter::gbm::GbmFramebufferExporter,
output::DrmOutput,
DrmDeviceFd, DrmEventMetadata, DrmEventTime, DrmNode, VrrSupport,
},
@ -161,7 +158,7 @@ pub struct SurfaceThreadState {
pub type GbmDrmOutput = DrmOutput<
GbmAllocator<DrmDeviceFd>,
GbmDevice<DrmDeviceFd>,
GbmFramebufferExporter<DrmDeviceFd>,
Option<(
OutputPresentationFeedback,
Receiver<(ScreencopyFrame, Vec<Rectangle<i32, BufferCoords>>)>,