• Home
Name Date Size #Lines LOC

..--

amdgpu/03-May-2024-5,2282,855

android/03-May-2024-11254

data/03-May-2024-264234

etnaviv/03-May-2024-2,2841,492

exynos/03-May-2024-2,3561,459

freedreno/03-May-2024-4,8773,193

include/drm/03-May-2024-11,7305,870

intel/03-May-2024-16,45512,989

libkms/03-May-2024-2,0321,407

m4/03-May-2024-65

man/03-May-2024-1,3621,163

nouveau/03-May-2024-3,2472,613

omap/03-May-2024-831568

radeon/03-May-2024-5,8854,664

tegra/03-May-2024-589391

tests/03-May-2024-27,15320,892

vc4/03-May-2024-752523

.editorconfigD03-May-2024360 2417

.gitignoreD03-May-20241.4 KiB111110

.gitlab-ci.ymlD03-May-20244.5 KiB160146

Android.bpD03-May-20242.2 KiB7063

Android.sources.bpD03-May-2024229 1311

Android.sources.bp.mkD03-May-2024712 2617

CONTRIBUTING.rstD03-May-20244 KiB10673

CleanSpec.mkD03-May-2024490 96

Makefile.amD03-May-20244 KiB177131

Makefile.sourcesD03-May-2024938 4641

OWNERSD03-May-2024181 65

README.rstD03-May-20242 KiB6241

RELEASINGD03-May-20242.2 KiB5238

autogen.shD03-May-2024499 2113

configure.acD03-May-202418.9 KiB606516

libdrm.pc.inD03-May-2024250 119

libdrm_lists.hD03-May-20244.4 KiB11972

libdrm_macros.hD03-May-20242.7 KiB8841

libsync.hD03-May-20243.4 KiB14977

meson.buildD03-May-202411.2 KiB387345

meson_options.txtD03-May-20243.8 KiB144139

util_double_list.hD03-May-20244.6 KiB14488

util_math.hD03-May-20241.5 KiB358

xf86atomic.hD03-May-20243.8 KiB11461

xf86drm.cD03-May-2024107.8 KiB4,3562,795

xf86drm.hD03-May-202432.9 KiB897668

xf86drmHash.cD03-May-20247 KiB243136

xf86drmHash.hD03-May-20242 KiB4816

xf86drmMode.cD03-May-202436.9 KiB1,5971,223

xf86drmMode.hD03-May-202417 KiB552323

xf86drmRandom.cD03-May-20244.7 KiB13949

xf86drmRandom.hD03-May-20241.5 KiB369

xf86drmSL.cD03-May-20248.5 KiB320219

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