Home | History | Annotate | only in /xsrc/external/mit/libdrm/dist
Up to higher level directory
NameDateSize
.editorconfig01-Nov-2020360
.gitlab-ci.yml04-Jul-20246.8K
amdgpu/19-Feb-2026
android/19-Feb-2026
Android.bp09-Mar-20252.9K
Android.sources.bp09-Mar-2025229
Android.sources.bp.mk09-Mar-2025712
CleanSpec.mk01-Nov-2020311
configure09-Mar-2025193
CONTRIBUTING.rst01-Nov-20204K
core-symbols.txt04-Jul-20243.6K
data/19-Feb-2026
etnaviv/19-Feb-2026
exynos/19-Feb-2026
freedreno/19-Feb-2026
gen_table_fourcc.py11-Jul-20222.8K
include/19-Feb-2026
intel/19-Feb-2026
libdrm.pc.in14-Aug-2010250
libdrm_lists.h11-Jul-20224.5K
libdrm_macros.h15-Jul-20192.7K
libsync.h04-Jul-20243.4K
man/19-Feb-2026
meson.build09-Mar-202511.1K
meson_options.txt12-Nov-20223.1K
nouveau/19-Feb-2026
omap/19-Feb-2026
radeon/19-Feb-2026
README.rst11-Jul-20212K
RELEASING11-Jul-20221.8K
symbols-check.py04-Jul-20243.8K
tegra/19-Feb-2026
tests/Today
util_double_list.h21-Jan-20184.6K
util_math.h01-Nov-20201.5K
vc4/19-Feb-2026
xf86atomic.h12-Nov-20223.8K
xf86drm.c09-Mar-2025135.7K
xf86drm.h04-Jul-202436.7K
xf86drmHash.c04-Mar-20197K
xf86drmHash.h20-Jul-20152K
xf86drmMode.c04-Jul-202444.1K
xf86drmMode.h04-Jul-202416.2K
xf86drmRandom.c10-Jan-20194.7K
xf86drmRandom.h20-Jul-20151.5K
xf86drmSL.c10-Jan-20198.5K

README.rst

      1 libdrm - userspace library for drm
      2 ----------------------------------
      3 
      4 This is libdrm, a userspace library for accessing the DRM, direct rendering
      5 manager, on Linux, BSD and other operating systems that support the ioctl
      6 interface.
      7 The library provides wrapper functions for the ioctls to avoid exposing the
      8 kernel interface directly, and for chipsets with drm memory manager, support
      9 for tracking relocations and buffers.
     10 New functionality in the kernel DRM drivers typically requires a new libdrm,
     11 but a new libdrm will always work with an older kernel.
     12 
     13 libdrm is a low-level library, typically used by graphics drivers such as
     14 the Mesa drivers, the X drivers, libva and similar projects.
     15 
     16 Syncing with the Linux kernel headers
     17 -------------------------------------
     18 
     19 The library should be regularly updated to match the recent changes in the
     20 `include/uapi/drm/`.
     21 
     22 libdrm maintains a human-readable version for the token format modifier, with
     23 the simpler ones being extracted automatically from `drm_fourcc.h` header file
     24 with the help of a python script.  This might not always possible, as some of
     25 the vendors require decoding/extracting them programmatically.  For that
     26 reason one can enhance the current vendor functions to include/provide the
     27 newly added token formats, or, in case there's no such decoding
     28 function, to add one that performs the tasks of extracting them.
     29 
     30 For simpler format modifier tokens there's a script (gen_table_fourcc.py) that
     31 creates a static table, by going over `drm_fourcc.h` header file. The script
     32 could be further modified if it can't handle new (simpler) token format
     33 modifiers instead of the generated static table.
     34 
     35 Compiling
     36 ---------
     37 
     38 To set up meson:
     39 
     40     meson builddir/
     41 
     42 By default this will install into /usr/local, you can change your prefix
     43 with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after 
     44 the initial meson setup).
     45 
     46 Then use ninja to build and install:
     47 
     48     ninja -C builddir/ install
     49 
     50 If you are installing into a system location you will need to run install
     51 separately, and as root.
     52