Should DRM shim expose a primary node?
Follow-up of !25504 (comment 2109464)
_eglAddDRMDevice(drmDevicePtr device)
only accepts render-capable devices. So we have an assert to check if the given device
has a render node.
We also tried to add a sanity check to ensure that the device has a primary node, but that broke the CI:
Running shader-db for freedreno
Initializing DRM shim on /dev/dri/renderD128
...
run: ../src/egl/main/egldevice.c:115: _eglAddDRMDevice: Assertion `device->available_nodes & ((1 << DRM_NODE_PRIMARY))' failed.
ERROR: shader-db: ret code: 134
So we added the assert commented and a TODO.
In !25504 (comment 2109464) suggested a draft code to make DRM shim expose a primary node.