freebsd / drm-kmod

drm driver for FreeBSD
155 stars 69 forks source link

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

Open jbeich opened 10 months ago

jbeich commented 10 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 10 months ago

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

arrowd commented 8 months ago

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

evadot commented 8 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.