Name Date Size #Lines LOC

..--

amdgpu/H25-Apr-2025-5,5173,031

android/H25-Apr-2025-11254

data/H25-Apr-2025-631622

etnaviv/H25-Apr-2025-1,9381,270

exynos/H25-Apr-2025-2,3081,425

freedreno/H25-Apr-2025-4,8033,135

include/drm/H25-Apr-2025-15,8976,579

intel/H25-Apr-2025-15,68412,440

libkms/H25-Apr-2025-1,9851,377

man/H25-Apr-2025-875695

nouveau/H25-Apr-2025-3,2512,614

omap/H25-Apr-2025-794543

radeon/H25-Apr-2025-5,8044,624

rust/H25-Apr-2025-2313

tegra/H25-Apr-2025-1,409955

tests/H25-Apr-2025-40,57931,318

vc4/H25-Apr-2025-712509

.editorconfigH A D25-Apr-2025360 2417

.gitignoreH A D25-Apr-20258 21

.gitlab-ci.ymlH A D25-Apr-20257.1 KiB277209

Android.bpH A D25-Apr-20254.8 KiB164150

Android.sources.bpH A D25-Apr-2025229 1311

Android.sources.bp.mkH A D25-Apr-2025712 2617

CONTRIBUTING.rstH A D25-Apr-20254 KiB10673

CleanSpec.mkH A D25-Apr-2025490 96

LICENSEH A D25-Apr-20252.1 KiB4133

METADATAH A D25-Apr-2025548 2018

OWNERSH A D25-Apr-2025181 65

README.rstH A D25-Apr-20252 KiB5238

RELEASINGH A D25-Apr-20251.8 KiB4130

core-symbols.txtH A D25-Apr-20253.6 KiB213212

gen_prebuilt_intermediates.shH A D25-Apr-202597 31

gen_table_fourcc.pyH A D25-Apr-20252.8 KiB8543

generated_static_table_fourcc.hH A D25-Apr-20252.7 KiB5047

libdrm.pc.inH A D25-Apr-2025250 119

libdrm_lists.hH A D25-Apr-20254.5 KiB11972

libdrm_macros.hH A D25-Apr-20252.7 KiB8841

libsync.hH A D25-Apr-20253.4 KiB14977

meson.buildH A D25-Apr-202511.5 KiB376321

meson_options.txtH A D25-Apr-20253.2 KiB125120

symbols-check.pyH A D25-Apr-20253.8 KiB135105

util_double_list.hH A D25-Apr-20254.6 KiB14488

util_math.hH A D25-Apr-20251.5 KiB358

xf86atomic.hH A D25-Apr-20253.8 KiB11562

xf86drm.cH A D25-Apr-2025131.5 KiB5,2453,452

xf86drm.hH A D25-Apr-202536.5 KiB984715

xf86drmHash.cH A D25-Apr-20257 KiB243136

xf86drmHash.hH A D25-Apr-20252 KiB4816

xf86drmMode.cH A D25-Apr-202544.1 KiB1,8851,440

xf86drmMode.hH A D25-Apr-202516.2 KiB544273

xf86drmRandom.cH A D25-Apr-20254.7 KiB13949

xf86drmRandom.hH A D25-Apr-20251.5 KiB369

xf86drmSL.cH A D25-Apr-20258.5 KiB320219

README.rst

1libdrm - userspace library for drm
2----------------------------------
3
4This is libdrm, a userspace library for accessing the DRM, direct rendering
5manager, on Linux, BSD and other operating systems that support the ioctl
6interface.
7The library provides wrapper functions for the ioctls to avoid exposing the
8kernel interface directly, and for chipsets with drm memory manager, support
9for tracking relocations and buffers.
10New functionality in the kernel DRM drivers typically requires a new libdrm,
11but a new libdrm will always work with an older kernel.
12
13libdrm is a low-level library, typically used by graphics drivers such as
14the Mesa drivers, the X drivers, libva and similar projects.
15
16Syncing with the Linux kernel headers
17-------------------------------------
18
19The library should be regularly updated to match the recent changes in the
20`include/uapi/drm/`.
21
22libdrm maintains a human-readable version for the token format modifier, with
23the simpler ones being extracted automatically from `drm_fourcc.h` header file
24with the help of a python script.  This might not always possible, as some of
25the vendors require decoding/extracting them programmatically.  For that
26reason one can enhance the current vendor functions to include/provide the
27newly added token formats, or, in case there's no such decoding
28function, to add one that performs the tasks of extracting them.
29
30For simpler format modifier tokens there's a script (gen_table_fourcc.py) that
31creates a static table, by going over `drm_fourcc.h` header file. The script
32could be further modified if it can't handle new (simpler) token format
33modifiers instead of the generated static table.
34
35Compiling
36---------
37
38To set up meson:
39
40    meson builddir/
41
42By default this will install into /usr/local, you can change your prefix
43with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after
44the initial meson setup).
45
46Then use ninja to build and install:
47
48    ninja -C builddir/ install
49
50If you are installing into a system location you will need to run install
51separately, and as root.
52