OSDN Git Service

android-x86/hardware-intel-common-vaapi.git
4 years agoandroid: avoid compile warnnings oreo-x86 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-8.1-r5 android-x86-8.1-r6
Chih-Wei Huang [Tue, 26 Feb 2019 03:27:33 +0000 (11:27 +0800)]
android: avoid compile warnnings

To avoid the warnings(errors):

hardware/intel/common/vaapi/src/gen75_vme.c:1070:5: error: variable 'i965_kernel_num' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
    default:
    ^~~~~~~
hardware/intel/common/vaapi/src/gen75_vme.c:1078:35: note: uninitialized use occurs here
    vme_context->vme_kernel_sum = i965_kernel_num;
                                  ^~~~~~~~~~~~~~~

hardware/intel/common/vaapi/src/gen9_vme.c:2036:5: error: variable 'i965_kernel_num' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
    default:
    ^~~~~~~
hardware/intel/common/vaapi/src/gen9_vme.c:2044:35: note: uninitialized use occurs here
    vme_context->vme_kernel_sum = i965_kernel_num;
                                  ^~~~~~~~~~~~~~~

I am not going to disable the warning (by -Wno-sometimes-uninitialized)
since it's still a useful checking from the compiler.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
4 years agoandroid: ignore unimportant compile warnnings
Chih-Wei Huang [Tue, 26 Feb 2019 02:56:45 +0000 (10:56 +0800)]
android: ignore unimportant compile warnnings

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
5 years agoHEVC encoder: correct the minimal bitrate for VBR android-x86-8.1-r1
Haihao Xiang [Thu, 20 Dec 2018 01:06:51 +0000 (09:06 +0800)]
HEVC encoder: correct the minimal bitrate for VBR

This fixes https://github.com/intel/intel-vaapi-driver/issues/430

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Tested-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
5 years agoMerge branch 'v2.3-branch' into master
Haihao Xiang [Tue, 11 Dec 2018 02:35:27 +0000 (10:35 +0800)]
Merge branch 'v2.3-branch' into master

5 years agointel-vaapi-driver 2.3.0
Haihao Xiang [Mon, 10 Dec 2018 01:56:28 +0000 (09:56 +0800)]
intel-vaapi-driver 2.3.0

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agointel-vaapi-driver 2.3.0.pre2
Haihao Xiang [Fri, 7 Dec 2018 06:54:31 +0000 (14:54 +0800)]
intel-vaapi-driver 2.3.0.pre2

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoFix memory leak
Haihao Xiang [Wed, 5 Dec 2018 06:41:00 +0000 (14:41 +0800)]
Fix memory leak

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agointel-vaapi-driver 2.3.0.pre1
Haihao Xiang [Wed, 21 Nov 2018 07:31:14 +0000 (15:31 +0800)]
intel-vaapi-driver 2.3.0.pre1

Update NEWS and bump a new version

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agointel-vaapi-driver 2.4.0.pre1
Haihao Xiang [Wed, 21 Nov 2018 07:39:19 +0000 (15:39 +0800)]
intel-vaapi-driver 2.4.0.pre1

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoMerge branch 'v2.2-branch' into intel--master
Haihao Xiang [Wed, 21 Nov 2018 07:36:54 +0000 (15:36 +0800)]
Merge branch 'v2.2-branch' into intel--master

5 years agogen8_post_processing: optimization for gen8_pp_object_walker
Cole Nelson [Fri, 18 Aug 2017 20:30:36 +0000 (13:30 -0700)]
gen8_post_processing: optimization for gen8_pp_object_walker

gen8_pp_object_walker makes an unnecessary function call, checks a
return value that is always zero and makes non-indexed variable
assignments.  All of which occurs inside nested for loops.

Move non-indexed assignments outside the iterative block and inline the
rest. This decreases frame drops for saturating workloads.

Fixes: #252

Signed-off-by: Cole Nelson <colex.nelson@intel.com>
5 years agogen75_proc_picture: check return value from gen75_vpp_vebox
Xu Guangxin [Sat, 10 Nov 2018 05:55:40 +0000 (13:55 +0800)]
gen75_proc_picture: check return value from gen75_vpp_vebox

