]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/log
android/external-libkmsxx.git
8 years agoAdd definition to DRM_CLIENT_CAP_ATOMIC undef case
Alejandro Hernandez [Fri, 22 Jan 2016 14:35:28 +0000 (09:35 -0500)]
Add definition to DRM_CLIENT_CAP_ATOMIC undef case

This patch adds a missing DRM_MODE_ATOMIC_NONBLOCK
definiton for cases were the kernel supports atomic
modesetting but the libdrm version used does not.
Without this patch a "'DRM_MODE_ATOMIC_NONBLOCK' was
not declared in this scope" error is seen when
trying compile the library

Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com>
8 years agotestpat: show video mode Hz
Tomi Valkeinen [Tue, 12 Jan 2016 12:54:26 +0000 (14:54 +0200)]
testpat: show video mode Hz

8 years agolibkms: fix Connector::get_default_mode when no modes
Tomi Valkeinen [Tue, 12 Jan 2016 12:53:04 +0000 (14:53 +0200)]
libkms: fix Connector::get_default_mode when no modes

8 years agodb: use the configured mode, not default
Tomi Valkeinen [Mon, 7 Dec 2015 19:01:43 +0000 (21:01 +0200)]
db: use the configured mode, not default

8 years agotestpat: support interlace
Tomi Valkeinen [Mon, 7 Dec 2015 18:06:22 +0000 (20:06 +0200)]
testpat: support interlace

8 years agolibkms: add 'ilace' param for Connector::get_mode()
Tomi Valkeinen [Mon, 7 Dec 2015 18:06:09 +0000 (20:06 +0200)]
libkms: add 'ilace' param for Connector::get_mode()

8 years agoDumbFB: fix dumb buffer alloc for omap NV12
Tomi Valkeinen [Fri, 8 Jan 2016 13:54:15 +0000 (15:54 +0200)]
DumbFB: fix dumb buffer alloc for omap NV12

Dividing the bitspp with xsub works better than dividing the width, as
otherwise the buffer stride will get aligned easily quite a bit. This is
somewhat OMAP specific fix/work-around, but then, it's not clear how
NV12 buffer sizes should be calculated anyway.

8 years agoREADME: add notes about test tools
Tomi Valkeinen [Mon, 30 Nov 2015 13:33:11 +0000 (15:33 +0200)]
README: add notes about test tools

8 years agoremove lua bindings
Tomi Valkeinen [Mon, 30 Nov 2015 13:23:58 +0000 (15:23 +0200)]
remove lua bindings

8 years agoREADME: add LIBKMS_ENABLE_KMSCUBE
Tomi Valkeinen [Mon, 30 Nov 2015 13:22:36 +0000 (15:22 +0200)]
README: add LIBKMS_ENABLE_KMSCUBE

8 years agoremove the old cmdoptions.h
Tomi Valkeinen [Thu, 26 Nov 2015 16:08:29 +0000 (18:08 +0200)]
remove the old cmdoptions.h

8 years agokmsprint: use the new option parser
Tomi Valkeinen [Thu, 26 Nov 2015 16:07:36 +0000 (18:07 +0200)]
kmsprint: use the new option parser

8 years agotestpat: big rewrite
Tomi Valkeinen [Wed, 18 Nov 2015 20:15:43 +0000 (22:15 +0200)]
testpat: big rewrite

8 years agolibkmstest: add Option & OptionSet
Tomi Valkeinen [Sun, 25 Oct 2015 19:10:14 +0000 (21:10 +0200)]
libkmstest: add Option & OptionSet

8 years agoDumbFB: don't unmap if not mapped
Tomi Valkeinen [Thu, 26 Nov 2015 09:32:27 +0000 (11:32 +0200)]
DumbFB: don't unmap if not mapped

8 years agoMerge branch 'kmscube'
Tomi Valkeinen [Wed, 18 Nov 2015 20:50:40 +0000 (22:50 +0200)]
Merge branch 'kmscube'

8 years agoAdd kmscube
Tomi Valkeinen [Fri, 2 Oct 2015 18:34:50 +0000 (21:34 +0300)]
Add kmscube

