Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ enables accepting dmabufs originating from any node.
+GbmFramebufferExporter::new(gbm, NodeFilter::All);
```

`DrmOutputManager` does now provide an explicit `lock`-method returning a [`LockedDrmOutputManager`].
All other methods have moved to this new type, allowing compositors to take the same lock across multiple
operations.

## 0.7.0

### Breaking changes
Expand Down
4 changes: 3 additions & 1 deletion anvil/src/udev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ pub fn run_udev() {
// we will try to reset the state when trying to queue a frame.
backend
.drm_output_manager
.lock()
.activate(false)
.expect("failed to activate drm backend");
if let Some(lease_global) = backend.leasing_global.as_mut() {
Expand Down Expand Up @@ -1000,6 +1001,7 @@ impl AnvilState<UdevData> {

let drm_output = match device
.drm_output_manager
.lock()
.initialize_output::<_, OutputRenderElements<UdevRenderer<'_>, WindowRenderElement<UdevRenderer<'_>>>>(
crtc,
drm_mode,
Expand Down Expand Up @@ -1079,7 +1081,7 @@ impl AnvilState<UdevData> {

let render_node = device.render_node.unwrap_or(self.backend_data.primary_gpu);
let mut renderer = self.backend_data.gpus.single_renderer(&render_node).unwrap();
let _ = device.drm_output_manager.try_to_restore_modifiers::<_, OutputRenderElements<
let _ = device.drm_output_manager.lock().try_to_restore_modifiers::<_, OutputRenderElements<
UdevRenderer<'_>,
WindowRenderElement<UdevRenderer<'_>>,
>>(
Expand Down
Loading
Loading