gen75_vpp_vebox will check many things like invalid param, unsupported features.
Better check the return value

5 years agovp8/enc: Avoid out of boundary MVs
Haihao Xiang [Wed, 12 Sep 2018 03:11:33 +0000 (11:11 +0800)]
vp8/enc: Avoid out of boundary MVs

This patch makes sure all MVs are in the right range, otherwise
out of boundary MVs will result in corrupted frame.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoavc/enc: Fix bitrate reset
Haihao Xiang [Wed, 12 Sep 2018 06:00:24 +0000 (14:00 +0800)]
avc/enc: Fix bitrate reset

Use the right target bitrate once user changes the bitrate on the fly

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoAdd a new CFL PCI ID
Haihao Xiang [Fri, 31 Aug 2018 05:12:24 +0000 (13:12 +0800)]
Add a new CFL PCI ID

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoAdd a new KBL PCI ID
Haihao Xiang [Fri, 31 Aug 2018 05:10:13 +0000 (13:10 +0800)]
Add a new KBL PCI ID

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoCheck for -fstack-protector
Bernd Kuhls [Sun, 29 Jul 2018 18:55:23 +0000 (20:55 +0200)]
Check for -fstack-protector

Not all toolchains provide support for -fstack-protector. This patch
provides a configure check to avoid build errors like

/home/buildroot/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/6.4.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp_nonshared
/home/buildroot/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/6.4.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp

5 years agoEnable multiple pass by default
Haihao Xiang [Thu, 19 Jul 2018 08:14:46 +0000 (16:14 +0800)]
Enable multiple pass by default

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoChange the sequence of reading MMIO registers
Haihao Xiang [Fri, 20 Jul 2018 06:05:51 +0000 (14:05 +0800)]
Change the sequence of reading MMIO registers

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoRemoved the padded bytes
Haihao Xiang [Fri, 20 Jul 2018 04:54:35 +0000 (12:54 +0800)]
Removed the padded bytes

Image status mask and ctrl are used as compare mask and data
in MI_CONDITIONAL_BATCH_BUFFER_END, so they must be adjacent
in memory

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoUse the original picture size
Haihao Xiang [Fri, 20 Jul 2018 06:23:02 +0000 (14:23 +0800)]
Use the original picture size

vp8_context->frame_width/vp8_context->frame_height is aligned to 16 bytes,
however the original size is required

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoCorrect the base address for the 2nd level batchbuffer
Haihao Xiang [Thu, 19 Jul 2018 07:16:15 +0000 (15:16 +0800)]
Correct the base address for the 2nd level batchbuffer

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agolibva-intel-driver 2.2.0
Haihao Xiang [Wed, 11 Jul 2018 08:10:15 +0000 (16:10 +0800)]
libva-intel-driver 2.2.0

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agointel-vaapi-driver 2.2.1.pre1 for development
Haihao Xiang [Thu, 5 Jul 2018 05:39:54 +0000 (13:39 +0800)]
intel-vaapi-driver 2.2.1.pre1 for development

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agointel-vaapi-driver 2.2.0.pre1
Haihao Xiang [Tue, 3 Jul 2018 05:56:04 +0000 (13:56 +0800)]
intel-vaapi-driver 2.2.0.pre1

Update NEWS and bump the version for 2.2.0.pre1

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoVPP: clear a surface using media pipeline on GEN8+
Haihao Xiang [Tue, 15 May 2018 05:02:22 +0000 (13:02 +0800)]
VPP: clear a surface using media pipeline on GEN8+

Remove the extra sync between BCS and CS rings

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agorender: clear background using 3D pipeline on GEN8+
Haihao Xiang [Fri, 1 Jun 2018 04:50:26 +0000 (12:50 +0800)]
render: clear background using 3D pipeline on GEN8+

