|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| amdgpu/ | | 03-May-2024 | - | 5,228 | 2,855 |
| android/ | | 03-May-2024 | - | 112 | 54 |
| data/ | | 03-May-2024 | - | 264 | 234 |
| etnaviv/ | | 03-May-2024 | - | 2,284 | 1,492 |
| exynos/ | | 03-May-2024 | - | 2,356 | 1,459 |
| freedreno/ | | 03-May-2024 | - | 4,877 | 3,193 |
| include/drm/ | | 03-May-2024 | - | 11,730 | 5,870 |
| intel/ | | 03-May-2024 | - | 16,455 | 12,989 |
| libkms/ | | 03-May-2024 | - | 2,032 | 1,407 |
| m4/ | | 03-May-2024 | - | 6 | 5 |
| man/ | | 03-May-2024 | - | 1,362 | 1,163 |
| nouveau/ | | 03-May-2024 | - | 3,247 | 2,613 |
| omap/ | | 03-May-2024 | - | 831 | 568 |
| radeon/ | | 03-May-2024 | - | 5,885 | 4,664 |
| tegra/ | | 03-May-2024 | - | 589 | 391 |
| tests/ | | 03-May-2024 | - | 27,153 | 20,892 |
| vc4/ | | 03-May-2024 | - | 752 | 523 |
| .editorconfig | D | 03-May-2024 | 360 | 24 | 17 |
| .gitignore | D | 03-May-2024 | 1.4 KiB | 111 | 110 |
| .gitlab-ci.yml | D | 03-May-2024 | 4.5 KiB | 160 | 146 |
| Android.bp | D | 03-May-2024 | 2.2 KiB | 70 | 63 |
| Android.sources.bp | D | 03-May-2024 | 229 | 13 | 11 |
| Android.sources.bp.mk | D | 03-May-2024 | 712 | 26 | 17 |
| CONTRIBUTING.rst | D | 03-May-2024 | 4 KiB | 106 | 73 |
| CleanSpec.mk | D | 03-May-2024 | 490 | 9 | 6 |
| Makefile.am | D | 03-May-2024 | 4 KiB | 177 | 131 |
| Makefile.sources | D | 03-May-2024 | 938 | 46 | 41 |
| OWNERS | D | 03-May-2024 | 181 | 6 | 5 |
| README.rst | D | 03-May-2024 | 2 KiB | 62 | 41 |
| RELEASING | D | 03-May-2024 | 2.2 KiB | 52 | 38 |
| autogen.sh | D | 03-May-2024 | 499 | 21 | 13 |
| configure.ac | D | 03-May-2024 | 18.9 KiB | 606 | 516 |
| libdrm.pc.in | D | 03-May-2024 | 250 | 11 | 9 |
| libdrm_lists.h | D | 03-May-2024 | 4.4 KiB | 119 | 72 |
| libdrm_macros.h | D | 03-May-2024 | 2.7 KiB | 88 | 41 |
| libsync.h | D | 03-May-2024 | 3.4 KiB | 149 | 77 |
| meson.build | D | 03-May-2024 | 11.2 KiB | 387 | 345 |
| meson_options.txt | D | 03-May-2024 | 3.8 KiB | 144 | 139 |
| util_double_list.h | D | 03-May-2024 | 4.6 KiB | 144 | 88 |
| util_math.h | D | 03-May-2024 | 1.5 KiB | 35 | 8 |
| xf86atomic.h | D | 03-May-2024 | 3.8 KiB | 114 | 61 |
| xf86drm.c | D | 03-May-2024 | 107.8 KiB | 4,356 | 2,795 |
| xf86drm.h | D | 03-May-2024 | 32.9 KiB | 897 | 668 |
| xf86drmHash.c | D | 03-May-2024 | 7 KiB | 243 | 136 |
| xf86drmHash.h | D | 03-May-2024 | 2 KiB | 48 | 16 |
| xf86drmMode.c | D | 03-May-2024 | 36.9 KiB | 1,597 | 1,223 |
| xf86drmMode.h | D | 03-May-2024 | 17 KiB | 552 | 323 |
| xf86drmRandom.c | D | 03-May-2024 | 4.7 KiB | 139 | 49 |
| xf86drmRandom.h | D | 03-May-2024 | 1.5 KiB | 36 | 9 |
| xf86drmSL.c | D | 03-May-2024 | 8.5 KiB | 320 | 219 |
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
16
17Compiling
18---------
19
20libdrm has two build systems, a legacy autotools build system, and a newer
21meson build system. The meson build system is much faster, and offers a
22slightly different interface, but otherwise provides an equivalent feature set.
23
24To use it:
25
26 meson builddir/
27
28By default this will install into /usr/local, you can change your prefix
29with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after
30the initial meson setup).
31
32Then use ninja to build and install:
33
34 ninja -C builddir/ install
35
36If you are installing into a system location you will need to run install
37separately, and as root.
38
39
40Alternatively you can invoke autotools configure:
41
42 ./configure
43
44By default, libdrm will install into the /usr/local/ prefix. If you
45want to install this DRM to replace your system copy, pass
46--prefix=/usr and --exec-prefix=/ to configure. If you are building
47libdrm from a git checkout, you first need to run the autogen.sh
48script. You can pass any options to autogen.sh that you would other
49wise pass to configure, or you can just re-run configure with the
50options you need once autogen.sh finishes.
51
52Next step is to build libdrm:
53
54 make
55
56and once make finishes successfully, install the package using
57
58 make install
59
60If you are installing into a system location, you will need to be root
61to perform the install step.
62