Name Date Size

..25-Oct-20244 KiB

.gitattributesH A D25-Oct-2024631

amdgpu/H25-Oct-20244 KiB

android/H25-Oct-20244 KiB

Android.common.mkH A D25-Oct-2024605

Android.mkH A D25-Oct-20242.3 KiB

BUILD.gnH A D25-Oct-20241.4 KiB

bundle.jsonH A D25-Oct-2024965

CleanSpec.mkH A D25-Oct-2024311

CONTRIBUTING.rstH A D25-Oct-20244 KiB

core-symbols.txtH A D25-Oct-20243.4 KiB

data/H25-Oct-20244 KiB

etnaviv/H25-Oct-20244 KiB

exynos/H25-Oct-20244 KiB

freedreno/H25-Oct-20244 KiB

gen_table_fourcc.pyH A D25-Oct-20242.8 KiB

generated_static_table_fourcc.hH A D25-Oct-20242.7 KiB

include/drm/H25-Oct-20244 KiB

intel/H25-Oct-20244 KiB

libdrm.pc.inH A D25-Oct-2024250

libdrm_lists.hH A D25-Oct-20244.5 KiB

libdrm_macros.hH A D25-Oct-20242.7 KiB

libsync.hH A D25-Oct-20243.4 KiB

LICENSEH A D25-Oct-20241 KiB

Makefile.sourcesH A D25-Oct-2024938

man/H25-Oct-20244 KiB

meson.buildH A D25-Oct-202411.1 KiB

meson_options.txtH A D25-Oct-20243.7 KiB

nouveau/H25-Oct-20244 KiB

OAT.xmlH A D25-Oct-20249.9 KiB

omap/H25-Oct-20244 KiB

radeon/H25-Oct-20244 KiB

README.OpenSourceH A D25-Oct-2024471

README.rstH A D25-Oct-20242 KiB

RELEASINGH A D25-Oct-20241.8 KiB

symbols-check.pyH A D25-Oct-20243.7 KiB

tegra/H25-Oct-20244 KiB

tests/H25-Oct-20244 KiB

util_double_list.hH A D25-Oct-20244.6 KiB

util_math.hH A D25-Oct-20241.5 KiB

vc4/H25-Oct-20244 KiB

xf86atomic.hH A D25-Oct-20243.8 KiB

xf86drm.cH A D25-Oct-2024128 KiB

xf86drm.hH A D25-Oct-202435.9 KiB

xf86drmHash.cH A D25-Oct-20247 KiB

xf86drmHash.hH A D25-Oct-20242 KiB

xf86drmMode.cH A D25-Oct-202441.1 KiB

xf86drmMode.hH A D25-Oct-202414.4 KiB

xf86drmRandom.cH A D25-Oct-20244.7 KiB

xf86drmRandom.hH A D25-Oct-20241.5 KiB

xf86drmSL.cH A D25-Oct-20248.5 KiB

README.OpenSource

1[
2    {
3        "Name": "libdrm",
4        "License": "MIT license",
5        "License File": "LICENSE",
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