OSDN Git Service

android-x86/hardware-intel-common-libva.git
6 years agoupdate VAEncMacroblockParameterBufferH264
Xiang, Haihao [Thu, 1 Jun 2017 07:49:46 +0000 (15:49 +0800)]
update VAEncMacroblockParameterBufferH264

The type of bits should be a struct type, otherwise the flags in bits
will be impacted each other.

In addtion this adds a reserved byte to bits struct in inter_fields,
this should fix https://github.com/01org/libva/issues/35

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoFix a typo in VAConfigAttribValEncROI
Xiang, Haihao [Thu, 1 Jun 2017 07:34:41 +0000 (15:34 +0800)]
Fix a typo in VAConfigAttribValEncROI

The current delat is typo. This fix breaks API, fortunately
roi_rc_qp_delat_support isn't used widely

This fixes https://github.com/01org/libva/issues/32

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agova_egl.h: add license to file
Daniel Charles [Thu, 29 Jun 2017 20:40:09 +0000 (13:40 -0700)]
va_egl.h:  add license to file

license missing on header file.  Taken from c file

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
6 years agoNote flags which have been renamed in the H.264 standard
Mark Thompson [Thu, 22 Jun 2017 22:20:34 +0000 (23:20 +0100)]
Note flags which have been renamed in the H.264 standard

residual_colour_transform_flag and pic_order_present_flag have
different names in newer versions of the H.264 standard, so add a
comment with the new name to reduce confusion.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoDetect short reads when filling fool buffers
Mark Thompson [Mon, 19 Jun 2017 18:09:34 +0000 (19:09 +0100)]
Detect short reads when filling fool buffers

