aboutsummaryrefslogtreecommitdiffstats
path: root/libkms
Commit message (Collapse)AuthorAgeFilesLines
* remove usage of 'c_plusplus' preprocessor macroTapani Pälli2015-08-101-2/+2
| | | | | | | Use only __cplusplus which is supported by the C++ standard. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* include <sys/types.h> & <sys/mkdev.h> directly for major() and minor()Alan Coopersmith2015-07-131-0/+4
| | | | | | | | | | | | Linux seems to pick these up via another header, but Solaris needs them explicitly included, or we get undefined symbol errors for major & minor. v2: use headers documented in makedev(3C) man page instead of sysmacros.h Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> v3 [Emil Velikov]: include sys/mkdev.h only when available. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* drm: rename libdrm{,_macros}.hEmil Velikov2015-04-289-9/+9
| | | | | | Provide a more meaningful name, considering what it does. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* libkms: add symbols testEmil Velikov2015-04-282-1/+27
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* libkms: annotate private symbolsEmil Velikov2015-04-289-15/+23
| | | | | Cc: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* android: add the missing tag "optional" to libkmsEmil Velikov2015-03-201-0/+1
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* android: remove LOCAL_COPY_HEADERS* variablesEmil Velikov2015-03-201-3/+0
| | | | | | | | | With earlier changes we've implicitly add the relevant directories to the includes list, via LOCAL_EXPORT_C_INCLUDES_DIRS. v2: Update the top Android.mk as well. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* android: simplify LOCAL_C_INCLUDESEmil Velikov2015-03-201-2/+0
| | | | | | | | | Each of the libdrm_${hw} modules pull libdrm for linking as such: libdrm's LOCAL_EXPORT_C_INCLUDE_DIRS are added to the includes list. The former of which is already set to ${top} and ${top}/include/drm. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* android: correcly set LOCAL_EXPORT_C_INCLUDE_DIRSEmil Velikov2015-03-201-0/+2
| | | | | | | | | | - Don't add ${hw}/${hw}, but ${hw} to the includes path. The former does not exist. - Set the variable for libkms. Inspired by the work of from Chih-Wei from the Android-x86 project. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* exynos: Don't use DRM_EXYNOS_GEM_{MAP_OFFSET/MMAP} ioctlsHyungwon Hwang2015-02-021-3/+4
| | | | | | | | | | | | | | | | | | | | The ioctl DRM_EXYNOS_GEM_MAP_OFFSET and DRM_EXYNOS_GEM_MMAP are removed from the linux kernel. This patch modifies libdrm and libkms to use drm generic ioctls instead of the removed ioctls. v2: The original patch was erroneous. In case the MODE_MAP_DUMB ioctl failed it would return the retvalue as a void-pointer. Users of libdrm would then happily use that ptr, eventually leading to a segfault. Change this to return NULL in that case and also restore the previous behaviour of logging to stderr. The other error was that 'bo->vaddr' was never filled with the mapped buffer address. Hence exynos_bo_map still returned NULL even if the buffer mapping succeeded. Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Signed-off-by: Rob Clark <robclark@freedesktop.org>
* libkms: use drm_mmap/drm_munmap wrappersEmil Velikov2014-09-285-18/+16
| | | | | | | ... for all by exynos. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
* automake: pick up all files for distribution.Emil Velikov2014-09-281-1/+1
| | | | | | | | Autotools is already smart enough to pick the *.pc.in files but it needs some help with the Android.mk ones. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
* libkms: add Android buildEmil Velikov2014-09-281-0/+53
| | | | | | Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
* libkms: move sources lists to makefile.sourcesEmil Velikov2014-09-282-11/+32
| | | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
* libkms: build the intel backend only when neededEmil Velikov2014-09-282-6/+15
| | | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
* libkms: remove explicit define _FILE_OFFSET_BITS 64Emil Velikov2014-09-016-6/+0
| | | | | | | configure.ac has AC_SYS_LARGEFILE which provides the define and/or approapriate magic when required. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* all: include config.h only when available and use its definesEmil Velikov2014-09-018-6/+22
| | | | | | ... rather than explicitly redefining HAVE_STDINT_H and _GNU_SOURCE. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests/kmstest: support exynosHyungwon Hwang2014-01-124-0/+218
| | | | | | | | In this patch, to support exynos for KMS, Exynos KMS driver is newly added. Also, Exynos is added to the list of kmstest supported modules. Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com> Signed-off-by: Rob Clark <robclark@freedesktop.org>
* kms: Return a negative error code in kms_bo_create()Laurent Pinchart2013-04-181-1/+1
| | | | | | | | | | The function returns returns 0 on success or a negative value in case of an error, except when given invalid attributes in which case it returns the positive EINVAL value. Replace that with -EINVAL to allow the caller to detect errors with a < 0 check. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
* kms: Make libkms.h usable in C++Laurent Pinchart2013-04-181-0/+8
| | | | | | | Wrap the header in extern "C" { ... };. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
* libkms: return -EINVAL on fstat errorMaxime Villard2013-01-021-1/+1
| | | | | | | On error fstat return -1, instead return -EINVAL to caller Signed-off-by: Maxime Villard <rustyBSD@gmx.fr> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
* libkms: fix memory leak in error pathMaxime Villard2013-01-022-0/+2
| | | | | Signed-off-by: Maxime Villard <rustyBSD@gmx.fr> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
* libkms: link against libdrmMarcin Slusarz2012-09-071-1/+1
| | | | Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
* libkms: All current BO_TYPE are 32bppChris Wilson2011-05-141-1/+2
| | | | | | | | ... so request a 32bpp dumb buffer rather than a 16bpp. Fixes modetest and friends. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* libkms: add dumb supportDave Airlie2011-03-034-0/+226
| | | | | this uses the drm cap interface to check if the dumb ioctl is supported.
* libkms/radeon: Add backendnobled2011-02-174-0/+252
| | | | | | Todo: What tiling should be set on scanout buffers? Haven't tested besides compiling it.
* libkms: Fix include pathsDaniel Stone2010-06-011-1/+2
| | | | Otherwise xf86drm.h isn't found, or the wrong one.
* libkms/nouveau: Add supportMarcin Kościelnicki2010-02-274-0/+230
|
* libkms/intel: Throw out unused intel_bo fields.Marcin Kościelnicki2010-02-271-2/+0
| | | | Acked-by: Jakob Bornecrantz <jakob@vmware.com>
* libkms: Use a standard version numberJakob Bornecrantz2010-02-181-1/+1
|
* libkms: Add missing include file to libkms sourceJakob Bornecrantz2010-02-181-0/+1
|
* libkms: Rework interface to not duplicate fields from kms and make formats ↵Jakob Bornecrantz2010-01-284-68/+30
| | | | | | | | | explicit List of changes: Fixes the cursor size to 64x64, you still need ti supply width and height Explicitly make the cursor format A8R8G8B8 Explicitly make the scanout format X8R8G8B8
* libkms: Fix return value in vmwgfx_bo_createJakob Bornecrantz2010-01-221-1/+1
|
* libkms: Fix multiple map unmap in vmwgfx and add comment in intelJakob Bornecrantz2010-01-152-10/+15
|
* libkms: Use sysfs instead of udev to find driverJakob Bornecrantz2010-01-124-31/+135
| | | | Udev code is still there just commented out.
* libkms/intel: Don't fail to create bo if we fail to tileJakob Bornecrantz2010-01-081-4/+6
|
* libkms: Add intel backendJakob Bornecrantz2010-01-074-0/+260
|
* libkms: Pick driver backend via pci id that we get from udevJakob Bornecrantz2010-01-074-5/+118
|
* libkms: Make vmwgfx optionalJakob Bornecrantz2010-01-052-2/+10
|
* libkms: Remove duped vmwgfx_drm.h headerJakob Bornecrantz2010-01-051-574/+0
|
* vmwgfx: Fetch the latest headerJakob Bornecrantz2009-12-141-17/+150
|
* libkms: Change destroy api a bitJakob Bornecrantz2009-12-042-6/+20
|
* libkms: Add libkmsJakob Bornecrantz2009-12-047-0/+957