-
-
Notifications
You must be signed in to change notification settings - Fork 130
core: Asahi core dump #839 #895
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
base: main
Are you sure you want to change the base?
Conversation
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.
| 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; | ||
| } | ||
| } |
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.
???? That is just trying the same code once again
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.
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.
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'll have a look.
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.