descriptionlibdrm Direct Rendering Manager library and headers
homepage URLhttps://gitlab.freedesktop.org/mesa/drm
repository URLhttps://gitlab.freedesktop.org/mesa/drm.git
ownerroot@yurikoles.com
last changeMon, 2 Aug 2021 22:31:26 +0000 (2 15:31 -0700)
last refreshSat, 27 Apr 2024 07:38:30 +0000 (27 09:38 +0200)
content tags
add:
README.rst
libdrm - userspace library for drm
----------------------------------

This is libdrm, a userspace library for accessing the DRM, direct rendering
manager, on Linux, BSD and other operating systems that support the ioctl
interface.
The library provides wrapper functions for the ioctls to avoid exposing the
kernel interface directly, and for chipsets with drm memory manager, support
for tracking relocations and buffers.
New functionality in the kernel DRM drivers typically requires a new libdrm,
but a new libdrm will always work with an older kernel.

libdrm is a low-level library, typically used by graphics drivers such as
the Mesa drivers, the X drivers, libva and similar projects.

Syncing with the Linux kernel headers
-------------------------------------

The library should be regularly updated to match the recent changes in the
`include/uapi/drm/`.

libdrm maintains a human-readable version for the token format modifier, with
the simpler ones being extracted automatically from `drm_fourcc.h` header file
with the help of a python script.  This might not always possible, as some of
the vendors require decoding/extracting them programmatically.  For that
reason one can enhance the current vendor functions to include/provide the
newly added token formats, or, in case there's no such decoding
function, to add one that performs the tasks of extracting them.

For simpler format modifier tokens there's a script (gen_table_fourcc.py) that
creates a static table, by going over `drm_fourcc.h` header file. The script
could be further modified if it can't handle new (simpler) token format
modifiers instead of the generated static table.

Compiling
---------

To set up meson:

    meson builddir/

By default this will install into /usr/local, you can change your prefix
with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after 
the initial meson setup).

Then use ninja to build and install:

    ninja -C builddir/ install

If you are installing into a system location you will need to run install
separately, and as root.
shortlog
2021-08-02 Jordan Justenlibdrm: NOTE! Default branch is now mainmaster
2021-08-02 Mario Kleinerheaders: drm: Sync with drm-next
2021-07-30 Eric Anholtmeson: Don't build libkms for Android.
2021-07-30 Eric Anholtmeson: Build libdrm.so as an unversioned lib on Android.
2021-07-23 Aaron Liutest/amdgpu: Bob to Alice copy should be TMZ in secure...
2021-07-16 Luben Tuikovtests/amdgpu: Fix TMZ secure bounce test
2021-07-02 Bas NieuwenhuizenBump version to 2.4.107libdrm-2.4.107
2021-06-30 Alex Deucheramdgpu: update marketing names
2021-06-22 Marius VladREADME.rst: Include some notes about syncing uapi headers
2021-06-22 Marius Vladxf86drm: Add support for decoding AMLOGIC format modifiers
2021-06-22 Marius Vladxf86drm: Add support for decoding AMD format modifiers
2021-06-22 Marius Vladxf86drm: Add support for decoding Nvidia format modifiers
2021-06-22 Marius Vladxf86drm: Add a vendor function to decode the format...
2021-06-22 Marius Vladxf86drm: Add a human readable representation for format...
2021-06-20 Eleni Maria... Conditionally include <linux/limits.h> and <sys/params...
2021-06-20 Eleni Maria... _WANT_KERNEL_ERRNO must be defined in FreeBSD for EREST...
...
tags
3 months ago libdrm-2.4.120 libdrm-2.4.120
4 months ago libdrm-2.4.119 libdrm-2.4.119
5 months ago libdrm-2.4.118 libdrm-2.4.118
6 months ago libdrm-2.4.117 libdrm-2.4.117
8 months ago libdrm-2.4.116 libdrm-2.4.116
14 months ago libdrm-2.4.115 libdrm-2.4.115
17 months ago libdrm-2.4.114 libdrm-2.4.114
19 months ago libdrm-2.4.113 libdrm-2.4.113
21 months ago libdrm-2.4.112 libdrm-2.4.112
22 months ago libdrm-2.4.111 libdrm-2.4.111
2 years ago libdrm-2.4.110
2 years ago libdrm-2.4.109 libdrm-2.4.109
2 years ago libdrm-2.4.108 libdrm-2.4.108
2 years ago libdrm-2.4.107 libdrm-2.4.107
2 years ago libdrm-2.4.106 libdrm-2.4.106
3 years ago libdrm-2.4.105 libdrm-2.4.105
...
heads
2 weeks ago main
2 months ago 103-regression-intel-mesa-buildtests-broken-by-libdrm-update
2 years ago master
8 years ago amdgpu
14 years ago modesetting-dirty
14 years ago pageflip
14 years ago vblank-event
14 years ago kms-pageflip
14 years ago dri2-swapbuffers
14 years ago modesetting-newttm
15 years ago modesetting-gem
15 years ago r6xx-r7xx-support
15 years ago modesetting-101
15 years ago libdrm-2_3-branch
16 years ago intel-post-reloc
16 years ago modesetting-101-hotplug
...