• Home
Name Date Size #Lines LOC

..--

amdgpu/07-Sep-2024-5,3192,899

android/07-Sep-2024-11254

data/07-Sep-2024-357348

etnaviv/07-Sep-2024-2,2341,450

exynos/07-Sep-2024-2,3101,427

freedreno/07-Sep-2024-4,8083,134

include/drm/07-Sep-2024-13,2026,184

intel/07-Sep-2024-16,48513,007

man/07-Sep-2024-875695

nouveau/07-Sep-2024-3,2332,594

omap/07-Sep-2024-778527

radeon/07-Sep-2024-5,8054,620

tegra/07-Sep-2024-1,385935

tests/07-Sep-2024-35,33327,266

vc4/07-Sep-2024-716512

.gitattributesD07-Sep-2024631 1615

Android.common.mkD07-Sep-2024605 2317

Android.mkD07-Sep-20242.3 KiB7534

BUILD.gnD07-Sep-20241.4 KiB6754

CONTRIBUTING.rstD07-Sep-20244 KiB10673

CleanSpec.mkD07-Sep-2024311 54

Makefile.sourcesD07-Sep-2024938 4641

OAT.xmlD07-Sep-20249.9 KiB13983

README.OpenSourceD07-Sep-2024475 1211

README.rstD07-Sep-20242 KiB5238

RELEASINGD07-Sep-20241.8 KiB4130

bundle.jsonD07-Sep-20241.3 KiB4545

core-symbols.txtD07-Sep-20243.4 KiB204203

gen_table_fourcc.pyD07-Sep-20242.8 KiB8543

generated_static_table_fourcc.hD07-Sep-20242.7 KiB5047

libdrm.pc.inD07-Sep-2024250 119

libdrm_lists.hD07-Sep-20244.5 KiB11972

libdrm_macros.hD07-Sep-20242.7 KiB8841

libsync.hD07-Sep-20243.4 KiB14977

meson.buildD07-Sep-202411.1 KiB395349

meson_options.txtD07-Sep-20243.7 KiB137132

symbols-check.pyD07-Sep-20243.7 KiB131101

util_double_list.hD07-Sep-20244.6 KiB14488

util_math.hD07-Sep-20241.5 KiB358

xf86atomic.hD07-Sep-20243.8 KiB11562

xf86drm.cD07-Sep-2024128 KiB5,1093,351

xf86drm.hD07-Sep-202435.9 KiB967710

xf86drmHash.cD07-Sep-20247 KiB243136

xf86drmHash.hD07-Sep-20242 KiB4816

xf86drmMode.cD07-Sep-202441.1 KiB1,7501,323

xf86drmMode.hD07-Sep-202414.4 KiB483260

xf86drmRandom.cD07-Sep-20244.7 KiB13949

xf86drmRandom.hD07-Sep-20241.5 KiB369

xf86drmSL.cD07-Sep-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