Mainly to fix the warning (glibc marks read(2) with warn_unused_result).
The function continues anyway when this happens (matching current
behaviour when the file can't be opened at all).

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoAdd namespace prefix to global DRI functions in libva-x11
Mark Thompson [Mon, 19 Jun 2017 18:09:30 +0000 (19:09 +0100)]
Add namespace prefix to global DRI functions in libva-x11

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoAdd namespace prefix to globals
Mark Thompson [Mon, 19 Jun 2017 18:09:26 +0000 (19:09 +0100)]
Add namespace prefix to globals

Add "va_" prefix to trace_flag, fool_codec and fool_postp to avoid
polluting the global namespace.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoDeprecate H.264 baseline profile and FMO support
Mark Thompson [Mon, 19 Jun 2017 18:09:23 +0000 (19:09 +0100)]
Deprecate H.264 baseline profile and FMO support

This is not now and never will be supported by any hardware, nor is
it supported by any current software.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoAdd a macro to indicate deprecation
Mark Thompson [Thu, 22 Jun 2017 22:03:15 +0000 (23:03 +0100)]
Add a macro to indicate deprecation

This will generate a warning on gcc and compatible (clang, icc),
and do nothing with other compilers.  There is a separate macro
for enum variables, because gcc did not support deprecating them
until version 6.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoMake logging callbacks library-safe
Mark Thompson [Mon, 19 Jun 2017 18:09:20 +0000 (19:09 +0100)]
Make logging callbacks library-safe

Move the logging callbacks into the display context, rather than
having them as global state.  Add user-context parameter as well so
that users can distinguish between callbacks in different instances.

The default behaviour does not change, and LIBVA_MESSAGING_LEVEL
continues to be respected in that case.

Since we're breaking API here, also rename vaMessageCallback to
VAMessageCallback to be consistent with all other types.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoMove VADisplay allocation to common code
Mark Thompson [Mon, 19 Jun 2017 18:09:16 +0000 (19:09 +0100)]
Move VADisplay allocation to common code

This is slightly cleaner, and will be required to set common
options on a newly-created display.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoMove some common macro definitions to the new internal header
Mark Thompson [Mon, 19 Jun 2017 18:09:12 +0000 (19:09 +0100)]
Move some common macro definitions to the new internal header

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoMove declarations for internal functions to new header
Mark Thompson [Mon, 19 Jun 2017 18:09:04 +0000 (19:09 +0100)]
Move declarations for internal functions to new header

The new header is internal-only and will not be installed.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoRefine the data type of slice_data_flag in VASliceParameterBufferHEVC to be consisten...
Zhao Yakui [Tue, 6 Jun 2017 00:26:20 +0000 (08:26 +0800)]
Refine the data type of slice_data_flag in VASliceParameterBufferHEVC to be consistent with other codecs

Currently the data type of slice_data_flag in VASliceParameterBufferHEVC is
uint16_t while it is uint32_t for other codecs. It is inconsistent.
As the memory is allocated as aligned, it still allocates four bytes for it.
So it will be better to use the consistent data type.

This fixes https://github.com/01org/libva/issues/58

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
6 years agolibva 2.0.0.pre1 for development
Xiang, Haihao [Thu, 1 Jun 2017 07:26:46 +0000 (15:26 +0800)]
libva 2.0.0.pre1 for development

ABI was broken in the previous versions, so we will bump the VA API version
to 1.0.0 and library version to 2.0.0 for next release. Some data
structures will be changed or removed in the next commits

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoUse a flexible array member
Xiang, Haihao [Tue, 12 Sep 2017 05:38:11 +0000 (13:38 +0800)]
Use a flexible array member

ISO C/C++ forbids zero-size array, but flexible array member is
supported since C99.

This fixes https://github.com/01org/libva/issues/76

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoBump a new VA API version
Xiang, Haihao [Tue, 22 Aug 2017 01:57:06 +0000 (09:57 +0800)]
Bump a new VA API version

Some new definitions were added for FEI, so bump a new VA API version

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoH264 FEI support
Kelvin Hu [Fri, 9 Jun 2017 02:49:40 +0000 (10:49 +0800)]
H264 FEI support

The purpose of FEI (Flexible Encoding Infrastructure) is to allow applications
to have more controls and trade off quality for speed with their own IPs. The
application can optionally provide input to ENC for extra encode control and
get the output from ENC. Application can chose to modify the ENC output/PAK
input during encoding, but the performance impact is significant.

FEI EntryPoint/BufferType/Attrib changes are in va.h, codec common
changes are in va_fei.h, va_fei_h264.h is for H264 special changes

Signed-off-by: Kelvin Hu <kelvin.hu@intel.com>
Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
6 years agoAdd support for encoding QP buffer
Sreerenj Balachandran [Wed, 12 Jul 2017 22:15:51 +0000 (15:15 -0700)]
Add support for encoding QP buffer

VAEncQPBufferH264 structure is defined to hold QP per 16x16 macroblock
for H.264 encoding, we can add similar structures for other codecs in
the future. VAEncQPBufferType is added to pass the corresponding
QP buffer to the driver for each codec.

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>
6 years agowayland: Add wl_drm listener immediately upon bind
Philipp Kerling [Wed, 16 Aug 2017 10:37:27 +0000 (12:37 +0200)]
wayland: Add wl_drm listener immediately upon bind

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

6 years agowayland: Implement registry remove handler
Philipp Kerling [Wed, 16 Aug 2017 10:37:27 +0000 (12:37 +0200)]
wayland: Implement registry remove handler

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>
6 years agowayland: Immediately destroy wl_* objects when DRM device is authenticated
Philipp Kerling [Wed, 16 Aug 2017 10:37:27 +0000 (12:37 +0200)]
wayland: Immediately destroy wl_* objects when DRM device is authenticated

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>
6 years agoMerge branch 'v1.8-branch' into master
Xiang, Haihao [Wed, 16 Aug 2017 05:06:25 +0000 (13:06 +0800)]
Merge branch 'v1.8-branch' into master

6 years agoAdded a libva_version variable to libva.pc.in
Lim Siew Hoon [Mon, 14 Aug 2017 07:35:33 +0000 (15:35 +0800)]
Added a libva_version variable to libva.pc.in

Fixes #95

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
6 years agova.h: fix comments error for arbitrary number of MBs per slice. nougat-x86 android-x86-7.1-r1 android-x86-7.1-r2 android-x86-7.1-r3 android-x86-7.1-r4 android-x86-7.1-r5
Jun Zhao [Thu, 10 Aug 2017 07:33:38 +0000 (03:33 -0400)]
va.h: fix comments error for arbitrary number of MBs per slice.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
6 years agoglx: strcmp compares chars not unsigned chars
Víctor Manuel Jáquez Leal [Wed, 9 Aug 2017 10:51:12 +0000 (12:51 +0200)]
glx: strcmp compares chars not unsigned chars

Thus, silence the warnings raising by clang-3.8 compiler.

Fixes #89

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
6 years agova_trace: remove unused variables
Víctor Manuel Jáquez Leal [Wed, 9 Aug 2017 10:47:30 +0000 (12:47 +0200)]
va_trace: remove unused variables

Remove unused variables detected by clang-3.8

Fixes #89

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
6 years agolibva 1.8.3
Xiang, Haihao [Wed, 28 Jun 2017 00:24:18 +0000 (08:24 +0800)]
libva 1.8.3

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agova_trace: add quality_level trace log
Zhong Li [Tue, 27 Jun 2017 07:20:56 +0000 (15:20 +0800)]
va_trace: add quality_level trace log

Signed-off-by: Zhong Li <zhong.li@intel.com>
6 years agoconfigure fails if requirement can't be met for user's explicit request
Xiang, Haihao [Mon, 19 Jun 2017 03:01:02 +0000 (11:01 +0800)]
configure fails if requirement can't be met for user's explicit request

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>
6 years agowayland: Do not rely on external library for wl_drm_interface
Philipp Kerling [Tue, 13 Jun 2017 10:33:27 +0000 (12:33 +0200)]
wayland: Do not rely on external library for wl_drm_interface

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.

6 years agowayland: Also support wl_drm version 1
Philipp Kerling [Tue, 13 Jun 2017 07:54:06 +0000 (09:54 +0200)]
wayland: Also support wl_drm version 1

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>
6 years agoBump wayland-client dependency to 1.11.0
Philipp Kerling [Tue, 13 Jun 2017 11:14:06 +0000 (13:14 +0200)]
Bump wayland-client dependency to 1.11.0

Signed-off-by: Philipp Kerling <pkerling@casix.org>
6 years agowayland: Use private event queue for compositor communication
Philipp Kerling [Tue, 13 Jun 2017 07:45:30 +0000 (09:45 +0200)]
wayland: Use private event queue for compositor communication

(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>
6 years agowayland: Cleanup wl_registry in va_wayland_drm_destroy
Philipp Kerling [Tue, 13 Jun 2017 07:42:40 +0000 (09:42 +0200)]
wayland: Cleanup wl_registry in va_wayland_drm_destroy

Signed-off-by: Philipp Kerling <pkerling@casix.org>
Signed-off-by: Olivier Crete <olivier.crete@collabora.com>
6 years agowayland: Fix uninitialized registry
Philipp Kerling [Tue, 13 Jun 2017 07:57:43 +0000 (09:57 +0200)]
wayland: Fix uninitialized registry

Signed-off-by: Philipp Kerling <pkerling@casix.org>
6 years agoBump libva to 1.8.4.pre1 for development
Xiang, Haihao [Mon, 12 Jun 2017 16:03:51 +0000 (00:03 +0800)]
Bump libva to 1.8.4.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoUpdate NEWS
Xiang, Haihao [Mon, 12 Jun 2017 01:53:10 +0000 (09:53 +0800)]
Update NEWS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd va_MessagingInit().
Giuseppe [Fri, 9 Jun 2017 20:07:21 +0000 (22:07 +0200)]
Add va_MessagingInit().

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)

6 years agoAdd va_MessagingInit().
Giuseppe [Fri, 9 Jun 2017 20:07:21 +0000 (22:07 +0200)]
Add va_MessagingInit().

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>
6 years agoFix small typos.
Giuseppe [Fri, 9 Jun 2017 20:04:01 +0000 (22:04 +0200)]
Fix small typos.

/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)