Remove the extra sync between BCS and CS rings

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoUpdate some CSC kernels for packed pixels
Haihao Xiang [Mon, 4 Jun 2018 05:27:55 +0000 (13:27 +0800)]
Update some CSC kernels for packed pixels

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoMove the function declaration to an internal header file
Haihao Xiang [Tue, 15 May 2018 05:02:22 +0000 (13:02 +0800)]
Move the function declaration to an internal header file

gen9_p010_scaling_post_processing was added for VPP internal usage only

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agoDon't show an error on hybrid driver failure
Nicolas Chauvet [Fri, 23 Mar 2018 11:08:01 +0000 (12:08 +0100)]
Don't show an error on hybrid driver failure

Distribution wants to have situation where both
hybrid/i965 drivers are avaible. Even when only the latter
is relevant on a given hardware.

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
5 years agoandroid: get vaapi version from configure.ac
Chih-Wei Huang [Thu, 31 May 2018 10:51:54 +0000 (18:51 +0800)]
android: get vaapi version from configure.ac

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
5 years agoandroid: get libva version from va_version.h
Chih-Wei Huang [Thu, 31 May 2018 10:51:31 +0000 (18:51 +0800)]
android: get libva version from va_version.h

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
5 years agoUpdate README.md
Pierre Rudloff [Sun, 10 Jun 2018 09:23:40 +0000 (11:23 +0200)]
Update README.md

Fix title

5 years agoAlways set pre/post deblocking output buffer
Haihao Xiang [Fri, 18 May 2018 07:13:18 +0000 (15:13 +0800)]
Always set pre/post deblocking output buffer

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
5 years agogenX_mfd: fix out-of-bounds reference pixel replication
carpalis [Sun, 20 May 2018 12:27:46 +0000 (14:27 +0200)]
genX_mfd: fix out-of-bounds reference pixel replication

Out-of-bounds reference pixel replication should take into account the frame
coding mode of the reference frame(s), not the frame coding mode of the
current frame.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
5 years agoi965_pciids: add kbl-y refresh PCI ID
Patrick Waterlander [Wed, 30 May 2018 20:45:54 +0000 (13:45 -0700)]
i965_pciids: add kbl-y refresh PCI ID

Signed-off-by: Patrick Waterlander <patrick.waterlander@intel.com>
5 years agomake sure there is no copy_buffer_to_golden/copy_buffer_to_alternate if refresh_golde...
ottingerg [Wed, 16 May 2018 19:54:51 +0000 (21:54 +0200)]
make sure there is no copy_buffer_to_golden/copy_buffer_to_alternate if refresh_golden/refresh_alternate is set

5 years agomake sure reference objects are placed in the same slot / remove asserts
ottingerg [Fri, 11 May 2018 19:37:11 +0000 (21:37 +0200)]
make sure reference objects are placed in the same slot / remove asserts

5 years agovp8 encoder parameter check - do not check for ref frames if no no_ref_X flag is set
ottingerg [Fri, 11 May 2018 07:54:31 +0000 (09:54 +0200)]
vp8 encoder parameter check - do not check for ref frames if no no_ref_X flag is set

In VP8 encoding not always all reference frames (last, golden, altref) are provided.
This is indicated with the flags ref_flags.bits.no_ref_last, ref_flags.bits.no_ref_gf
and ref_flags.bits.no_ref_arf in VAEncPictureParameterBufferVP8.
While checking picture parameters, make sure that assert errors concerning invalid
reference frame only occure if no_ref_X is not set.

5 years agoUse f_code to determine max MV length
Mark Thompson [Wed, 25 Apr 2018 22:44:33 +0000 (23:44 +0100)]
Use f_code to determine max MV length

The motion vector length is constrained by the level but not set by it -
we should instead use the f_code values to set the max MV length.

This fixes encoding when the f_code values are not set to the highest
allowed for the level, and also adds support for intermediate levels such
as High 1440 which were not previously handled here.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
5 years agoDo not return FEI caps for non-FEI entrypoints
Mark Thompson [Thu, 15 Mar 2018 00:06:41 +0000 (00:06 +0000)]
Do not return FEI caps for non-FEI entrypoints

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agogenX_mfd: ignore FASTUVMC for interlace frame P and B pictures
carpalis [Thu, 29 Mar 2018 07:37:44 +0000 (09:37 +0200)]
genX_mfd: ignore FASTUVMC for interlace frame P and B pictures

