diff --git a/local/config/drivers.d/30-graphics.toml b/local/config/drivers.d/30-graphics.toml index d0e8c43d23..5ef83c3944 100644 --- a/local/config/drivers.d/30-graphics.toml +++ b/local/config/drivers.d/30-graphics.toml @@ -44,3 +44,18 @@ command = ["/usr/bin/redox-drm"] vendor = 0x1002 class = 0x03 subclass = 0x00 + +# VirtIO GPU (QEMU virtio-gpu / VirGL, e.g. 1AF4:1050 class 03) — bind redox-drm +# at higher priority than the base virtio-gpud (@60) so the desktop path gets a +# real /scheme/drm/card0 (redox-drm's built-in VirtIO KMS driver) instead of the +# display.virtio-gpu VT-only scanout. Subclass is intentionally omitted: +# QEMU reports virtio-gpu as class 0x03 subclass 0x80, not 0x00. +[[driver]] +name = "redox-drm" +description = "VirtIO GPU display driver (VirGL/KMS)" +priority = 61 +command = ["/usr/bin/redox-drm"] + +[[driver.match]] +vendor = 0x1AF4 +class = 0x03