No description
  • C 97.5%
  • Meson 2.2%
  • Python 0.2%
Find a file
Daniel Baumann aaf3a25466
Releasing fastforward version 2.4.134-3~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-06-29 12:01:56 +02:00
amdgpu Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
android Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
data Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
debian Releasing fastforward version 2.4.134-3~ffwd13+u1. 2026-06-29 12:01:56 +02:00
etnaviv Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
exynos Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
freedreno Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
include/drm Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
intel Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
man Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
nouveau Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
omap Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
radeon Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
tegra Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
tests Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
vc4 Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
.editorconfig Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
.gitignore Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
.gitlab-ci.yml Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
Android.bp Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
Android.sources.bp Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
Android.sources.bp.mk Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
CleanSpec.mk Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
CONTRIBUTING.rst Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
core-symbols.txt Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
gen_table_fourcc.py Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
libdrm.pc.in Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
libdrm_lists.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
libdrm_macros.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
libsync.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
meson.build Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
meson_options.txt Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
README.rst Merging upstream version 2.4.131. 2026-02-02 07:54:52 +01:00
RELEASING Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
symbols-check.py Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
util_double_list.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
util_math.h Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
xf86atomic.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
xf86drm.c Merging upstream version 2.4.134. 2026-06-03 13:34:07 +02:00
xf86drm.h Merging upstream version 2.4.127. 2025-10-17 17:36:20 +02:00
xf86drmHash.c Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
xf86drmHash.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
xf86drmMode.c Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
xf86drmMode.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
xf86drmRandom.c Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
xf86drmRandom.h Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00
xf86drmSL.c Adding upstream version 2.4.125. 2025-08-22 18:08:50 +02:00

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.

AMDGPU ASIC table file
----------------------

The AMDGPU driver requires the `amdgpu.ids` file. It is usually located at
`$PREFIX/share/libdrm`, but it is possible to specify a set of alternative
paths at runtime by setting the `AMDGPU_ASIC_ID_TABLE_PATHS` environment
variable with one or more colon-separated paths where to search for the
`amdgpu.ids` file.

For this option to be available, the C library must support secure_getenv()
function. In systems without it (like NetBSD), this option won't be available.