Skip to content

core: Asahi core dump #839#895

Open
jaakkomoller wants to merge 1 commit intohyprwm:mainfrom
jaakkomoller:839
Open

core: Asahi core dump #839#895
jaakkomoller wants to merge 1 commit intohyprwm:mainfrom
jaakkomoller:839

Conversation

@jaakkomoller
Copy link
Copy Markdown

On Apple silicon, rendering is done on a separate node, so do not limit selection of the render node to the display device in case the display device does not have rendering.

On Apple silicon, rendering is done on a separate node, so do
not limit selection of the render node to the display device in
case the display device does not have rendering.
Comment on lines 98 to +120
@@ -108,6 +107,19 @@ static char* gbm_find_render_node(drmDevice* device) {
break;
}

/* Select any available render node in case the device does not have one */
if (!render_node) {
for (int i = 0; i < n; ++i) {
drmDevice* dev = devices[i];
if (device && drmDevicesEqual(device, dev))
continue; // skip the one we already tried
if (dev->available_nodes & (1 << DRM_NODE_RENDER)) {
render_node = strdup(dev->nodes[DRM_NODE_RENDER]);
break;
}
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

???? That is just trying the same code once again

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Oh ok so you skip the first drmDevicesEqual xD
I think the problem is how we handle https://wayland.app/protocols/wayland-protocols/432#zwp_linux_dmabuf_feedback_v1:event:tranche_target_device. (Probably)
It would be better to fix that.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'll have a look.

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.

2 participants