|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| amdgpu/ | | 12-May-2024 | - | 5,319 | 2,899 |
| android/ | | 12-May-2024 | - | 112 | 54 |
| data/ | | 12-May-2024 | - | 357 | 348 |
| etnaviv/ | | 12-May-2024 | - | 2,234 | 1,450 |
| exynos/ | | 12-May-2024 | - | 2,310 | 1,427 |
| freedreno/ | | 12-May-2024 | - | 4,808 | 3,134 |
| include/drm/ | | 12-May-2024 | - | 13,202 | 6,184 |
| intel/ | | 12-May-2024 | - | 16,485 | 13,007 |
| man/ | | 12-May-2024 | - | 875 | 695 |
| nouveau/ | | 12-May-2024 | - | 3,233 | 2,594 |
| omap/ | | 12-May-2024 | - | 778 | 527 |
| radeon/ | | 12-May-2024 | - | 5,805 | 4,620 |
| tegra/ | | 12-May-2024 | - | 1,385 | 935 |
| tests/ | | 12-May-2024 | - | 35,333 | 27,266 |
| vc4/ | | 12-May-2024 | - | 716 | 512 |
| .gitattributes | D | 12-May-2024 | 631 | 16 | 15 |
| Android.common.mk | D | 12-May-2024 | 605 | 23 | 17 |
| Android.mk | D | 12-May-2024 | 2.3 KiB | 75 | 34 |
| BUILD.gn | D | 12-May-2024 | 1.4 KiB | 67 | 54 |
| CONTRIBUTING.rst | D | 12-May-2024 | 4 KiB | 106 | 73 |
| CleanSpec.mk | D | 12-May-2024 | 311 | 5 | 4 |
| Makefile.sources | D | 12-May-2024 | 938 | 46 | 41 |
| OAT.xml | D | 12-May-2024 | 9.9 KiB | 139 | 83 |
| README.OpenSource | D | 12-May-2024 | 475 | 12 | 11 |
| README.rst | D | 12-May-2024 | 2 KiB | 52 | 38 |
| RELEASING | D | 12-May-2024 | 1.8 KiB | 41 | 30 |
| bundle.json | D | 12-May-2024 | 846 | 32 | 32 |
| core-symbols.txt | D | 12-May-2024 | 3.4 KiB | 204 | 203 |
| gen_table_fourcc.py | D | 12-May-2024 | 2.8 KiB | 85 | 43 |
| generated_static_table_fourcc.h | D | 12-May-2024 | 2.7 KiB | 50 | 47 |
| libdrm.pc.in | D | 12-May-2024 | 250 | 11 | 9 |
| libdrm_lists.h | D | 12-May-2024 | 4.5 KiB | 119 | 72 |
| libdrm_macros.h | D | 12-May-2024 | 2.7 KiB | 88 | 41 |
| libsync.h | D | 12-May-2024 | 3.4 KiB | 149 | 77 |
| meson.build | D | 12-May-2024 | 11.1 KiB | 395 | 349 |
| meson_options.txt | D | 12-May-2024 | 3.7 KiB | 137 | 132 |
| symbols-check.py | D | 12-May-2024 | 3.7 KiB | 131 | 101 |
| util_double_list.h | D | 12-May-2024 | 4.6 KiB | 144 | 88 |
| util_math.h | D | 12-May-2024 | 1.5 KiB | 35 | 8 |
| xf86atomic.h | D | 12-May-2024 | 3.8 KiB | 115 | 62 |
| xf86drm.c | D | 12-May-2024 | 128 KiB | 5,109 | 3,351 |
| xf86drm.h | D | 12-May-2024 | 35.9 KiB | 967 | 710 |
| xf86drmHash.c | D | 12-May-2024 | 7 KiB | 243 | 136 |
| xf86drmHash.h | D | 12-May-2024 | 2 KiB | 48 | 16 |
| xf86drmMode.c | D | 12-May-2024 | 41.1 KiB | 1,750 | 1,323 |
| xf86drmMode.h | D | 12-May-2024 | 14.4 KiB | 483 | 260 |
| xf86drmRandom.c | D | 12-May-2024 | 4.7 KiB | 139 | 49 |
| xf86drmRandom.h | D | 12-May-2024 | 1.5 KiB | 36 | 9 |
| xf86drmSL.c | D | 12-May-2024 | 8.5 KiB | 320 | 219 |
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