6 years agoFix small typos.
Giuseppe [Fri, 9 Jun 2017 20:04:01 +0000 (22:04 +0200)]
Fix small typos.

/etc/libav.conf was spelled incorrectly,
some lines were bad indented because of
mixed tabs and spaces.

Signed-off-by: Giuseppe <giuscri@gmail.com>
6 years agoAvoid assertion fault when trying to draw a big picture
Xiang, Haihao [Thu, 1 Jun 2017 15:46:18 +0000 (23:46 +0800)]
Avoid assertion fault when trying to draw a big picture

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)

6 years agoRemove the dummy driver
Xiang, Haihao [Thu, 1 Jun 2017 08:44:45 +0000 (16:44 +0800)]
Remove the dummy driver

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)

6 years agoREADME.md: update Slack Team invite URL
U. Artie Eoff [Thu, 25 May 2017 17:50:22 +0000 (10:50 -0700)]
README.md: update Slack Team invite URL

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
(cherry picked from commit ad40e9b13edc0675368ce87eec73d77daa7f139c)

6 years agoandroid: move libva-android to /vendor
Chih-Wei Huang [Mon, 8 May 2017 04:04:35 +0000 (12:04 +0800)]
android: move libva-android to /vendor

This was missed in the previous commit bed97ef.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit 7d012d079aa1cd76b48cdb0bc4b6ee4227d2550c)

