Opened 5 years ago
Closed 19 months ago
#16272 closed bug (duplicate)
Epic: 3D Acceleration DRM/KMS (Port Linux/FreeBSD DRM drivers to Haiku)
Reported by: | kallisti5 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Drivers/Graphics | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | #9919 | Blocking: | |
Platform: | All |
Description (last modified by )
The Linux/FreeBSD DRM drivers need ported to Haiku. This will involve writing some compatibility layer for drm.
Layers:
- kernel DRM drivers
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm
- Compatibility layers need written. FreeBSD has some which could be used as a reference. (they use Linux drm drivers)
- We also already have some FreeBSD compatibility layers used by our network drivers which could help.
- libdrm https://gitlab.freedesktop.org/mesa/drm
- Compiles today via
meson -D intel=false
and faking major/minor/makedev functionality.- intel=false disables libdrm_intel which is only used by i915 (this bypasses the need for libpciaccess)
- Accesses kernel drm drivers via major/minor/makedev
- major/minor/makedev needs converted to a haiku name-based standard (/dev/graphics/drm/radeon_hd_0800000 or something?)
- Compiles today via
- mesa https://gitlab.freedesktop.org/mesa/mesa
- uses libdrm_* access to get to drm drivers
- grep for dep_libdrm_ in mesa source for examples
Key points:
- Ideally work should remain out of tree, or drm graphics drivers should be able to "coexist" in our source tree with our native ones until they reach a critical mass.
- Video modesetting is in scope via KMS as well.
- This is a big project with two halfs.
- DRM drivers in our kernel
- Mesa leveraging our DRM drivers
Change History (4)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
comment:4 by , 19 months ago
Blocked By: | 9919 added |
---|---|
Keywords: | mesa drm dri removed |
Resolution: | → duplicate |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This old patch series is a previous attempt, of which maybe some parts can be reused: https://review.haiku-os.org/c/haiku/+/436/2
I think I would consider getting the drivers to work for "KMS" first (modesetting, dual screen support, etc) before worrying about the DRM and 3D acceleration parts.