Closed jnjackins closed 5 years ago
Thanks for the report. The mail you linked to suggests a libdrm interface: drmGetRenderDeviceNameFromFd
.
I think swc be updated to use that instead of guessing based on the master major and minor numbers.
However, I'm a bit confused that the check doesn't work for you since 226 == 226
, and 0 + 0x80 == 128
. Though regardless of this, if there is an API in libdrm, we should use it.
Hi,
I'm hitting this error when I run
swc-launch velox
: https://github.com/michaelforney/swc/blob/master/libswc/drm.c#L286On my system,
/dev/dri/renderD128
has major/minor numbers226, 128
, but/dev/dri/card0
is226, 0
,If I remove the check, velox seems to start up just fine. I also found this mail, which seems to describe the issue better: https://lists.freedesktop.org/archives/intel-gfx/2015-October/078894.html
Unlike the poster above, I'm not running on ARM or anything exotic at all, just a run-of-the-mill Dell laptop.
Not sure what the right thing to do here, but wanted to at least log an issue in case others are running into the same problem.