freebsd / drm-kmod

drm driver for FreeBSD
157 stars 68 forks source link

[request] Generic KMS driver (a la SimpleDRM) #269

Open jbeich opened 11 months ago

jbeich commented 11 months ago

Required for Wayland for unsupported GPUs with software rendering. Xorg has xf86-video-vesa, xf86-video-scfb, etc. but Wayland standardized on KMS. To overcome this Linux added simpledrm driver to bridge various framebuffer drivers.

See also (fbdev uAPI is similar to syscons/vt): https://github.com/torvalds/linux/commit/11e8f5fd223b https://github.com/swaywm/wlroots/pull/2410 https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/812 https://invent.kde.org/plasma/kwin/-/merge_requests/1906

hny-gd commented 11 months ago

That would be very, very useful as currently there is no way to use Wayland e.g. in VMs.

arrowd commented 9 months ago

I thought such thing already exists and is called either swrast or llvmpipe?

evadot commented 9 months ago

I thought such thing already exists and is called either swrast or llvmpipe?

Not the same thing, swrast is a software renderer. SimpleDRM creates a drm device (/dev/dri/card0) but no drm render device. So you still have software accel (and so need swrast/llvmpipe) but can talk with KMS to the driver meaning wayland software will work.