|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| amdgpu/ | | 03-May-2024 | - | 5,477 | 3,064 |
| android/ | | 03-May-2024 | - | 112 | 54 |
| data/ | | 03-May-2024 | - | 249 | 219 |
| etnaviv/ | | 03-May-2024 | - | 2,281 | 1,490 |
| exynos/ | | 03-May-2024 | - | 2,352 | 1,456 |
| freedreno/ | | 03-May-2024 | - | 4,956 | 3,237 |
| include/drm/ | | 03-May-2024 | - | 11,096 | 6,194 |
| intel/ | | 03-May-2024 | - | 16,059 | 12,737 |
| libkms/ | | 03-May-2024 | - | 2,028 | 1,404 |
| m4/ | | 03-May-2024 | - | 6 | 5 |
| man/ | | 03-May-2024 | - | 1,362 | 1,163 |
| nouveau/ | | 03-May-2024 | - | 3,243 | 2,610 |
| omap/ | | 03-May-2024 | - | 827 | 565 |
| radeon/ | | 03-May-2024 | - | 5,881 | 4,661 |
| rockchip/ | | 03-May-2024 | - | 501 | 256 |
| tegra/ | | 03-May-2024 | - | 646 | 432 |
| tests/ | | 03-May-2024 | - | 24,727 | 19,086 |
| vc4/ | | 03-May-2024 | - | 751 | 522 |
| .editorconfig | D | 03-May-2024 | 360 | 24 | 17 |
| .gitignore | D | 03-May-2024 | 1.4 KiB | 109 | 108 |
| Android.bp | D | 03-May-2024 | 2.1 KiB | 67 | 60 |
| Android.sources.bp | D | 03-May-2024 | 229 | 13 | 11 |
| Android.sources.bp.mk | D | 03-May-2024 | 712 | 26 | 17 |
| CleanSpec.mk | D | 03-May-2024 | 490 | 9 | 6 |
| Makefile.am | D | 03-May-2024 | 4.1 KiB | 181 | 134 |
| Makefile.sources | D | 03-May-2024 | 913 | 45 | 40 |
| OWNERS | D | 03-May-2024 | 184 | 6 | 5 |
| README | D | 03-May-2024 | 2 KiB | 60 | 40 |
| 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 | 19.4 KiB | 620 | 528 |
| 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.6 KiB | 86 | 39 |
| libsync.h | D | 03-May-2024 | 3.4 KiB | 149 | 77 |
| meson.build | D | 03-May-2024 | 11.1 KiB | 383 | 342 |
| 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 | 103.6 KiB | 4,294 | 2,743 |
| xf86drm.h | D | 03-May-2024 | 32.3 KiB | 884 | 655 |
| xf86drmHash.c | D | 03-May-2024 | 7.1 KiB | 248 | 141 |
| xf86drmHash.h | D | 03-May-2024 | 2 KiB | 48 | 16 |
| xf86drmMode.c | D | 03-May-2024 | 36.1 KiB | 1,585 | 1,212 |
| xf86drmMode.h | D | 03-May-2024 | 17 KiB | 552 | 323 |
| xf86drmRandom.c | D | 03-May-2024 | 4.7 KiB | 138 | 48 |
| xf86drmRandom.h | D | 03-May-2024 | 1.5 KiB | 36 | 9 |
| xf86drmSL.c | D | 03-May-2024 | 8.3 KiB | 319 | 218 |
README
1libdrm - userspace library for drm
2
3This is libdrm, a userspace library for accessing the DRM, direct
4rendering manager, on Linux, BSD and other operating systems that
5support the ioctl interface. The library provides wrapper functions
6for the ioctls to avoid exposing the kernel interface directly, and
7for chipsets with drm memory manager, support for tracking relocations
8and buffers. libdrm is a low-level library, typically used by
9graphics drivers such as the Mesa DRI drivers, the X drivers, libva
10and similar projects. New functionality in the kernel DRM drivers
11typically requires a new libdrm, but a new libdrm will always work
12with an older kernel.
13
14
15Compiling
16---------
17
18libdrm has two build systems, a legacy autotools build system, and a newer
19meson build system. The meson build system is much faster, and offers a
20slightly different interface, but otherwise provides an equivalent feature set.
21
22To use it:
23
24 meson builddir/
25
26By default this will install into /usr/local, you can change your prefix
27with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after
28the initial meson setup).
29
30Then use ninja to build and install:
31
32 ninja -C builddir/ install
33
34If you are installing into a system location you will need to run install
35separately, and as root.
36
37
38Alternatively you can invoke autotools configure:
39
40 ./configure
41
42By default, libdrm will install into the /usr/local/ prefix. If you
43want to install this DRM to replace your system copy, pass
44--prefix=/usr and --exec-prefix=/ to configure. If you are building
45libdrm from a git checkout, you first need to run the autogen.sh
46script. You can pass any options to autogen.sh that you would other
47wise pass to configure, or you can just re-run configure with the
48options you need once autogen.sh finishes.
49
50Next step is to build libdrm:
51
52 make
53
54and once make finishes successfully, install the package using
55
56 make install
57
58If you are installing into a system location, you will need to be root
59to perform the install step.
60