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