NameDateSize

..10-Nov-202533

.editorconfigH A D10-Nov-2025360

.gitlab-ci.ymlH A D10-Nov-20256.8 KiB

amdgpu/H10-Nov-20254 KiB

android/H10-Nov-202530

Android.bpH A D10-Nov-20252.9 KiB

Android.sources.bpH A D10-Nov-2025229

Android.sources.bp.mkH A D10-Nov-2025712

CleanSpec.mkH A D10-Nov-2025311

configureH A D10-Nov-2025193

CONTRIBUTING.rstH A D10-Nov-20254 KiB

core-symbols.txtH A D10-Nov-20253.6 KiB

data/H10-Nov-202561

etnaviv/H10-Nov-20254 KiB

exynos/H10-Nov-20254 KiB

freedreno/H10-Nov-20254 KiB

gen_table_fourcc.pyH A D10-Nov-20252.8 KiB

include/H10-Nov-202517

intel/H10-Nov-20254 KiB

libdrm.pc.inH A D10-Nov-2025250

libdrm_lists.hH A D10-Nov-20254.5 KiB

libdrm_macros.hH A D10-Nov-20252.7 KiB

libsync.hH A D10-Nov-20253.4 KiB

man/H10-Nov-2025174

meson.buildH A D10-Nov-202511.1 KiB

meson_options.txtH A D10-Nov-20253.1 KiB

nouveau/H10-Nov-20254 KiB

omap/H10-Nov-2025174

radeon/H10-Nov-20254 KiB

README.rstH A D10-Nov-20252 KiB

RELEASINGH A D10-Nov-20251.8 KiB

symbols-check.pyH A D10-Nov-20253.8 KiB

tegra/H10-Nov-20254 KiB

tests/H10-Nov-20254 KiB

util_double_list.hH A D10-Nov-20254.6 KiB

util_math.hH A D10-Nov-20251.5 KiB

vc4/H10-Nov-202594

xf86atomic.hH A D10-Nov-20253.8 KiB

xf86drm.cH A D10-Nov-2025135.7 KiB

xf86drm.hH A D10-Nov-202536.7 KiB

xf86drmHash.cH A D10-Nov-20257 KiB

xf86drmHash.hH A D10-Nov-20252 KiB

xf86drmMode.cH A D10-Nov-202544.1 KiB

xf86drmMode.hH A D10-Nov-202516.2 KiB

xf86drmRandom.cH A D10-Nov-20254.7 KiB

xf86drmRandom.hH A D10-Nov-20251.5 KiB

xf86drmSL.cH A D10-Nov-20258.5 KiB

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