Interlace frame P and B pictures should ignore the FASTUVMC syntax element, as
stated in section 10.7.3.7 of VC-1 spec. Furthermore, prevent using the MVMODE
syntax element for interlace frame P and B pictures, as these picture types do
not include MVMODE or MVMODE2.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
6 years agoSet the right height for VP9 encoding
Haihao Xiang [Thu, 15 Mar 2018 06:56:44 +0000 (14:56 +0800)]
Set the right height for VP9 encoding

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
6 years agoAdd '-fstack-protector' to CFLAGS
Haihao Xiang [Wed, 14 Mar 2018 06:21:05 +0000 (14:21 +0800)]
Add '-fstack-protector' to CFLAGS

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
6 years agoUse the new link URLs
Haihao Xiang [Wed, 14 Mar 2018 04:45:32 +0000 (12:45 +0800)]
Use the new link URLs

We moved libva from github/01org to github/intel, however some files
still have links to the old 01org URLs, this commit updates these
links to the new intel URLs. In addition, this commit added a contact
email address for security issue reporting

This fixes https://github.com/intel/intel-vaapi-driver/issues/364

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
6 years agoFix packed headers attribute test in vaCreateConfig()
Mark Thompson [Tue, 13 Feb 2018 19:44:54 +0000 (19:44 +0000)]
Fix packed headers attribute test in vaCreateConfig()

If packed headers are supported, then the provided value must be some
(possibly empty) subset of the supported headers.

This fixes config creation with an empty packed header set, which the
user may pass if they don't want to provide any packed headers.  This
pattern is used in at least libavcodec, where VP9 encoding is broken
prior to this change.

Since there is intent to deprecate this behaviour in future, also add
warnings to this case and the other possible failure modes here.

Fixes #362.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
6 years agoFix a potential over run issue
peng.chen [Fri, 16 Mar 2018 05:44:56 +0000 (13:44 +0800)]
Fix a potential over run issue

6 years agoRemove dead code
Haihao Xiang [Wed, 14 Mar 2018 05:47:48 +0000 (13:47 +0800)]
Remove dead code

GEN95_AVC_MAX_LAMBDA is always less than 0xfffa and 0xffef

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
6 years agoRemove self-assignment
Xiang, Haihao [Wed, 14 Mar 2018 03:58:23 +0000 (11:58 +0800)]
Remove self-assignment

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoFix typo of variable name in JPEG decoding
Xiang, Haihao [Wed, 14 Mar 2018 03:09:08 +0000 (11:09 +0800)]
Fix typo of variable name in JPEG decoding

h2 is typo of h1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd the missing 'break' in switch
Xiang, Haihao [Wed, 14 Mar 2018 03:00:31 +0000 (11:00 +0800)]
Add the missing 'break' in switch

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoRemove dead code
Xiang, Haihao [Wed, 14 Mar 2018 02:49:43 +0000 (10:49 +0800)]
Remove dead code

tmp_id is always VA_INVALID_ID

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoRemove 'if' statement
Xiang, Haihao [Wed, 14 Mar 2018 02:25:04 +0000 (10:25 +0800)]
Remove 'if' statement

The two branches execute the same code

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoFix typo of variable name
Xiang, Haihao [Wed, 14 Mar 2018 01:25:20 +0000 (09:25 +0800)]
Fix typo of variable name

It should be height instead of width

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoRemove decode code.
Xiang, Haihao [Wed, 14 Mar 2018 00:53:09 +0000 (08:53 +0800)]
Remove decode code.

The condition 'qp < 0' is not true.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoDon't compare an array against NULL
Xiang, Haihao [Tue, 13 Mar 2018 08:39:03 +0000 (16:39 +0800)]
Don't compare an array against NULL

