summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wayland: Add wl_drm listener immediately upon bindv1.8-branchPhilipp Kerling2017-11-171-7/+10
| | | | | | | | | | | | Events on wl_drm could get lost if the listener is bound only after the roundtrip is complete. While it is correct that to get all wl_drm events at most two roundtrips are required, in fact one roundtrip may be enough if another thread flushes and reads from the connection in parallel to the initial libva wl_registry roundtrip. It is thus too late to call wl_drm_add_listener after the roundtrip. Fixes: #101 (cherry picked from commit 9ca99eb84cdb6ea638af567f6074c53fa51a416c)
* wayland: Implement registry remove handlerPhilipp Kerling2017-11-171-3/+20
| | | | | | | | | | | | | | | Wayland event handlers are never optional. libwayland-client will abort the program if events for unbound handlers are to be dispatched. Although the event queue is only dispatched a few times during initialization for getting the wl_drm global and authenticating the DRM device, in rare circumstances it can happen that another global such as a wl_output - or even wl_drm itself - is removed during that time, which would crash the program. Implement the handler to fix this. Fixes: #99 Signed-off-by: Philipp Kerling <pkerling@casix.org> (cherry picked from commit 62affbb44b771931a8895fc7428df23afb888750)
* wayland: Immediately destroy wl_* objects when DRM device is authenticatedPhilipp Kerling2017-11-171-29/+50
| | | | | | | | | | | | | | | The Wayland protocol is only used to determine which device driver to load and initialize the DRM state. After the initial roundtrips that open and authenticate the DRM device, the Wayland protocol objects are not used anymore and will only take up memory and possibly have events queued that never get handled. As fix, destroy them immediately after DRM auth is through. This commit also adds more error checking to the initialization function. Fixes: #100 Signed-off-by: Philipp Kerling <pkerling@casix.org> (cherry picked from commit 324a725e5068a538e2446b0b73cccb3c119f3d8b)
* wayland: Do not rely on external library for wl_drm_interfacePhilipp Kerling2017-11-174-33/+20
| | | | | | | | | | Doing the runtime lookup is error-prone (as indicated in the code already by the two library names) and not necessary at all. Just compile wl_drm_interface as part of libva which is the usual way to use extra Wayland protocols. Care must be taken as to not accidentally export the symbol though. (cherry picked from commit c26a187cdff82dc5a360676ef05e6f6d761c2a0a)
* wayland: Also support wl_drm version 1Philipp Kerling2017-11-171-1/+5
| | | | | | | | | Just using version 2 without checking would lead to a protocol error bringing down the entire application, and wl_drm version 1 is still supported since v2 only adds PRIME capabilities. Signed-off-by: Philipp Kerling <pkerling@casix.org> (cherry picked from commit 83fcb107ad01ee6acc558b736b12db6bea6f7d2f)
* Bump wayland-client dependency to 1.11.0Philipp Kerling2017-11-171-1/+2
| | | | | Signed-off-by: Philipp Kerling <pkerling@casix.org> (cherry picked from commit 6ce91ae201d0320664bb1d440973e57f6acee017)
* wayland: Use private event queue for compositor communicationPhilipp Kerling2017-11-171-10/+69
| | | | | | | | | | | | (Ab)using the default queue that the application might itself use already and work on in parallel to initializing libva is not thread-safe. Make it thread-safe by setting a private queue on a wrapped wl_display. Also print some more error messages in case things go wrong. Signed-off-by: Philipp Kerling <pkerling@casix.org> Signed-off-by: Olivier Crete <olivier.crete@collabora.com> (cherry picked from commit ce938c3bd53c6572c71cbd98a6b7de69db24276b)
* wayland: Cleanup wl_registry in va_wayland_drm_destroyPhilipp Kerling2017-11-171-0/+5
| | | | | | Signed-off-by: Philipp Kerling <pkerling@casix.org> Signed-off-by: Olivier Crete <olivier.crete@collabora.com> (cherry picked from commit e50d1074997c3acfc26cb2d3382ec659988f51f4)
* wayland: Fix uninitialized registryPhilipp Kerling2017-11-171-0/+1
| | | | | Signed-off-by: Philipp Kerling <pkerling@casix.org> (cherry picked from commit 0d9a919c654022ab39faa4a58f54288929e128a0)
* Added a libva_version variable to libva.pc.inLim Siew Hoon2017-08-161-0/+1
| | | | | | | Fixes #95 Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> (cherry picked from commit a750c6cbbddf4b64e0547f5995d19d1697d6f26d)
* configure fails if requirement can't be met for user's explicit requestXiang, Haihao2017-08-162-18/+38
| | | | | | | | | | | | | | | Notify user an error if user provides --enable-x11/--enable-glx/--enable-egl/--enable-wayland however the requirement can't be met. drm has been checked mandatorily in the script v2: Remove XEXT_CFLAGS/XFIXES_CFLAGS from va/x11/Makefile.am and use $X11_PKG_ERRORS in the error message if the requirement is met for VA/X11 This fixes https://github.com/01org/libva/issues/68 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Reviewed-by: U. Artie Eoff <ullysses.a.eoff@intel.com> (cherry picked from commit b9a72b9d8ca14e159a67c368d966ed6276f49bc9)
* libva 1.8.3libva-1.8.31.8.3Xiang, Haihao2017-06-282-3/+3
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Update NEWS1.8.3.pre1Xiang, Haihao2017-06-121-1/+9
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Add va_MessagingInit().Giuseppe2017-06-121-0/+20
| | | | | | | | | | | | | Previous to this commit, changing verbosity level was only possible at build time via the definition of ENABLE_VA_MESSAGING. Now it's possible to choose a verbosity level between {0, 1, 2} by modifying /etc/libva.conf or by setting the corresponding environment variable LIBVA_MESSAGING_LEVEL. Signed-off-by: Giuseppe <giuscri@gmail.com> (cherry picked from commit b4d0874dcbe99d1f47bd39d0c156ea89ecd0ebcc)
* Fix small typos.Giuseppe2017-06-121-6/+6
| | | | | | | | | /etc/libav.conf was spelled incorrectly, some lines were bad indented because of mixed tabs and spaces. Signed-off-by: Giuseppe <giuscri@gmail.com> (cherry picked from commit 5f93344df466a81ba1388ae6802bb55d1fbad0b2)
* Avoid assertion fault when trying to draw a big pictureXiang, Haihao2017-06-121-1/+0
| | | | | | | | | | | | The display server doesn't support the big picture, so the returned buffer is NULL. The fix returns a NULL buffer instead of assertion fault in libva-x11, the backend driver should handle this case in a right way as well. This fixes https://github.com/01org/libva/issues/51 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit e4072fb1f2cccb468fc84c67c5c51e649affec48)
* Remove the dummy driverXiang, Haihao2017-06-127-1729/+1
| | | | | | | | | No one is interested in this dummy driver and it is not maintained. This fixes https://github.com/01org/libva/issues/28 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 61785ae8eead50bfe785b5cbaacf42a49e1d0fd3)
* README.md: update Slack Team invite URLU. Artie Eoff2017-06-121-1/+1
| | | | | Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> (cherry picked from commit ad40e9b13edc0675368ce87eec73d77daa7f139c)
* android: move libva-android to /vendorChih-Wei Huang2017-06-121-0/+1
| | | | | | | This was missed in the previous commit bed97ef. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit 7d012d079aa1cd76b48cdb0bc4b6ee4227d2550c)
* android: remove rules of unnecessary librariesChih-Wei Huang2017-06-121-36/+0
| | | | | | | Both libva-tpi and libva-egl should not be used any more. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit 52a8af0d3dd19ec2313b43100022ff22fb61283d)
* android: open renderD128 by defaultXu Guangxin2017-06-121-1/+1
| | | | | | | if we open card0, we need be a root to call I915_PARAM_CHIPSET_ID, but mediaservice's owner is not root, open renderD128 will fix this. (cherry picked from commit b1aa5568ad619eb5f526f653a15154c03f3bcb87)
* va_trace: add traces for MB rate control/temporal layerJun Zhao2017-06-121-0/+2
| | | | | | | | add trace information for mb_rate_control/temporal_id in VAEncMiscParameterRateControl Signed-off-by: Jun Zhao <jun.zhao@intel.com> (cherry picked from commit 9458fd8893919633e4fe146cafcf339ffbc3c8ae)
* Add the suffix_str back into the tracing file namepeng.chen2017-06-121-1/+1
| | | | | | Fix #44 (cherry picked from commit bd949b77e8f0226a746b5fc2002b01a0e9ea1f2e)
* android: change VA_DRIVERS_PATH to /vendorChih-Wei Huang2017-06-121-2/+2
| | | | | Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit 63e14fc10177f88fb1350681120b4bce15ea81a7)
* android: move the libraries to /vendorChih-Wei Huang2017-06-121-0/+1
| | | | | Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit bed97efad515ebb904f5c5a62adba2c2517813e2)
* Remove the unnecessary exec bitChih-Wei Huang2017-06-122-0/+0
| | | | | | | These files are not executables. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit 8352ab917198e8034461d068266d4e5437d16d7c)
* android: change libva drivers pathChih-Wei Huang2017-06-121-2/+2
| | | | | | | Use the path similar to linux desktop. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit a42e50357d6b76a949641ed6c7f9557e2867be60)
* android: enable logging except the user buildChih-Wei Huang2017-06-121-1/+3
| | | | | Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit cffbd24dd227d3552f2f025276afae21c0168a54)
* android: simplify Android loggingChih-Wei Huang2017-06-122-18/+12
| | | | | | | To support older versions, just check if ALOGx are defined. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit 340d99b62600c1f86eabdefbfa778559d5ac5a7c)
* android: remove redundant -DANDROIDChih-Wei Huang2017-06-121-5/+3
| | | | | | | It has already been defined by the Android build system. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit 9d345be87f9e163d054449d363659a60e2f3867f)
* android: use LOCAL_EXPORT_C_INCLUDE_DIRS to get include pathsChih-Wei Huang2017-06-121-43/+5
| | | | | | | | | | | The documents of Android build system explicitly said LOCAL_COPY_HEADERS and LOCAL_COPY_HEADERS_TO are deprecated. Replace them by the LOCAL_EXPORT_C_INCLUDE_DIRS variable. The modules that use libva will get the include path automatically. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit 0f021eb30657fbcf8c46e9585ea975a317263fd5)
* android: fix the rules to generate va_version.hChih-Wei Huang2017-06-121-5/+7
| | | | | | | | | | Android source tree has to be read-only. The generated files should be put to the $(OUT)/gen/ dir. Besides, LOCAL_GENERATED_SOURCES must be set before include $(BUILD_SHARED_LIBRARY). Otherwise it has no effect. Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> (cherry picked from commit cfcd7c5e1a65a08b36ae3114f7248f5fb92ed64b)
* libva: change to use ANativeWindowLinda Yu2017-06-122-3/+4
| | | | | | | | Jira: https://01.org/jira/browser/AIA-65 Test: vainfo Signed-off-by: Linda Yu <linda.yu@intel.com> (cherry picked from commit db9288557511698bba192ac0cf084c00bcc1fd7f)
* Fix links formatting in CONTRIBUTING.mdAndrey Maslennikov2017-06-121-3/+3
| | | | (cherry picked from commit 40a735d61e2c2ec8a9e97e2a555b0e7f94507d27)
* Fix heading in README.mdAndrey Maslennikov2017-06-121-1/+1
| | | | (cherry picked from commit b120e839fbe31267b8c721d3e12fa6d364c15d6d)
* Bump libva to 1.8.3.pre1 for developmentXiang, Haihao2017-06-121-2/+2
| | | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 5899f5af136136ea9b3ad7a140f22c2666a7d81f)
* libva 1.8.2libva-1.8.21.8.2Xiang, Haihao2017-05-222-3/+3
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* libva 1.8.2.pre11.8.2.pre1Xiang, Haihao2017-05-152-3/+6
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* libva 1.8.1libva-1.8.11.8.1Xiang, Haihao2017-04-102-3/+3
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* libva 1.8.1.pre11.8.1.pre1Xiang, Haihao2017-04-062-3/+6
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* libva 1.8.0libva-1.8.01.8.0Xiang, Haihao2017-03-312-3/+3
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* libva 1.8.0.pre31.8.0.pre3Xiang, Haihao2017-03-271-1/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* libva 1.8.0.pre21.8.0.pre2Xiang, Haihao2017-03-161-1/+1
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* Update NEWS for 1.8.0.pre11.8.0.pre1Xiang, Haihao2017-03-061-2/+11
| | | | Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
* wayland: Don't commit and ship generated filesJussi Kukkonen2017-02-243-291/+7
| | | | | | | | | | | | | | | I believe shipping wayland-drm-client-protocol.h is wrong: The header should always be generated by the wayland-scanner that matches the runtime wayland version. Currently when someone clones the repo and builds, the shipped version is used. Remove wayland-drm-client-protocol.h from source tree, modify the build so the header is considered a built source file, and make configure fail if wayland is enabled but wayland-scanner is not found. Fixes #34. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
* Wayland-drm: Fix not finding wl_drm_interface on systems with libglvndHans de Goede2017-02-151-3/+9
| | | | | | | | | | We do not want just any libEGL.so.1 we want mesa's libEGL.so.1 as that is the only way which defines the wl_drm_interface symbol we need, one systems with libglvnd libEGL.so.1 is a dispatcher library provided by libglvnd and the actual mesa libEGL we want is named libEGL_mesa.so.0 so try that first. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* drm: Add mapping of amdgpu kernel driver to radeonsi Mesa driverMark Thompson2017-02-061-0/+1
| | | | | | Fixes #24. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* drm: Fix Mesa driver namesMark Thompson2017-02-061-2/+2
| | | | | | | | | | The use of "gallium" as the driver name was removed in Mesa commit 0c0f841e5de27d01312f8857641668ca439b1ab1. This updates the mapping to use the individual driver names. Fixes #25. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* config: Add va_messaging flagSean V Kelley2017-02-062-0/+15
| | | | | | | | on by default, but allows optional disabling. fixes #21 Signed-off-by: Sean V Kelley <seanvk@posteo.de>
* Merge pull request #19 from seanvk/remove_debiancontrolSean V. Kelley2017-02-0117-255/+1
|\ | | | | debian: Remove legacy packaging