metal: add copy-device based prime methods
This commit is contained in:
parent
a77929741a
commit
897944b580
4 changed files with 571 additions and 25 deletions
|
|
@ -119,7 +119,6 @@ pub struct MetalDrmDevice {
|
|||
pub gbm: Rc<GbmDevice>,
|
||||
pub handle_events: HandleEvents,
|
||||
pub ctx: CloneCell<Rc<MetalRenderContext>>,
|
||||
#[expect(dead_code)]
|
||||
pub copy_device: Rc<CopyDeviceHolder>,
|
||||
pub on_change: OnChange<crate::backend::DrmEvent>,
|
||||
pub direct_scanout_enabled: Cell<Option<bool>>,
|
||||
|
|
@ -2649,7 +2648,6 @@ impl MetalBackend {
|
|||
}
|
||||
|
||||
impl CopyDeviceHolder {
|
||||
#[expect(dead_code)]
|
||||
pub fn get(&self) -> Option<Rc<CopyDevice>> {
|
||||
self.dev
|
||||
.get_or_init(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue