Emil Velikov
dadc9eff9f
libkms: use drm_mmap/drm_munmap wrappers
...
... for all by exynos.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-09-28 17:09:34 +01:00
Emil Velikov
268dce4192
automake: pick up all files for distribution.
...
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>
2014-09-28 17:09:34 +01:00
Emil Velikov
a3dfd6d40d
libkms: add Android build
...
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-09-28 17:09:34 +01:00
Emil Velikov
1a75044a39
libkms: move sources lists to makefile.sources
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-09-28 17:09:34 +01:00
Emil Velikov
f3fd11beaa
libkms: build the intel backend only when needed
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2014-09-28 17:09:34 +01:00
Emil Velikov
02b3ad7e19
libkms: remove explicit define _FILE_OFFSET_BITS 64
...
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>
2014-09-01 16:06:01 +01:00
Emil Velikov
8e93afc976
all: include config.h only when available and use its defines
...
... rather than explicitly redefining HAVE_STDINT_H and _GNU_SOURCE.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-09-01 16:06:01 +01:00
Hyungwon Hwang
3732ef59eb
tests/kmstest: support exynos
...
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>
2014-01-12 08:23:38 -05:00
Laurent Pinchart
aa4afdf0b3
kms: Return a negative error code in kms_bo_create()
...
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>
2013-04-18 10:07:01 -04:00
Laurent Pinchart
9fa4a4b1a8
kms: Make libkms.h usable in C++
...
Wrap the header in extern "C" { ... };.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
2013-04-18 10:05:53 -04:00
Maxime Villard
baf0a7daaf
libkms: return -EINVAL on fstat error
...
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>
2013-01-02 10:57:07 -05:00
Maxime Villard
1f4b5e11e6
libkms: fix memory leak in error path
...
Signed-off-by: Maxime Villard <rustyBSD@gmx.fr>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2013-01-02 10:55:50 -05:00
Marcin Slusarz
9c3c95fc0c
libkms: link against libdrm
...
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
2012-09-08 00:50:22 +02:00
Chris Wilson
61be94018a
libkms: All current BO_TYPE are 32bpp
...
... so request a 32bpp dumb buffer rather than a 16bpp.
Fixes modetest and friends.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-05-14 11:17:23 +01:00
Dave Airlie
bb99465366
libkms: add dumb support
...
this uses the drm cap interface to check if the dumb ioctl
is supported.
2011-03-04 15:25:51 +10:00
nobled
ed7d177f66
libkms/radeon: Add backend
...
Todo: What tiling should be set on scanout buffers?
Haven't tested besides compiling it.
2011-02-17 09:26:30 +01:00
Daniel Stone
ae57dcf6e0
libkms: Fix include paths
...
Otherwise xf86drm.h isn't found, or the wrong one.
2010-06-01 19:23:42 +01:00
Marcin Kościelnicki
d5a2e77682
libkms/nouveau: Add support
2010-02-28 00:25:22 +00:00
Marcin Kościelnicki
23f62721b7
libkms/intel: Throw out unused intel_bo fields.
...
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
2010-02-28 00:25:22 +00:00
Jakob Bornecrantz
a5c8f55397
libkms: Use a standard version number
2010-02-18 16:29:36 +01:00
Jakob Bornecrantz
25c0c638c4
libkms: Add missing include file to libkms source
2010-02-18 13:28:52 +01:00
Jakob Bornecrantz
44a0e0a099
libkms: Rework interface to not duplicate fields from kms and make formats 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
2010-01-28 17:32:54 +01:00
Jakob Bornecrantz
dfa7297860
libkms: Fix return value in vmwgfx_bo_create
2010-01-23 01:39:07 +00:00
Jakob Bornecrantz
2959266188
libkms: Fix multiple map unmap in vmwgfx and add comment in intel
2010-01-15 20:13:20 +00:00
Jakob Bornecrantz
d920fa9d0b
libkms: Use sysfs instead of udev to find driver
...
Udev code is still there just commented out.
2010-01-12 21:10:12 +00:00
Jakob Bornecrantz
8838bb1d63
libkms/intel: Don't fail to create bo if we fail to tile
2010-01-08 15:19:44 +00:00
Jakob Bornecrantz
bfa44bb861
libkms: Add intel backend
2010-01-08 03:05:31 +00:00
Jakob Bornecrantz
9042d72109
libkms: Pick driver backend via pci id that we get from udev
2010-01-08 03:05:00 +00:00
Jakob Bornecrantz
5dbc1b333b
libkms: Make vmwgfx optional
2010-01-05 21:06:13 +01:00
Jakob Bornecrantz
dfbaffea07
libkms: Remove duped vmwgfx_drm.h header
2010-01-05 21:04:57 +01:00
Jakob Bornecrantz
77ddc78566
vmwgfx: Fetch the latest header
2009-12-14 22:53:10 +01:00
Jakob Bornecrantz
201f5795a2
libkms: Change destroy api a bit
2009-12-04 16:11:56 +01:00
Jakob Bornecrantz
8c0571a733
libkms: Add libkms
2009-12-04 16:11:55 +01:00