8 years agokmstest: remove unused color_convert
Tomi Valkeinen [Wed, 18 Nov 2015 20:47:36 +0000 (22:47 +0200)]
kmstest: remove unused color_convert

8 years agofix pykms
Tomi Valkeinen [Wed, 18 Nov 2015 20:47:21 +0000 (22:47 +0200)]
fix pykms

8 years agoCard: support opening specific drm device
Tomi Valkeinen [Wed, 18 Nov 2015 20:09:11 +0000 (22:09 +0200)]
Card: support opening specific drm device

8 years agoFb: collect fbs and destroy them in card's destructor
Tomi Valkeinen [Tue, 17 Nov 2015 21:39:57 +0000 (23:39 +0200)]
Fb: collect fbs and destroy them in card's destructor

8 years agoConnector: prettier connector names
Tomi Valkeinen [Fri, 13 Nov 2015 20:18:33 +0000 (22:18 +0200)]
Connector: prettier connector names

8 years agoConnector: add get_mode(xres, yres, refresh)
Tomi Valkeinen [Fri, 13 Nov 2015 17:26:02 +0000 (19:26 +0200)]
Connector: add get_mode(xres, yres, refresh)

8 years agoVideomode cleanup
Tomi Valkeinen [Fri, 13 Nov 2015 17:24:52 +0000 (19:24 +0200)]
Videomode cleanup

8 years agolibkmstest: disable draw perf prints
Tomi Valkeinen [Fri, 13 Nov 2015 12:55:35 +0000 (14:55 +0200)]
libkmstest: disable draw perf prints

8 years agolibkmstest: add EXIT()
Tomi Valkeinen [Thu, 12 Nov 2015 19:48:35 +0000 (21:48 +0200)]
libkmstest: add EXIT()

8 years agolibkmstest: add FAIL()
Tomi Valkeinen [Thu, 12 Nov 2015 19:33:34 +0000 (21:33 +0200)]
libkmstest: add FAIL()

8 years agodumbfb: move prime_fd() and fix its return type
Tomi Valkeinen [Thu, 12 Nov 2015 18:20:04 +0000 (20:20 +0200)]
dumbfb: move prime_fd() and fix its return type

8 years agodumbfb: lazy mmap
Tomi Valkeinen [Sat, 31 Oct 2015 10:40:00 +0000 (12:40 +0200)]
dumbfb: lazy mmap

8 years agoconnector: consider UNKNOWNCONNECTION as connected
Tomi Valkeinen [Fri, 13 Nov 2015 12:20:27 +0000 (14:20 +0200)]
connector: consider UNKNOWNCONNECTION as connected

8 years agolibkms++: dumbframebuffer: Get file descriptor for the FB
Peter Ujfalusi [Mon, 26 Oct 2015 13:05:31 +0000 (15:05 +0200)]
libkms++: dumbframebuffer: Get file descriptor for the FB

v4l linux needs file descriptor instead of handle.

8 years agocard: fix has_atomic if libdrm does not have atomic support
Tomi Valkeinen [Wed, 11 Nov 2015 18:50:55 +0000 (20:50 +0200)]
card: fix has_atomic if libdrm does not have atomic support

If libdrm was missing DRM_CLIENT_CAP_ATOMIC, but the driver still
supported atomic modesetting, m_has_atomic was set to true. The end
result was that test apps thought they can use atomic modesetting, but
it wasn't functional in the libkmsxx.

8 years agodb: print slowest frame time
Tomi Valkeinen [Wed, 11 Nov 2015 18:24:10 +0000 (20:24 +0200)]
db: print slowest frame time

8 years agoAtomicReq: use nonblocking commit
Tomi Valkeinen [Wed, 11 Nov 2015 18:22:49 +0000 (20:22 +0200)]
AtomicReq: use nonblocking commit

8 years agopixelformat: add undefined
Tomi Valkeinen [Wed, 28 Oct 2015 20:18:23 +0000 (22:18 +0200)]
pixelformat: add undefined

8 years agodumbfb: improve exception texts
Tomi Valkeinen [Sat, 31 Oct 2015 07:09:14 +0000 (09:09 +0200)]
dumbfb: improve exception texts

8 years agoremove print_short
Tomi Valkeinen [Fri, 6 Nov 2015 20:24:35 +0000 (22:24 +0200)]
remove print_short

