• Home
Name Date Size #Lines LOC

..--

amdgpu/22-Oct-2025-5,3742,928

android/22-Oct-2025-11254

data/22-Oct-2025-548539

etnaviv/22-Oct-2025-2,2341,450

exynos/22-Oct-2025-2,3101,427

freedreno/22-Oct-2025-4,8083,134

include/drm/22-Oct-2025-15,7796,505

intel/22-Oct-2025-15,67912,410

man/22-Oct-2025-875695

nouveau/22-Oct-2025-3,2432,602

omap/22-Oct-2025-778527

radeon/22-Oct-2025-5,8064,621

tegra/22-Oct-2025-1,385935

tests/22-Oct-2025-39,00830,223

vc4/22-Oct-2025-716512

.gitattributesD22-Oct-2025631 1615

Android.common.mkD22-Oct-2025605 2317

Android.mkD22-Oct-20252.3 KiB7534

BUILD.gnD22-Oct-20251.4 KiB6754

CONTRIBUTING.rstD22-Oct-20254 KiB10673

CleanSpec.mkD22-Oct-2025311 54

LICENSED22-Oct-20251 KiB1715

Makefile.sourcesD22-Oct-2025938 4641

OAT.xmlD22-Oct-20259.9 KiB13983

README.OpenSourceD22-Oct-2025503 1312

README.rstD22-Oct-20252 KiB5238

RELEASINGD22-Oct-20251.8 KiB4130

bundle.jsonD22-Oct-2025965 3636

core-symbols.txtD22-Oct-20253.6 KiB213212

gen_table_fourcc.pyD22-Oct-20252.8 KiB8543

generated_static_table_fourcc.hD22-Oct-20252.7 KiB5047

libdrm.pc.inD22-Oct-2025250 119

libdrm_lists.hD22-Oct-20254.5 KiB11972

libdrm_macros.hD22-Oct-20252.7 KiB8841

libsync.hD22-Oct-20253.4 KiB14977

meson.buildD22-Oct-202510.5 KiB348297

meson_options.txtD22-Oct-20253.1 KiB118113

symbols-check.pyD22-Oct-20253.7 KiB131101

util_double_list.hD22-Oct-20254.6 KiB14488

util_math.hD22-Oct-20251.5 KiB358

xf86atomic.hD22-Oct-20253.8 KiB11562

xf86drm.cD22-Oct-2025131 KiB5,2403,453

xf86drm.hD22-Oct-202536.4 KiB979715

xf86drmHash.cD22-Oct-20257 KiB243136

xf86drmHash.hD22-Oct-20252 KiB4816

xf86drmMode.cD22-Oct-202544.1 KiB1,8851,440

xf86drmMode.hD22-Oct-202516.2 KiB544273

xf86drmRandom.cD22-Oct-20254.7 KiB13949

xf86drmRandom.hD22-Oct-20251.5 KiB369

xf86drmSL.cD22-Oct-20258.5 KiB320219

README.OpenSource

1[
2    {
3        "Name": "libdrm",
4        "License": "MIT license",
5        "License File": "LICENSE",
6        "Version Number": "2.4.120",
7        "Owner": "xiongchangwu1@huawei.com",
8        "Upstream URL": "https://dri.freedesktop.org/libdrm/libdrm-2.4.120.tar.xz",
9        "Description": "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.",
10        "Dependencies": ""
11    }
12]
13

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