6 years agoandroid: remove rules of unnecessary libraries
Chih-Wei Huang [Fri, 12 May 2017 02:15:09 +0000 (10:15 +0800)]
android: remove rules of unnecessary libraries

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)

6 years agoandroid: open renderD128 by default
Xu Guangxin [Sat, 6 May 2017 09:51:13 +0000 (05:51 -0400)]
android: open renderD128 by default

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)

6 years agova_trace: add traces for MB rate control/temporal layer
Jun Zhao [Mon, 8 May 2017 05:22:33 +0000 (13:22 +0800)]
va_trace: add traces for MB rate control/temporal layer

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)

6 years agoAdd the suffix_str back into the tracing file name
peng.chen [Tue, 2 May 2017 03:03:32 +0000 (11:03 +0800)]
Add the suffix_str back into the tracing file name

Fix #44

(cherry picked from commit bd949b77e8f0226a746b5fc2002b01a0e9ea1f2e)

6 years agoandroid: change VA_DRIVERS_PATH to /vendor
Chih-Wei Huang [Wed, 26 Apr 2017 05:32:29 +0000 (13:32 +0800)]
android: change VA_DRIVERS_PATH to /vendor

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit 63e14fc10177f88fb1350681120b4bce15ea81a7)

6 years agoandroid: move the libraries to /vendor
Chih-Wei Huang [Wed, 26 Apr 2017 05:31:00 +0000 (13:31 +0800)]
android: move the libraries to /vendor

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit bed97efad515ebb904f5c5a62adba2c2517813e2)

6 years agoRemove the unnecessary exec bit
Chih-Wei Huang [Thu, 6 Apr 2017 05:26:45 +0000 (13:26 +0800)]
Remove the unnecessary exec bit

These files are not executables.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit 8352ab917198e8034461d068266d4e5437d16d7c)

6 years agoandroid: change libva drivers path
Chih-Wei Huang [Thu, 6 Apr 2017 05:18:37 +0000 (13:18 +0800)]
android: change libva drivers path

Use the path similar to linux desktop.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit a42e50357d6b76a949641ed6c7f9557e2867be60)

6 years agoandroid: enable logging except the user build
Chih-Wei Huang [Thu, 6 Apr 2017 04:56:57 +0000 (12:56 +0800)]
android: enable logging except the user build

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
(cherry picked from commit cffbd24dd227d3552f2f025276afae21c0168a54)

6 years agoandroid: simplify Android logging
Chih-Wei Huang [Thu, 6 Apr 2017 04:01:46 +0000 (12:01 +0800)]
android: simplify Android logging

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)

6 years agoandroid: remove redundant -DANDROID
Chih-Wei Huang [Thu, 6 Apr 2017 02:45:09 +0000 (10:45 +0800)]
android: remove redundant -DANDROID

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)

6 years agoandroid: use LOCAL_EXPORT_C_INCLUDE_DIRS to get include paths
Chih-Wei Huang [Thu, 6 Apr 2017 02:27:28 +0000 (10:27 +0800)]
android: use LOCAL_EXPORT_C_INCLUDE_DIRS to get include paths

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)

6 years agoandroid: fix the rules to generate va_version.h
Chih-Wei Huang [Wed, 5 Apr 2017 10:37:01 +0000 (18:37 +0800)]
android: fix the rules to generate va_version.h

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)

6 years agolibva: change to use ANativeWindow
Linda Yu [Thu, 2 Mar 2017 06:00:54 +0000 (14:00 +0800)]
libva: change to use ANativeWindow

Jira: https://01.org/jira/browser/AIA-65
Test: vainfo

Signed-off-by: Linda Yu <linda.yu@intel.com>
(cherry picked from commit db9288557511698bba192ac0cf084c00bcc1fd7f)

6 years agoFix links formatting in CONTRIBUTING.md
Andrey Maslennikov [Wed, 19 Apr 2017 07:51:57 +0000 (10:51 +0300)]
Fix links formatting in CONTRIBUTING.md
(cherry picked from commit 40a735d61e2c2ec8a9e97e2a555b0e7f94507d27)