8 years agocard: use object vectors
Tomi Valkeinen [Fri, 6 Nov 2015 20:19:44 +0000 (22:19 +0200)]
card: use object vectors

8 years agocard: use vectors with get_xxxs() methods
Tomi Valkeinen [Fri, 6 Nov 2015 20:15:07 +0000 (22:15 +0200)]
card: use vectors with get_xxxs() methods

8 years agocard: collect obs to vectors
Tomi Valkeinen [Fri, 6 Nov 2015 20:08:23 +0000 (22:08 +0200)]
card: collect obs to vectors

8 years agocard: add get_plane()
Tomi Valkeinen [Fri, 6 Nov 2015 19:55:11 +0000 (21:55 +0200)]
card: add get_plane()

8 years agocard: add get_crtcs()
Tomi Valkeinen [Fri, 6 Nov 2015 19:54:15 +0000 (21:54 +0200)]
card: add get_crtcs()

8 years agoAdd AR24 & AB24 formats
Tomi Valkeinen [Thu, 29 Oct 2015 22:38:06 +0000 (00:38 +0200)]
Add AR24 & AB24 formats

8 years agoadd missing <stdexcept> includes
Tomi Valkeinen [Fri, 30 Oct 2015 21:05:47 +0000 (23:05 +0200)]
add missing <stdexcept> includes

8 years agodb: disable plane support for now
Tomi Valkeinen [Thu, 29 Oct 2015 09:11:57 +0000 (11:11 +0200)]
db: disable plane support for now

8 years agoExtFramebuffer: add alternative constructor
Tomi Valkeinen [Wed, 14 Oct 2015 14:27:34 +0000 (17:27 +0300)]
ExtFramebuffer: add alternative constructor

8 years agoadd Card::get_connector(id)
Tomi Valkeinen [Wed, 14 Oct 2015 14:23:27 +0000 (17:23 +0300)]
add Card::get_connector(id)

8 years agodumbfb: add offset
Tomi Valkeinen [Mon, 26 Oct 2015 15:35:55 +0000 (17:35 +0200)]
dumbfb: add offset

8 years agodumbfb: add num_planes
Tomi Valkeinen [Mon, 26 Oct 2015 15:33:29 +0000 (17:33 +0200)]
dumbfb: add num_planes

8 years agodumbfb: expose handle
Tomi Valkeinen [Mon, 26 Oct 2015 11:12:18 +0000 (13:12 +0200)]
dumbfb: expose handle

8 years agopykms: add iact.py
Tomi Valkeinen [Fri, 23 Oct 2015 20:38:17 +0000 (23:38 +0300)]
pykms: add iact.py

8 years agopykms: use -builtin
Tomi Valkeinen [Fri, 23 Oct 2015 20:37:06 +0000 (23:37 +0300)]
pykms: use -builtin

8 years agopykms: add swig vectors for basic libkms types
Tomi Valkeinen [Fri, 23 Oct 2015 20:12:27 +0000 (23:12 +0300)]
pykms: add swig vectors for basic libkms types

8 years agoREADME: add env variables
Tomi Valkeinen [Thu, 22 Oct 2015 07:21:03 +0000 (10:21 +0300)]
README: add env variables

8 years agoAdd tests/kmsprint
Jyri Sarha [Tue, 20 Oct 2015 14:00:10 +0000 (17:00 +0300)]
Add tests/kmsprint

8 years agotests/testpat: Add -m flag
Jyri Sarha [Tue, 20 Oct 2015 13:56:42 +0000 (16:56 +0300)]
tests/testpat: Add -m flag

8 years agoAdd simple command line option parser and a tester for it
Jyri Sarha [Tue, 20 Oct 2015 13:55:13 +0000 (16:55 +0300)]
Add simple command line option parser and a tester for it

8 years agolibkms++/property: Add const std::string to_str(uint64_t val) const
Jyri Sarha [Tue, 20 Oct 2015 13:50:57 +0000 (16:50 +0300)]
libkms++/property: Add const std::string to_str(uint64_t val) const

