• Home
Name Date Size #Lines LOC

..--

.gitlab-ci/03-May-2024-6746

amdgpu/03-May-2024-5,3012,898

android/03-May-2024-11254

data/03-May-2024-345336

etnaviv/03-May-2024-1,9491,280

exynos/03-May-2024-2,3061,424

freedreno/03-May-2024-4,8293,158

include/drm/03-May-2024-12,8736,123

intel/03-May-2024-16,47513,027

libkms/03-May-2024-1,9821,375

man/03-May-2024-875695

nouveau/03-May-2024-3,2272,597

omap/03-May-2024-791541

radeon/03-May-2024-5,8224,640

tegra/03-May-2024-547362

tests/03-May-2024-29,72922,849

vc4/03-May-2024-716512

.editorconfigD03-May-2024360 2417

.gitignoreD03-May-20248 21

.gitlab-ci.ymlD03-May-20247.2 KiB281213

Android.bpD03-May-20243.6 KiB111101

Android.sources.bpD03-May-2024229 1311

Android.sources.bp.mkD03-May-2024712 2617

CONTRIBUTING.rstD03-May-20244 KiB10673

CleanSpec.mkD03-May-2024490 96

LICENSED03-May-20242.1 KiB4133

METADATAD03-May-2024525 2018

Makefile.sourcesD03-May-2024938 4641

OWNERSD03-May-2024181 65

README.rstD03-May-20242 KiB5238

RELEASINGD03-May-20241.8 KiB4130

core-symbols.txtD03-May-20243.4 KiB204203

gen_prebuilt_intermediates.shD03-May-202497 31

gen_table_fourcc.pyD03-May-20242.8 KiB8543

generated_static_table_fourcc.hD03-May-20242.7 KiB5047

libdrm.pc.inD03-May-2024250 119

libdrm_lists.hD03-May-20244.4 KiB11972

libdrm_macros.hD03-May-20242.7 KiB8841

libsync.hD03-May-20243.4 KiB14977

meson.buildD03-May-202412.3 KiB423375

meson_options.txtD03-May-20243.8 KiB144139

symbols-check.pyD03-May-20243.7 KiB131101

util_double_list.hD03-May-20244.6 KiB14488

util_math.hD03-May-20241.5 KiB358

xf86atomic.hD03-May-20243.8 KiB11562

xf86drm.cD03-May-2024128 KiB5,1083,350

xf86drm.hD03-May-202435.9 KiB967710

xf86drmHash.cD03-May-20247 KiB243136

xf86drmHash.hD03-May-20242 KiB4816

xf86drmMode.cD03-May-202440.8 KiB1,7411,316

xf86drmMode.hD03-May-202414.4 KiB483260

xf86drmRandom.cD03-May-20244.7 KiB13949

xf86drmRandom.hD03-May-20241.5 KiB369

xf86drmSL.cD03-May-20248.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