| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Signed-off-by: Philipp Kerling <pkerling@casix.org>
(cherry picked from commit 6ce91ae201d0320664bb1d440973e57f6acee017)
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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)
|
|
|
|
|
|
| |
Signed-off-by: Philipp Kerling <pkerling@casix.org>
Signed-off-by: Olivier Crete <olivier.crete@collabora.com>
(cherry picked from commit e50d1074997c3acfc26cb2d3382ec659988f51f4)
|
|
|
|
|
| |
Signed-off-by: Philipp Kerling <pkerling@casix.org>
(cherry picked from commit 0d9a919c654022ab39faa4a58f54288929e128a0)
|
|
|
|
|
|
|
| |
Fixes #95
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
(cherry picked from commit a750c6cbbddf4b64e0547f5995d19d1697d6f26d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
| |
/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)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
(cherry picked from commit ad40e9b13edc0675368ce87eec73d77daa7f139c)
|
|
|
|
|
|
|
| |
This was missed in the previous commit bed97ef.
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit 7d012d079aa1cd76b48cdb0bc4b6ee4227d2550c)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
Fix #44
(cherry picked from commit bd949b77e8f0226a746b5fc2002b01a0e9ea1f2e)
|
|
|
|
|
| |
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit 63e14fc10177f88fb1350681120b4bce15ea81a7)
|
|
|
|
|
| |
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit bed97efad515ebb904f5c5a62adba2c2517813e2)
|
|
|
|
|
|
|
| |
These files are not executables.
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit 8352ab917198e8034461d068266d4e5437d16d7c)
|
|
|
|
|
|
|
| |
Use the path similar to linux desktop.
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit a42e50357d6b76a949641ed6c7f9557e2867be60)
|
|
|
|
|
| |
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit cffbd24dd227d3552f2f025276afae21c0168a54)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
| |
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 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)
|
|
|
|
|
|
|
|
| |
Jira: https://01.org/jira/browser/AIA-65
Test: vainfo
Signed-off-by: Linda Yu <linda.yu@intel.com>
(cherry picked from commit db9288557511698bba192ac0cf084c00bcc1fd7f)
|
|
|
|
| |
(cherry picked from commit 40a735d61e2c2ec8a9e97e2a555b0e7f94507d27)
|
|
|
|
| |
(cherry picked from commit b120e839fbe31267b8c721d3e12fa6d364c15d6d)
|
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 5899f5af136136ea9b3ad7a140f22c2666a7d81f)
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
| |
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Fixes #24.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
on by default, but allows optional disabling.
fixes #21
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
|
|\
| |
| | |
debian: Remove legacy packaging
|