8 years agolibkms++/drmobject: Add const std::map<uint32_t, uint64_t>& get_prop_map() const
Jyri Sarha [Tue, 20 Oct 2015 13:48:58 +0000 (16:48 +0300)]
libkms++/drmobject: Add const std::map<uint32_t, uint64_t>& get_prop_map() const

8 years agolibkms++/plane: Add methods for getting details of the DRM object
Jyri Sarha [Tue, 20 Oct 2015 13:48:08 +0000 (16:48 +0300)]
libkms++/plane: Add methods for getting details of the DRM object

8 years agolibkms++/encoder: Add methods for getting details of the DRM object
Jyri Sarha [Tue, 20 Oct 2015 13:47:46 +0000 (16:47 +0300)]
libkms++/encoder: Add methods for getting details of the DRM object

8 years agolibkms++/crtc: Add methods for getting details of the DRM object
Jyri Sarha [Tue, 20 Oct 2015 13:47:11 +0000 (16:47 +0300)]
libkms++/crtc: Add methods for getting details of the DRM object

8 years agolibkms++/connector: Add methods for getting details of the DRM object
Jyri Sarha [Tue, 20 Oct 2015 13:46:01 +0000 (16:46 +0300)]
libkms++/connector: Add methods for getting details of the DRM object

8 years agolibkms++/pixelformats.h: Add static inline std::string PixelFormatToFourCC(PixelFormat f)
Jyri Sarha [Tue, 20 Oct 2015 13:49:40 +0000 (16:49 +0300)]
libkms++/pixelformats.h: Add static inline std::string PixelFormatToFourCC(PixelFormat f)

8 years agodb: use a plane
Tomi Valkeinen [Sat, 10 Oct 2015 19:53:35 +0000 (22:53 +0300)]
db: use a plane

8 years agodb: refactor
Tomi Valkeinen [Sat, 10 Oct 2015 19:39:33 +0000 (22:39 +0300)]
db: refactor

8 years agoadd CMY and WB to test pattern
Tomi Valkeinen [Sat, 10 Oct 2015 19:04:56 +0000 (22:04 +0300)]
add CMY and WB to test pattern

8 years agodb: print fps
Tomi Valkeinen [Fri, 9 Oct 2015 12:16:13 +0000 (15:16 +0300)]
db: print fps

8 years agoadd kmsview
Tomi Valkeinen [Fri, 9 Oct 2015 09:34:23 +0000 (12:34 +0300)]
add kmsview

8 years agolibkms: Add Plane::supports_format
Tomi Valkeinen [Fri, 9 Oct 2015 09:32:38 +0000 (12:32 +0300)]
libkms: Add Plane::supports_format

8 years agoTODO: remove YUV bug
Tomi Valkeinen [Thu, 8 Oct 2015 20:00:33 +0000 (23:00 +0300)]
TODO: remove YUV bug

8 years agotestpat: add NV12/NV21 support
Tomi Valkeinen [Thu, 8 Oct 2015 19:56:14 +0000 (22:56 +0300)]
testpat: add NV12/NV21 support

8 years agotestpat: rewrite the pixel drawing
Tomi Valkeinen [Thu, 8 Oct 2015 19:37:33 +0000 (22:37 +0300)]
testpat: rewrite the pixel drawing

8 years agotestpat: cleanup and fix drawing yuv pixels
Tomi Valkeinen [Thu, 8 Oct 2015 19:17:00 +0000 (22:17 +0300)]
testpat: cleanup and fix drawing yuv pixels

8 years agoAdd support for YVYU and VYUY
Tomi Valkeinen [Thu, 8 Oct 2015 16:12:24 +0000 (19:12 +0300)]
Add support for YVYU and VYUY

8 years agoFix exception string.
Jyri Sarha [Fri, 2 Oct 2015 09:55:44 +0000 (12:55 +0300)]
Fix exception string.

8 years agolibkmstest: cleanup colors and add xbgr8888 support
Tomi Valkeinen [Wed, 7 Oct 2015 07:30:23 +0000 (10:30 +0300)]
libkmstest: cleanup colors and add xbgr8888 support

8 years agoAdd XBGR8888 format
Tomi Valkeinen [Wed, 7 Oct 2015 07:29:51 +0000 (10:29 +0300)]
Add XBGR8888 format