6 years agoFix heading in README.md
Andrey Maslennikov [Wed, 19 Apr 2017 07:50:34 +0000 (10:50 +0300)]
Fix heading in README.md
(cherry picked from commit b120e839fbe31267b8c721d3e12fa6d364c15d6d)

6 years agoBump libva to 1.8.3.pre1 for development
Xiang, Haihao [Tue, 16 May 2017 05:23:21 +0000 (13:23 +0800)]
Bump libva to 1.8.3.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 5899f5af136136ea9b3ad7a140f22c2666a7d81f)

6 years agoAvoid assertion fault when trying to draw a big picture
Xiang, Haihao [Thu, 1 Jun 2017 15:46:18 +0000 (23:46 +0800)]
Avoid assertion fault when trying to draw a big picture

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>
6 years agoRemove the dummy driver
Xiang, Haihao [Thu, 1 Jun 2017 08:44:45 +0000 (16:44 +0800)]
Remove the dummy driver

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>
6 years agoREADME.md: update Slack Team invite URL
U. Artie Eoff [Thu, 25 May 2017 17:50:22 +0000 (10:50 -0700)]
README.md: update Slack Team invite URL

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
6 years agolibva 1.8.2
Xiang, Haihao [Mon, 22 May 2017 15:13:39 +0000 (23:13 +0800)]
libva 1.8.2

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoBump libva to 1.8.3.pre1 for development
Xiang, Haihao [Tue, 16 May 2017 05:23:21 +0000 (13:23 +0800)]
Bump libva to 1.8.3.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agolibva 1.8.2.pre1
Xiang, Haihao [Mon, 15 May 2017 07:19:56 +0000 (15:19 +0800)]
libva 1.8.2.pre1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoandroid: move libva-android to /vendor
Chih-Wei Huang [Mon, 8 May 2017 04:04:35 +0000 (12:04 +0800)]
android: move libva-android to /vendor

This was missed in the previous commit bed97ef.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: remove rules of unnecessary libraries
Chih-Wei Huang [Fri, 12 May 2017 02:15:09 +0000 (10:15 +0800)]
android: remove rules of unnecessary libraries

Both libva-tpi and libva-egl should not be used any more.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: open renderD128 by default
Xu Guangxin [Sat, 6 May 2017 09:51:13 +0000 (05:51 -0400)]
android: open renderD128 by default

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.

7 years agova_trace: add traces for MB rate control/temporal layer
Jun Zhao [Mon, 8 May 2017 05:22:33 +0000 (13:22 +0800)]
va_trace: add traces for MB rate control/temporal layer

add trace information for mb_rate_control/temporal_id in
VAEncMiscParameterRateControl

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
7 years agoAdd the suffix_str back into the tracing file name
peng.chen [Tue, 2 May 2017 03:03:32 +0000 (11:03 +0800)]
Add the suffix_str back into the tracing file name

Fix #44

7 years agoMerge pull request #37 from cwhuang/master
Xiang, Haihao [Tue, 2 May 2017 02:46:27 +0000 (10:46 +0800)]
Merge pull request #37 from cwhuang/master

A series patches for Android

7 years agoandroid: change VA_DRIVERS_PATH to /vendor
Chih-Wei Huang [Wed, 26 Apr 2017 05:32:29 +0000 (13:32 +0800)]
android: change VA_DRIVERS_PATH to /vendor

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: move the libraries to /vendor
Chih-Wei Huang [Wed, 26 Apr 2017 05:31:00 +0000 (13:31 +0800)]
android: move the libraries to /vendor

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoRemove the unnecessary exec bit
Chih-Wei Huang [Thu, 6 Apr 2017 05:26:45 +0000 (13:26 +0800)]
Remove the unnecessary exec bit

These files are not executables.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: change libva drivers path
Chih-Wei Huang [Thu, 6 Apr 2017 05:18:37 +0000 (13:18 +0800)]
android: change libva drivers path

Use the path similar to linux desktop.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: enable logging except the user build
Chih-Wei Huang [Thu, 6 Apr 2017 04:56:57 +0000 (12:56 +0800)]
android: enable logging except the user build

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: simplify Android logging
Chih-Wei Huang [Thu, 6 Apr 2017 04:01:46 +0000 (12:01 +0800)]
android: simplify Android logging