Instead we should use the corresponding pointers

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoMake sure a pointer is valid before using
Xiang, Haihao [Tue, 13 Mar 2018 06:23:33 +0000 (14:23 +0800)]
Make sure a pointer is valid before using

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoDon't compare an unsigned variable with 0
Xiang, Haihao [Tue, 13 Mar 2018 05:58:50 +0000 (13:58 +0800)]
Don't compare an unsigned variable with 0

For an unsigned variable xxx, 'xxx < 0U' is always false, and 'xxx >=
0U' is always true

In addition, this commit fixes a minor syntax error.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoCheck function return value
Xiang, Haihao [Tue, 13 Mar 2018 05:26:02 +0000 (13:26 +0800)]
Check function return value

i965_gpe_allocate_2d_resource() may return error

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoCorrect the valid buffer size
Xiang, Haihao [Tue, 13 Mar 2018 04:50:50 +0000 (12:50 +0800)]
Correct the valid buffer size

Otherwise it might result in out-of-bounds access of i965->va_vendor

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoRemove implicit truncation from unsigned int to bit field
Víctor Manuel Jáquez Leal [Wed, 14 Feb 2018 13:31:00 +0000 (14:31 +0100)]
Remove implicit truncation from unsigned int to bit field

All the members of struct i965_sampler_8x8_coefficient are signed
int of 8 bit long (ranging from -128 to 127).

But there is an assignation of 1U<<7 which is implicitly truncated
to -128.

To make explicit the casting, without losing the expresiveness of
the bitwise operation, this patch adds a macro which uses the
anonymous union technique.

6 years agoRemove implicit truncations from int to bit-field
Víctor Manuel Jáquez Leal [Wed, 14 Feb 2018 12:42:53 +0000 (13:42 +0100)]
Remove implicit truncations from int to bit-field

All the members in the structures scoreboard1 and scoreboard2 are
signed int of 4 bit long (this means they only admit values from
-8 to 7).

Along the code, these structures are assigned with values bigger
than 7 which are implicitly truncated to negative numbers. For
example, 0xF -> -1 or 0xE -> -2

It is better to explictly show the assigned values than rely on
implicit convertions. This patch aims to that direction.

6 years agoRemove spurious assignations
Víctor Manuel Jáquez Leal [Wed, 14 Feb 2018 07:33:35 +0000 (08:33 +0100)]
Remove spurious assignations

6 years agobuild: fix meson build
Víctor Manuel Jáquez Leal [Wed, 14 Feb 2018 13:50:08 +0000 (14:50 +0100)]
build: fix meson build

When X11 is found, the variable assigned is HAVE_X11 but the used
one is WITH_X11, failing to define it in the config header.

6 years agoUpdate .travis.yml
Haihao Xiang [Wed, 7 Mar 2018 03:12:05 +0000 (11:12 +0800)]
Update .travis.yml

Like what we did in commit 14a2088 for libva, the corresponding fix is
also required for this driver to avoid locking dpkg file by an
unattended `apt-get` call

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
6 years agoMerge branch 'v2.1-branch' into master
Haihao Xiang [Thu, 8 Mar 2018 05:20:32 +0000 (13:20 +0800)]
Merge branch 'v2.1-branch' into master

6 years agointel-vaapi-driver 2.1.0
Haihao Xiang [Mon, 12 Feb 2018 06:36:21 +0000 (14:36 +0800)]
intel-vaapi-driver 2.1.0

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
6 years agoAdd meson support
Víctor Manuel Jáquez Leal [Fri, 3 Nov 2017 14:47:26 +0000 (15:47 +0100)]
Add meson support

6 years agobuild: delete shaders targets at distclean
Víctor Manuel Jáquez Leal [Thu, 1 Feb 2018 08:40:53 +0000 (09:40 +0100)]
build: delete shaders targets at distclean

6 years agobuild: EXTRA_DIST doesn't recognize wildcards
Víctor Manuel Jáquez Leal [Thu, 1 Feb 2018 08:10:14 +0000 (09:10 +0100)]
build: EXTRA_DIST doesn't recognize wildcards

