-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
base: main
Are you sure you want to change the base?
Conversation
dd7e90d
to
5e37e19
Compare
5e37e19
to
f2be61c
Compare
doc builds fail caused by ongoing migration of fdo gitlab |
1f85ad6
to
6083bb4
Compare
.or(self | ||
.devices | ||
.get(&self.primary_node) | ||
.map(|device| &device.gbm)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, done
6083bb4
to
8cf0d09
Compare
87db764
to
c4a170b
Compare
c4a170b
to
6571e85
Compare
depends on Smithay/smithay#1680
fixes #910