aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* android: Move gralloc handle struct to libdrmRobert Foss2018-02-141-0/+3
| | | | | | | | | | | | This struct is used in mesa and drm_hwcomposer. Versions of if have been implemented in several grallocs: drm_gralloc, gbm_gralloc, minigbm and intel-minigbm. Other than the 1:1 move of the struct a new generic name has been chosen and variables have had comments added to them. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Rob Herring <robh@kernel.org>
* add libsync.h helperRob Clark2016-11-051-0/+1
| | | | | | | | | | | | | | Rather than cut/pasting these couple ioctl wrappers everywhere, just stuff them as static-inline into a header. This is probably mostly used from mesa, but some drivers, test apps, etc may also want to use it from libdrm. v2: handle EINTR, add sync_accumulate() based on #dri-devel discussion, etc Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
* automake: Include virtgpu_drm.h in the release tarballAndreas Boll2016-07-231-1/+2
| | | | | | | | | | | The plan is to use this version of virtgpu_drm.h in mesa and drop mesa's local copy. To actually use this header it needs to be shipped in the tarball. This was missed in c745e541a9d8dfd3fb5e1ac57297e58d34d9328f Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* vc4: Add the DRM header file.Eric Anholt2016-02-031-0/+1
| | | | | | | | I'll build some libdrm C code soon, but for now this lets libdrm users use vc4 ioctls. Produced from headers_install of 1df59b8497f47495e873c23abd6d3d290c730505 (drm-next) in the kernel. Signed-off-by: Eric Anholt <eric@anholt.net>
* drm: add libdrm_amdgpu (v7)Alex Deucher2015-08-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | This is the new ioctl wrapper used by the new admgpu driver. It's primarily used by xf86-video-amdgpu and mesa. v2: fix amdgpu_drm.h install v3: Integrate some of the sugestions from Emil: clean up Makefile.am, configure.ac capitalize header guards fix _FILE_OFFSET_BITS with config.h use drm_mmap/drm_munmap Remove unused ARRAY_SIZE macro use shared list implementation use shared math implementation use drmGetNodeTypeFromFd helper v4: remove unused tiling defines v5: include amdgpu.h in Makefile.am v6: update amdgpu_drm.h v7: libdrm.h -> libdrm_macros.h Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* drm: add util_math.hAlex Deucher2015-08-051-1/+2
| | | | | | Used by amdgpu, could be used by other components. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* drm: consolidate common list implementations (v2)Alex Deucher2015-08-051-1/+2
| | | | | | | | | | This is used by radeon and freedreno and will be used by amdgpu. I looked at switching to libdrm_lists.h, but it's pretty horrible. E.g., DRMLISTFOREACHENTRYSAFE. v2: remove missed list.h from tests/radeon/Makefile.am Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* drm: rename libdrm{,_macros}.hEmil Velikov2015-04-281-1/+1
| | | | | | Provide a more meaningful name, considering what it does. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests/random: extract test out of xf86drmRandom.cEmil Velikov2015-04-051-0/+1
| | | | | | | | | | | | With follow up commits we can clear it up and wire to make check v2: - Use xf86drmRandom.h for common struct.(Jan) - Add test to .gitignore. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
* tests/hash: extract test out of xf86drmHash.cEmil Velikov2015-04-051-0/+1
| | | | | | | | | | | | This way with follow up commits we can fix it and wire it up to make check v2: - Use xf86drmHash.h for common structs.(Jan) - Add test to .gitignore. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
* libdrm: Add NVIDIA Tegra supportThierry Reding2014-11-271-0/+1
| | | | | | | | | | | | Add the libdrm_tegra helper library to encapsulate Tegra-specific interfaces to the DRM. Furthermore, Tegra is added to the list of supported chips in the modetest and vbltest programs. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* automake: remove obsolete makefilesEmil Velikov2014-09-281-0/+19
| | | | | | | | Rather than having two extra makefiles in order to ship ~10 headers just fold its 5 lines of code into the top one makefile. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
* libdrm, freedreno, intel, nouveau, radeon: add Makefile.sourcesEmil Velikov2014-09-011-0/+13
Will be used to consolidate the required sources lists as well as the install-able headers. This is turn will help us to avoid the duplication with the upcoming Android build support. v2: Rename the headers variable to *_H_FILES. v3: Rebase on top of symbol visibility patches. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>