6 years agobuild: add to VPATH src and build dirs
Víctor Manuel Jáquez Leal [Thu, 1 Feb 2018 08:08:36 +0000 (09:08 +0100)]
build: add to VPATH src and build dirs

In order to make out-of-tree builds and distcheck to work, we should
set the VPATH to look for sources also in srcdir and builddir.

6 years agobuild: automake options in configure.ac
Víctor Manuel Jáquez Leal [Thu, 1 Feb 2018 08:07:19 +0000 (09:07 +0100)]
build: automake options in configure.ac

Consolidate automake options in configure.ac rather than have them
dispersed.

6 years agobuild: remove undefined variable
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 16:01:06 +0000 (17:01 +0100)]
build: remove undefined variable

WAYLAND_CFLAGS is not defined by configure.ac

6 years agobuild: autotools: clean check for wayland dependency
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 14:34:09 +0000 (15:34 +0100)]
build: autotools: clean check for wayland dependency

Clean up the the checks for wayland dependencies.

6 years agobuild: autotools: don't check for X11 libraries
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 14:30:11 +0000 (15:30 +0100)]
build: autotools: don't check for X11 libraries

The driver doesn't link with any X11 library so there is no need to
check for their pkgconfig's data.

6 years agobuild: autotools: don't check for EGL
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 14:04:08 +0000 (15:04 +0100)]
build: autotools: don't check for EGL

libEGL is loaded in run-time using dlopen, thus there is no need to
check for it at comiplation time.

6 years agobuild: autotools: check for dlopen library
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 14:14:24 +0000 (15:14 +0100)]
build: autotools: check for dlopen library

6 years agobuild: autotools: remove useless --enable-drm parameter
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 13:58:46 +0000 (14:58 +0100)]
build: autotools: remove useless --enable-drm parameter

Link with libdrm is mandatory, thus there is no need for a configure
parameter.

In the other hand, link with libva-drm is only required when the unit
tests are enabled.

6 years agobuild: test: enable out-of-source building
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 13:07:04 +0000 (14:07 +0100)]
build: test: enable out-of-source building

It is a good practice to build packages out-of-source tree, but its
support for the unit test is not correct. This patch enables it.

6 years agobuild: automake: add -Wno-portability
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 14:50:50 +0000 (15:50 +0100)]
build: automake: add -Wno-portability

In order to suppress the warning

src/Makefile.am:117: warning: '%'-style pattern rules are a GNU make extension

6 years agobuild: Remove unused variable
Víctor Manuel Jáquez Leal [Fri, 3 Nov 2017 13:08:17 +0000 (14:08 +0100)]
build: Remove unused variable

Fixes: #327

6 years agobuild: Add libdrm_intel dependency
Víctor Manuel Jáquez Leal [Fri, 3 Nov 2017 14:47:41 +0000 (15:47 +0100)]
build: Add libdrm_intel dependency

Fixes: #326

6 years agobuild: fix variable name
Víctor Manuel Jáquez Leal [Mon, 22 Jan 2018 14:14:03 +0000 (15:14 +0100)]
build: fix variable name

6 years agointel-vaapi-driver 2.1.0.pre1
Xiang, Haihao [Wed, 31 Jan 2018 07:14:47 +0000 (15:14 +0800)]
intel-vaapi-driver 2.1.0.pre1

Update NEWS and bump a new version

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoSupport VBR for HEVC 10bit
Xiang, Haihao [Fri, 2 Feb 2018 04:23:58 +0000 (12:23 +0800)]
Support VBR for HEVC 10bit

VBR should be returned when querying the supported RC modes for
VAProfileHEVCMain10/VAEntrypointEncSlice pair

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agointel-vaapi-driver 2.1.1.pre1 for development
Xiang, Haihao [Fri, 2 Feb 2018 01:26:56 +0000 (09:26 +0800)]
intel-vaapi-driver 2.1.1.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agotest: add virtual dtor to abstract classes
U. Artie Eoff [Thu, 1 Feb 2018 21:46:52 +0000 (13:46 -0800)]
test: add virtual dtor to abstract classes

