Open ids1024 opened 2 years ago
By "useful output", do you mean just the render caps?
We should hide any non-relevant info for render-only devices: KMS caps, framebuffer size, KMS objects.
Specifically it shows what driver provides the DRM device, and lists capabilities. It is also (my opinion) confusing for it to just ignore the device entirely rather than showing that this is a render-only device.
We should hide any non-relevant info for render-only devices: KMS caps, framebuffer size, KMS objects.
Yep, that would probably be better. I haven't looked into exactly what needs to be changed here; without the json_object_object_add
calls I added, it segfaulted printing the output.
It seems DRM devices like the Panfrost driver on the RK3399 in the Pinebook Pro raise this error here. (Connectors, etc. are a separate device provided by the
rockchip
driver). This allowsdrm_info
to provide some useful output instead of skipping the device.Example: