vliaskov

libGL error: MESA-LOADER: failed to retrieve device informat

Jul 19th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Mesa 18.1.3-201.1
  2. kernel 4.17.5-1-default
  3. libdrm 2.4.92-1.2
  4.  
  5. glxinfo | grep -i renderer
  6. OpenGL renderer string: virgl
  7.  
  8. LIBGL_DEBUG=verbose glxgears
  9. libGL error: MESA-LOADER: failed to retrieve device information
  10. libGL: using driver virtio_gpu for 4
  11. libGL: OpenDriver: trying /usr/lib64/dri/tls/virtio_gpu_dri.so
  12. libGL: OpenDriver: trying /usr/lib64/dri/virtio_gpu_dri.so
  13.  
  14. Adding some debug drmMsg() prints, I found that the MESA-LOADER error message happens because drmGetDevice2() returns -ENODEV. And that happens because drmParseSubsystemType() returns -EINVAL.
  15.  
  16. drmParseSubsystemType() expects /sys/dev/char/DRM_MAJOR\:0/device/subsystem to be one of:
  17. pci
  18. usb
  19. platform
  20. hostix
  21.  
  22. but virtio-gpu has bus subsystem virtio:
  23.  
  24. ls -al /sys/dev/char/226\:0/device/subsystem
  25. lrwxrwxrwx 1 root root 0 Jul 19 17:39 /sys/dev/char/226:0/device/subsystem -> ../../../../bus/virtio
  26.  
  27. ls -al /sys/dev/char/226\:128/device/subsystem
  28. lrwxrwxrwx 1 root root 0 Jul 19 17:39 /sys/dev/char/226:128/device/subsystem -> ../../../../bus/virtio
  29.  
  30. Is this something that should be fixed in libdrm or in the virtio-gpu kernel driver?
Add Comment
Please, Sign In to add comment