To support older versions, just check if ALOGx are defined.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: remove redundant -DANDROID
Chih-Wei Huang [Thu, 6 Apr 2017 02:45:09 +0000 (10:45 +0800)]
android: remove redundant -DANDROID

It has already been defined by the Android build system.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
7 years agoandroid: use LOCAL_EXPORT_C_INCLUDE_DIRS to get include paths
Chih-Wei Huang [Thu, 6 Apr 2017 02:27:28 +0000 (10:27 +0800)]
android: use LOCAL_EXPORT_C_INCLUDE_DIRS to get include paths

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>
7 years agoandroid: fix the rules to generate va_version.h
Chih-Wei Huang [Wed, 5 Apr 2017 10:37:01 +0000 (18:37 +0800)]
android: fix the rules to generate va_version.h

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>
7 years agolibva: change to use ANativeWindow
Linda Yu [Thu, 2 Mar 2017 06:00:54 +0000 (14:00 +0800)]
libva: change to use ANativeWindow

Jira: https://01.org/jira/browser/AIA-65
Test: vainfo

Signed-off-by: Linda Yu <linda.yu@intel.com>
7 years agoMerge pull request #42 from amaslenn/fix-md
Xiang, Haihao [Wed, 19 Apr 2017 08:44:46 +0000 (16:44 +0800)]
Merge pull request #42 from amaslenn/fix-md

docs: fix formatting in markdown files

7 years agoFix links formatting in CONTRIBUTING.md
Andrey Maslennikov [Wed, 19 Apr 2017 07:51:57 +0000 (10:51 +0300)]
Fix links formatting in CONTRIBUTING.md

7 years agoFix heading in README.md
Andrey Maslennikov [Wed, 19 Apr 2017 07:50:34 +0000 (10:50 +0300)]
Fix heading in README.md

7 years agoMerge branch 'v1.8-branch' into 01org--master
Xiang, Haihao [Wed, 19 Apr 2017 04:21:08 +0000 (12:21 +0800)]
Merge branch 'v1.8-branch' into 01org--master

Conflicts:
configure.ac

7 years agolibva 1.8.1
Xiang, Haihao [Mon, 10 Apr 2017 08:14:02 +0000 (16:14 +0800)]
libva 1.8.1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoBump libva to 1.8.2.pre1 for development
Xiang, Haihao [Thu, 6 Apr 2017 13:25:13 +0000 (21:25 +0800)]
Bump libva to 1.8.2.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agolibva 1.8.1.pre1
Xiang, Haihao [Thu, 6 Apr 2017 13:22:54 +0000 (21:22 +0800)]
libva 1.8.1.pre1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agolibva 1.8.0
Xiang, Haihao [Fri, 31 Mar 2017 07:16:57 +0000 (15:16 +0800)]
libva 1.8.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agolibva 1.8.0.pre3
Xiang, Haihao [Mon, 27 Mar 2017 13:39:20 +0000 (21:39 +0800)]
libva 1.8.0.pre3

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agolibva 1.8.0.pre2
Xiang, Haihao [Thu, 16 Mar 2017 08:16:27 +0000 (16:16 +0800)]
libva 1.8.0.pre2

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoBump libva to 1.8.1.pre1 for development
Xiang, Haihao [Tue, 7 Mar 2017 15:42:43 +0000 (23:42 +0800)]
Bump libva to 1.8.1.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoUpdate NEWS for 1.8.0.pre1
Xiang, Haihao [Mon, 6 Mar 2017 07:18:16 +0000 (15:18 +0800)]
Update NEWS for 1.8.0.pre1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agowayland: Don't commit and ship generated files
Jussi Kukkonen [Thu, 23 Feb 2017 14:10:09 +0000 (16:10 +0200)]
wayland: Don't commit and ship generated files

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>
7 years agoWayland-drm: Fix not finding wl_drm_interface on systems with libglvnd
Hans de Goede [Wed, 15 Feb 2017 14:18:44 +0000 (15:18 +0100)]
Wayland-drm: Fix not finding wl_drm_interface on systems with libglvnd

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>
7 years agodrm: Add mapping of amdgpu kernel driver to radeonsi Mesa driver
Mark Thompson [Sat, 4 Feb 2017 16:14:45 +0000 (16:14 +0000)]
drm: Add mapping of amdgpu kernel driver to radeonsi Mesa driver

Fixes #24.

Signed-off-by: Mark Thompson <sw@jkqxz.net>