android13/external/libdrm
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
.gitlab-ci initial 2024-06-22 20:45:49 +08:00
amdgpu initial 2024-06-22 20:45:49 +08:00
android initial 2024-06-22 20:45:49 +08:00
data initial 2024-06-22 20:45:49 +08:00
etnaviv initial 2024-06-22 20:45:49 +08:00
exynos initial 2024-06-22 20:45:49 +08:00
freedreno initial 2024-06-22 20:45:49 +08:00
include/drm initial 2024-06-22 20:45:49 +08:00
intel initial 2024-06-22 20:45:49 +08:00
libkms initial 2024-06-22 20:45:49 +08:00
man initial 2024-06-22 20:45:49 +08:00
nouveau initial 2024-06-22 20:45:49 +08:00
omap initial 2024-06-22 20:45:49 +08:00
radeon initial 2024-06-22 20:45:49 +08:00
rockchip initial 2024-06-22 20:45:49 +08:00
tegra initial 2024-06-22 20:45:49 +08:00
tests initial 2024-06-22 20:45:49 +08:00
vc4 initial 2024-06-22 20:45:49 +08:00
.editorconfig initial 2024-06-22 20:45:49 +08:00
.gitlab-ci.yml initial 2024-06-22 20:45:49 +08:00
Android.bp initial 2024-06-22 20:45:49 +08:00
Android.sources.bp initial 2024-06-22 20:45:49 +08:00
Android.sources.bp.mk initial 2024-06-22 20:45:49 +08:00
CONTRIBUTING.rst initial 2024-06-22 20:45:49 +08:00
CleanSpec.mk initial 2024-06-22 20:45:49 +08:00
LICENSE initial 2024-06-22 20:45:49 +08:00
METADATA initial 2024-06-22 20:45:49 +08:00
Makefile.sources initial 2024-06-22 20:45:49 +08:00
OWNERS initial 2024-06-22 20:45:49 +08:00
README.rst initial 2024-06-22 20:45:49 +08:00
RELEASING initial 2024-06-22 20:45:49 +08:00
core-symbols.txt initial 2024-06-22 20:45:49 +08:00
gen_prebuilt_intermediates.sh initial 2024-06-22 20:45:49 +08:00
gen_table_fourcc.py initial 2024-06-22 20:45:49 +08:00
generated_static_table_fourcc.h initial 2024-06-22 20:45:49 +08:00
libdrm.pc.in initial 2024-06-22 20:45:49 +08:00
libdrm_lists.h initial 2024-06-22 20:45:49 +08:00
libdrm_macros.h initial 2024-06-22 20:45:49 +08:00
libsync.h initial 2024-06-22 20:45:49 +08:00
meson.build initial 2024-06-22 20:45:49 +08:00
meson_options.txt initial 2024-06-22 20:45:49 +08:00
symbols-check.py initial 2024-06-22 20:45:49 +08:00
util_double_list.h initial 2024-06-22 20:45:49 +08:00
util_math.h initial 2024-06-22 20:45:49 +08:00
xf86atomic.h initial 2024-06-22 20:45:49 +08:00
xf86drm.c initial 2024-06-22 20:45:49 +08:00
xf86drm.h initial 2024-06-22 20:45:49 +08:00
xf86drmHash.c initial 2024-06-22 20:45:49 +08:00
xf86drmHash.h initial 2024-06-22 20:45:49 +08:00
xf86drmMode.c initial 2024-06-22 20:45:49 +08:00
xf86drmMode.h initial 2024-06-22 20:45:49 +08:00
xf86drmRandom.c initial 2024-06-22 20:45:49 +08:00
xf86drmRandom.h initial 2024-06-22 20:45:49 +08:00
xf86drmSL.c initial 2024-06-22 20:45:49 +08:00

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.