• Home
Name Date Size #Lines LOC

..--

amdgpu/12-May-2024-5,3192,899

android/12-May-2024-11254

data/12-May-2024-357348

etnaviv/12-May-2024-2,2341,450

exynos/12-May-2024-2,3101,427

freedreno/12-May-2024-4,8083,134

include/drm/12-May-2024-13,2026,184

intel/12-May-2024-16,48513,007

man/12-May-2024-875695

nouveau/12-May-2024-3,2332,594

omap/12-May-2024-778527

radeon/12-May-2024-5,8054,620

tegra/12-May-2024-1,385935

tests/12-May-2024-35,33327,266

vc4/12-May-2024-716512

.gitattributesD12-May-2024631 1615

Android.common.mkD12-May-2024605 2317

Android.mkD12-May-20242.3 KiB7534

BUILD.gnD12-May-20241.4 KiB6754

CONTRIBUTING.rstD12-May-20244 KiB10673

CleanSpec.mkD12-May-2024311 54

Makefile.sourcesD12-May-2024938 4641

OAT.xmlD12-May-20249.9 KiB13983

README.OpenSourceD12-May-2024475 1211

README.rstD12-May-20242 KiB5238

RELEASINGD12-May-20241.8 KiB4130

bundle.jsonD12-May-2024846 3232

core-symbols.txtD12-May-20243.4 KiB204203

gen_table_fourcc.pyD12-May-20242.8 KiB8543

generated_static_table_fourcc.hD12-May-20242.7 KiB5047

libdrm.pc.inD12-May-2024250 119

libdrm_lists.hD12-May-20244.5 KiB11972

libdrm_macros.hD12-May-20242.7 KiB8841

libsync.hD12-May-20243.4 KiB14977

meson.buildD12-May-202411.1 KiB395349

meson_options.txtD12-May-20243.7 KiB137132

symbols-check.pyD12-May-20243.7 KiB131101

util_double_list.hD12-May-20244.6 KiB14488

util_math.hD12-May-20241.5 KiB358

xf86atomic.hD12-May-20243.8 KiB11562

xf86drm.cD12-May-2024128 KiB5,1093,351

xf86drm.hD12-May-202435.9 KiB967710

xf86drmHash.cD12-May-20247 KiB243136

xf86drmHash.hD12-May-20242 KiB4816

xf86drmMode.cD12-May-202441.1 KiB1,7501,323

xf86drmMode.hD12-May-202414.4 KiB483260

xf86drmRandom.cD12-May-20244.7 KiB13949

xf86drmRandom.hD12-May-20241.5 KiB369

xf86drmSL.cD12-May-20248.5 KiB320219

README.OpenSource

1[
2    {
3        "Name": "libdrm",
4        "License": "MIT license",
5        "License File": "meson.build",
6        "Version Number": "2.4.111",
7        "Owner": "zhusiyuan2@huawei.com",
8        "Upstream URL": "https://dri.freedesktop.org/libdrm/libdrm-2.4.111.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    }
11]
12

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