Abstract classes should have virtual destructors.
Missing virtual dtor's can be detected with
-Wnon-virtual-dtor compiler flag, too.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
6 years agoFix a typo
Xiang, Haihao [Thu, 1 Feb 2018 08:31:22 +0000 (16:31 +0800)]
Fix a typo

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd the missing files to the corresponding lists
Xiang, Haihao [Wed, 31 Jan 2018 07:54:47 +0000 (15:54 +0800)]
Add the missing files to the corresponding lists

Otherwise, the tar ball created by 'make dist' doesn't include these
files

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoi965_avc_encoder: Fix possible NULL pointer dereferencing
Sreerenj Balachandran [Wed, 31 Jan 2018 03:27:54 +0000 (18:27 -0900)]
i965_avc_encoder: Fix possible NULL pointer dereferencing

6 years agoENC/VP8: set value to VA_ATTRIB_NOT_SUPPORTED when querying VAConfigAttribEncPackedHe...
Xiang, Haihao [Tue, 30 Jan 2018 07:34:20 +0000 (15:34 +0800)]
ENC/VP8: set value to VA_ATTRIB_NOT_SUPPORTED when querying VAConfigAttribEncPackedHeaders

vaGetConfigAttributes() should return VA_ATTRIB_NOT_SUPPORTED if the
corresponding attribute is not supported for a given profile/entrypoint
pair. The driver doesn't support any packed header from application for
VP8 encoding.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoReturn surface width/height in pixels
Xiang, Haihao [Mon, 22 Jan 2018 03:03:22 +0000 (11:03 +0800)]
Return surface width/height in pixels

width/height in VADRMPRIMESurfaceDescriptor specifies the
surface width/height in pixels in VA-API, so we should set
the corresponding variables in pixels in the driver

This fixes https://github.com/01org/intel-vaapi-driver/issues/342,
thanks pkerling for the investigation and proposed fix for this issue.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoEnable VP9 non-low power encoding
Xiang, Haihao [Wed, 17 Jan 2018 06:13:00 +0000 (14:13 +0800)]
Enable VP9 non-low power encoding

We re-use KBL VP9 code

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd support for VDEnc VP9 CBR/VBR mode on CNL
Xiang, Haihao [Tue, 26 Dec 2017 13:00:47 +0000 (21:00 +0800)]
Add support for VDEnc VP9 CBR/VBR mode on CNL

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd support for VDEnc VP9 CQP mode on CNL
Xiang, Haihao [Tue, 19 Sep 2017 08:44:35 +0000 (16:44 +0800)]
Add support for VDEnc VP9 CQP mode on CNL

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd flags for VP9 low power encoding mode
Xiang, Haihao [Thu, 21 Sep 2017 07:42:52 +0000 (15:42 +0800)]
Add flags for VP9 low power encoding mode

Add some related checks as well

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd a flag for VP9 BRC mode in struct hw_codec_info
Xiang, Haihao [Tue, 26 Dec 2017 08:25:54 +0000 (16:25 +0800)]
Add a flag for VP9 BRC mode in struct hw_codec_info

Use this new flag to check the supported BRC mode

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd vdenc common commands for CNL
peng.chen [Sat, 23 Sep 2017 06:37:38 +0000 (14:37 +0800)]
Add vdenc common commands for CNL

It provides helper functions for low power encoding on CNL

Signed-off-by: peng.chen <peng.c.chen@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
6 years agoAdd HuC common commands for CNL
Xiang, Haihao [Tue, 19 Sep 2017 06:18:04 +0000 (14:18 +0800)]
Add HuC common commands for CNL

It provides helper functions for low power encoding on CNL

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
6 years agoAdd GPE function for MI_COPY_MEM_MEM command
Xiang, Haihao [Tue, 14 Nov 2017 07:50:51 +0000 (15:50 +0800)]
Add GPE function for MI_COPY_MEM_MEM command

This function is used to reads 4 bytes from memory and stores the value
of that 4 bytes to back to memory, both source and destination addresses
are Per Process Graphics Address

It is a helper function for low power encoding support

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>