8 years agodon't enable lua by default
Tomi Valkeinen [Tue, 6 Oct 2015 17:58:57 +0000 (20:58 +0300)]
don't enable lua by default

8 years agotest: FAIL_IF & ASSERT cleanup
Tomi Valkeinen [Tue, 6 Oct 2015 17:57:07 +0000 (20:57 +0300)]
test: FAIL_IF & ASSERT cleanup

8 years agoTODO: cleanup done items
Tomi Valkeinen [Mon, 5 Oct 2015 18:35:02 +0000 (21:35 +0300)]
TODO: cleanup done items

8 years agoDumbFB: clean up format_info code
Tomi Valkeinen [Sat, 3 Oct 2015 20:33:27 +0000 (23:33 +0300)]
DumbFB: clean up format_info code

8 years agouse PixelFormat all around
Tomi Valkeinen [Sat, 3 Oct 2015 20:29:18 +0000 (23:29 +0300)]
use PixelFormat all around

8 years agoadd PixelFormat support to DumbFramebuffer
Tomi Valkeinen [Sat, 3 Oct 2015 20:26:58 +0000 (23:26 +0300)]
add PixelFormat support to DumbFramebuffer

8 years agoadd PixelFormat
Tomi Valkeinen [Sat, 3 Oct 2015 20:26:06 +0000 (23:26 +0300)]
add PixelFormat

8 years agouse strings instead of char*
Tomi Valkeinen [Sat, 3 Oct 2015 19:52:46 +0000 (22:52 +0300)]
use strings instead of char*

8 years agopy: add db test
Tomi Valkeinen [Sat, 3 Oct 2015 18:14:55 +0000 (21:14 +0300)]
py: add db test

8 years agodb: use PageFlipHandler
Tomi Valkeinen [Sat, 3 Oct 2015 18:13:44 +0000 (21:13 +0300)]
db: use PageFlipHandler

8 years agoadd PageFlipHandler
Tomi Valkeinen [Sat, 3 Oct 2015 18:13:06 +0000 (21:13 +0300)]
add PageFlipHandler

8 years agodb: cleanup atomic req use
Tomi Valkeinen [Sat, 3 Oct 2015 18:26:25 +0000 (21:26 +0300)]
db: cleanup atomic req use

8 years agoatomicreq: add a shortcut
Tomi Valkeinen [Sat, 3 Oct 2015 18:24:34 +0000 (21:24 +0300)]
atomicreq: add a shortcut

8 years agocard: use string for get_prop()
Tomi Valkeinen [Sat, 3 Oct 2015 18:23:44 +0000 (21:23 +0300)]
card: use string for get_prop()

8 years agocleanup connector strings
Tomi Valkeinen [Sat, 3 Oct 2015 15:05:55 +0000 (18:05 +0300)]
cleanup connector strings

8 years agoConnector: store current encoder instead of crtc
Tomi Valkeinen [Sat, 3 Oct 2015 14:54:37 +0000 (17:54 +0300)]
Connector: store current encoder instead of crtc

Also fixes a crash when there is no current encoder

8 years agosave & restore mode
Tomi Valkeinen [Fri, 2 Oct 2015 20:23:54 +0000 (23:23 +0300)]
save & restore mode

8 years agouse friend class and hide methods
Tomi Valkeinen [Sat, 3 Oct 2015 08:27:26 +0000 (11:27 +0300)]
use friend class and hide methods

8 years agoAdd DrmObject::set_id()
Tomi Valkeinen [Sat, 3 Oct 2015 14:45:41 +0000 (17:45 +0300)]
Add DrmObject::set_id()

8 years agolibkmstest: cleanup headers
Tomi Valkeinen [Fri, 2 Oct 2015 19:19:51 +0000 (22:19 +0300)]
libkmstest: cleanup headers

8 years agolibkmstest: move color bar code to libkmstest
Tomi Valkeinen [Fri, 2 Oct 2015 19:03:51 +0000 (22:03 +0300)]
libkmstest: move color bar code to libkmstest

8 years agolibkmstest: add FAIL_IF()
Tomi Valkeinen [Fri, 2 Oct 2015 18:34:38 +0000 (21:34 +0300)]
libkmstest: add FAIL_IF()