• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitlab-ci/H16-Feb-2022-6746

amdgpu/H03-May-2022-5,2412,822

android/H16-Feb-2022-11254

data/H16-Feb-2022-340331

etnaviv/H03-May-2022-2,1971,414

exynos/H03-May-2022-2,2861,404

freedreno/H03-May-2022-4,7623,089

include/drm/H16-Feb-2022-12,8236,085

intel/H03-May-2022-13,68110,212

libkms/H03-May-2022-1,9721,359

man/H16-Feb-2022-875695

nouveau/H03-May-2022-3,1702,538

omap/H03-May-2022-759509

radeon/H03-May-2022-5,7604,576

tegra/H03-May-2022-512331

tests/H16-Feb-2022-30,35123,246

vc4/H16-Feb-2022-716512

.editorconfigH A D16-Feb-2022360 2417

.gitignoreH A D16-Feb-20228 21

.gitlab-ci.ymlH A D16-Feb-20227.2 KiB281252

Android.common.mkH A D16-Feb-2022605 2317

Android.mkH A D16-Feb-20222.3 KiB7534

CONTRIBUTING.rstH A D16-Feb-20224 KiB10673

CleanSpec.mkH A D16-Feb-2022311 54

Makefile.sourcesH A D16-Feb-2022938 4641

README.rstH A D16-Feb-20222 KiB5238

RELEASINGH A D16-Feb-20221.8 KiB4130

gen_table_fourcc.pyH A D16-Feb-20222.8 KiB8543

libdrm.pc.inH A D16-Feb-2022250 119

libdrm_lists.hH A D16-Feb-20224.5 KiB11972

libdrm_macros.hH A D16-Feb-20222.7 KiB8841

libsync.hH A D03-May-20223.4 KiB15280

meson.buildH A D03-May-202211.3 KiB402355

symbols-check.pyH A D16-Feb-20223.7 KiB131101

util_double_list.hH A D16-Feb-20224.6 KiB14488

util_math.hH A D16-Feb-20221.5 KiB358

xf86atomic.hH A D16-Feb-20223.8 KiB11562

xf86drm.cH A D03-May-2022128.1 KiB5,1103,352

xf86drm.hH A D16-Feb-202235.9 KiB967710

xf86drmHash.cH A D16-Feb-20227 KiB243136

xf86drmHash.hH A D16-Feb-20222 KiB4816

xf86drmMode.cH A D16-Feb-202241.1 KiB1,7501,323

xf86drmMode.hH A D16-Feb-202214.4 KiB483260

xf86drmRandom.cH A D16-Feb-20224.7 KiB13949

xf86drmRandom.hH A D16-Feb-20221.5 KiB369

xf86drmSL.cH A D16-Feb-20228.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