Skip to content

Conversation

@jaakkomoller
Copy link

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
for (int i = 0; i < n; ++i) {
drmDevice* dev = devices[i];
if (device && !drmDevicesEqual(device, dev)) {
continue;
}
if (!(dev->available_nodes & (1 << DRM_NODE_RENDER)))
continue;

render_node = strdup(dev->nodes[DRM_NODE_RENDER]);
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
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
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
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