This project is a fork of the drm.git project. If you have that one already cloned locally, you can use
git clone --reference /path/to/your/drm.git/incarnation mirror_URL
to save bandwidth during cloning.
 
descriptionlibdrm Direct Rendering Manager library and headers
homepage URLhttps://gitlab.freedesktop.org/mesa/drm
repository URLhttps://gitlab.freedesktop.org/mesa/drm.git
ownerroot@yurikoles.com
last changeMon, 2 Aug 2021 22:31:26 +0000 (2 15:31 -0700)
last refreshTue, 3 Dec 2024 16:01:43 +0000 (3 17:01 +0100)
content tags
add:
README.rst
libdrm - userspace library for drm
----------------------------------

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.
The library provides wrapper functions for the ioctls to avoid exposing the
kernel interface directly, and for chipsets with drm memory manager, support
for tracking relocations and buffers.
New functionality in the kernel DRM drivers typically requires a new libdrm,
but a new libdrm will always work with an older kernel.

libdrm is a low-level library, typically used by graphics drivers such as
the Mesa drivers, the X drivers, libva and similar projects.

Syncing with the Linux kernel headers
-------------------------------------

The library should be regularly updated to match the recent changes in the
`include/uapi/drm/`.

libdrm maintains a human-readable version for the token format modifier, with
the simpler ones being extracted automatically from `drm_fourcc.h` header file
with the help of a python script.  This might not always possible, as some of
the vendors require decoding/extracting them programmatically.  For that
reason one can enhance the current vendor functions to include/provide the
newly added token formats, or, in case there's no such decoding
function, to add one that performs the tasks of extracting them.

For simpler format modifier tokens there's a script (gen_table_fourcc.py) that
creates a static table, by going over `drm_fourcc.h` header file. The script
could be further modified if it can't handle new (simpler) token format
modifiers instead of the generated static table.

Compiling
---------

To set up meson:

    meson builddir/

By default this will install into /usr/local, you can change your prefix
with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after 
the initial meson setup).

Then use ninja to build and install:

    ninja -C builddir/ install

If you are installing into a system location you will need to run install
separately, and as root.
shortlog
2021-08-02 Jordan Justenlibdrm: NOTE! Default branch is now mainmaster
2021-08-02 Mario Kleinerheaders: drm: Sync with drm-next
2021-07-30 Eric Anholtmeson: Don't build libkms for Android.
2021-07-30 Eric Anholtmeson: Build libdrm.so as an unversioned lib on Android.
2021-07-23 Aaron Liutest/amdgpu: Bob to Alice copy should be TMZ in secure...
2021-07-16 Luben Tuikovtests/amdgpu: Fix TMZ secure bounce test
2021-07-02 Bas NieuwenhuizenBump version to 2.4.107libdrm-2.4.107
2021-06-30 Alex Deucheramdgpu: update marketing names
2021-06-22 Marius VladREADME.rst: Include some notes about syncing uapi headers
2021-06-22 Marius Vladxf86drm: Add support for decoding AMLOGIC format modifiers
2021-06-22 Marius Vladxf86drm: Add support for decoding AMD format modifiers
2021-06-22 Marius Vladxf86drm: Add support for decoding Nvidia format modifiers
2021-06-22 Marius Vladxf86drm: Add a vendor function to decode the format...
2021-06-22 Marius Vladxf86drm: Add a human readable representation for format...
2021-06-20 Eleni Maria... Conditionally include <linux/limits.h> and <sys/params...
2021-06-20 Eleni Maria... _WANT_KERNEL_ERRNO must be defined in FreeBSD for EREST...
...
tags
3 months ago libdrm-2.4.123 libdrm-2.4.123
5 months ago libdrm-2.4.122 libdrm-2.4.122
6 months ago libdrm-2.4.121 libdrm-2.4.121
10 months ago libdrm-2.4.120 libdrm-2.4.120
11 months ago libdrm-2.4.119 libdrm-2.4.119
12 months ago libdrm-2.4.118 libdrm-2.4.118
13 months ago libdrm-2.4.117 libdrm-2.4.117
15 months ago libdrm-2.4.116 libdrm-2.4.116
21 months ago libdrm-2.4.115 libdrm-2.4.115
2 years ago libdrm-2.4.114 libdrm-2.4.114
2 years ago libdrm-2.4.113 libdrm-2.4.113
2 years ago libdrm-2.4.112 libdrm-2.4.112
2 years ago libdrm-2.4.111 libdrm-2.4.111
2 years ago libdrm-2.4.110
3 years ago libdrm-2.4.109 libdrm-2.4.109
3 years ago libdrm-2.4.108 libdrm-2.4.108
...
heads
5 weeks ago main
9 months ago 103-regression-intel-mesa-buildtests-broken-by-libdrm-update
3 years ago master
9 years ago amdgpu
15 years ago modesetting-dirty
15 years ago pageflip
15 years ago vblank-event
15 years ago kms-pageflip
15 years ago dri2-swapbuffers
15 years ago modesetting-newttm
15 years ago modesetting-gem
15 years ago r6xx-r7xx-support
16 years ago modesetting-101
16 years ago libdrm-2_3-branch
16 years ago intel-post-reloc
17 years ago modesetting-101-hotplug
...