Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fall back to primary gpu for rendering #1281

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cmeissl
Copy link
Contributor

@cmeissl cmeissl commented Mar 16, 2025

depends on Smithay/smithay#1680

fixes #910

@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch from dd7e90d to 5e37e19 Compare March 16, 2025 12:58
@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch from 5e37e19 to f2be61c Compare March 16, 2025 13:14
@cmeissl
Copy link
Contributor Author

cmeissl commented Mar 16, 2025

doc builds fail caused by ongoing migration of fdo gitlab

@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch 2 times, most recently from 1f85ad6 to 6083bb4 Compare March 16, 2025 13:34
Comment on lines +533 to +560
.or(self
.devices
.get(&self.primary_node)
.map(|device| &device.gbm))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if udev adds this device before the primary node device?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing bad, but the display link device would not work. I tried to address this in a new commit by "pre-initializing" the primary node.

debug!("this is the primary render node");
}

let mut renderer = self
.gpu_manager
.single_renderer(&render_node)
.single_renderer(&self.primary_render_node)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be useful to extract this change to use self.primary_render_node into its own commit just in case future bisecting needs it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, done

@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch from 6083bb4 to 8cf0d09 Compare March 16, 2025 17:44
@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch 2 times, most recently from 87db764 to c4a170b Compare March 22, 2025 09:38
@cmeissl cmeissl force-pushed the feature/primary_render_fallback branch from c4a170b to 6571e85 Compare March 22, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DisplayLink Screens Not Outputting
2 participants