[meta-intel] [PATCH v3 3/4] libva-intel-driver: Upgrade to 1.6.0

2015-08-14 Thread Lim Siew Hoon
For Gen9 platform support.
Tested with running some H264, H265, MPEG2, JPEG, VC1, VP8, MJPEG decode
in CHV and SKL platform.

Clean up:
Remove wayland-include.patch, code already exist in 1.6.0 version.

Add in patch:
Fix GPU hung issue patch causing by running H264 video clip with MBAFF.

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 ...croblock-pair-to-calculate-H264-decoding-.patch | 145 +
 .../libva/libva-intel-driver/wayland-include.patch |  30 -
 ...driver_1.5.0.bb = libva-intel-driver_1.6.0.bb} |   9 +-
 3 files changed, 150 insertions(+), 34 deletions(-)
 create mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 delete mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/wayland-include.patch
 rename common/recipes-multimedia/libva/{libva-intel-driver_1.5.0.bb = 
libva-intel-driver_1.6.0.bb} (78%)
 mode change 100644 = 100755

diff --git 
a/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 
b/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
new file mode 100644
index 000..3dce642
--- /dev/null
+++ 
b/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
@@ -0,0 +1,145 @@
+From f394c1d10c1169180b80beb97ddde57724232038 Mon Sep 17 00:00:00 2001
+From: Zhao Yakui yakui.z...@intel.com
+Date: Tue, 7 Jul 2015 01:45:47 +0800
+Subject: [PATCH] H264: Use macroblock pair to calculate H264 decoding
+ parameter under MBAFF flag
+
+Based on the H264 spec the macroblock pair should be used to calculate
+the corresponding parameters under MBAFF.(mb-adaptive frame-field).
+Otherwise the wrong parameter is sent to GPU HW.
+
+Fix the GPU hang issue in https://bugs.freedesktop.org/show_bug.cgi?id=91207
+
+Tested-by: Lim, Siew Hoon siew.hoon@intel.com
+Signed-off-by: Zhao Yakui yakui.z...@intel.com
+
+Upstream-status: backport
+- This patch was imported from the Intel VA Driver git server
+  (git://anongit.freedesktop.org/vaapi/intel-driver) as of commit id
+  7bb3658212f49a6f8d3d61b0b5d161aca73c2a11 from upstream master into
+  this fixed version driver.
+- Bugizlla id=91207 status: FIXED CLOSED.
+- Expect this fixed to be in next release from official Intel VA
+  driver  1.6.0 version.
+
+This issue caught by running some H264 video under MBAFF flag, it happen in
+HSW, IVY, CHV, SKL platform as well.
+
+Signed-off-by: Lim, Siew Hoon siew.hoon@intel.com
+---
+ src/gen6_mfd.c  | 10 --
+ src/gen75_mfd.c | 10 --
+ src/gen7_mfd.c  | 10 --
+ src/gen8_mfd.c  |  9 +++--
+ 4 files changed, 31 insertions(+), 8 deletions(-)
+
+diff --git a/src/gen6_mfd.c b/src/gen6_mfd.c
+index 95a8e92..2dd05a1 100755
+--- a/src/gen6_mfd.c
 b/src/gen6_mfd.c
+@@ -551,14 +551,20 @@ gen6_mfd_avc_slice_state(VADriverContextP ctx,
+ }
+ }
+ 
+-first_mb_in_slice = slice_param-first_mb_in_slice  mbaff_picture;
++first_mb_in_slice = slice_param-first_mb_in_slice;
+ slice_hor_pos = first_mb_in_slice % width_in_mbs; 
+ slice_ver_pos = first_mb_in_slice / width_in_mbs;
+ 
++if (mbaff_picture)
++slice_ver_pos = slice_ver_pos  1;
++
+ if (next_slice_param) {
+-first_mb_in_next_slice = next_slice_param-first_mb_in_slice  
mbaff_picture;
++first_mb_in_next_slice = next_slice_param-first_mb_in_slice;
+ next_slice_hor_pos = first_mb_in_next_slice % width_in_mbs; 
+ next_slice_ver_pos = first_mb_in_next_slice / width_in_mbs;
++
++if (mbaff_picture)
++next_slice_ver_pos = next_slice_ver_pos  1;
+ } else {
+ next_slice_hor_pos = 0;
+ next_slice_ver_pos = height_in_mbs;
+diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
+index 5171bd9..11cde1f 100644
+--- a/src/gen75_mfd.c
 b/src/gen75_mfd.c
+@@ -862,14 +862,20 @@ gen75_mfd_avc_slice_state(VADriverContextP ctx,
+ num_ref_idx_l1 = slice_param-num_ref_idx_l1_active_minus1 + 1;
+ }
+ 
+-first_mb_in_slice = slice_param-first_mb_in_slice  mbaff_picture;
++first_mb_in_slice = slice_param-first_mb_in_slice;
+ slice_hor_pos = first_mb_in_slice % width_in_mbs; 
+ slice_ver_pos = first_mb_in_slice / width_in_mbs;
+ 
++if (mbaff_picture)
++slice_ver_pos = slice_ver_pos  1;
++
+ if (next_slice_param) {
+-first_mb_in_next_slice = next_slice_param-first_mb_in_slice  
mbaff_picture;
++first_mb_in_next_slice = next_slice_param-first_mb_in_slice;
+ next_slice_hor_pos = first_mb_in_next_slice % width_in_mbs; 
+ next_slice_ver_pos = first_mb_in_next_slice / width_in_mbs;
++
++if (mbaff_picture)
++next_slice_ver_pos = next_slice_ver_pos  1;
+ } else {
+ next_slice_hor_pos = 0;
+ next_slice_ver_pos = height_in_mbs / (1 + 
!!pic_param

[meta-intel] [PATCH v3 2/4] libva: upgrade to 1.6.0

2015-08-14 Thread Lim Siew Hoon
The libva-intel-driver 1.6.0 version got dependecy to libva 1.6.0
VA-API 0.38 version.

For Gen9 platform support.

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 common/recipes-multimedia/libva/{libva_1.5.0.bb = libva_1.6.0.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename common/recipes-multimedia/libva/{libva_1.5.0.bb = libva_1.6.0.bb} (93%)
 mode change 100644 = 100755

diff --git a/common/recipes-multimedia/libva/libva_1.5.0.bb 
b/common/recipes-multimedia/libva/libva_1.6.0.bb
old mode 100644
new mode 100755
similarity index 93%
rename from common/recipes-multimedia/libva/libva_1.5.0.bb
rename to common/recipes-multimedia/libva/libva_1.6.0.bb
index 85fe4cd..bfce3c4
--- a/common/recipes-multimedia/libva/libva_1.5.0.bb
+++ b/common/recipes-multimedia/libva/libva_1.6.0.bb
@@ -18,8 +18,8 @@ LICENSE = MIT
 LIC_FILES_CHKSUM = file://COPYING;md5=2e48940f94acb0af582e5ef03537800f
 
 SRC_URI = 
http://www.freedesktop.org/software/vaapi/releases/libva/${BP}.tar.bz2;
-SRC_URI[md5sum] = ad0b55794308ec397d249a0a2a6df27a
-SRC_URI[sha256sum] = 
e946d4b3110e4e23ec6a588e0c828937e502c67196d1266214441fefc4b83486
+SRC_URI[md5sum] = 3f1241b4080db53c120325932f393f33
+SRC_URI[sha256sum] = 
3ad9dc9c1a6a10e9cc4234c2a1cd5e568ec0cd25145e86875eba6e0d69153458
 
 DEPENDS = libdrm virtual/mesa virtual/libgles1 virtual/libgles2 virtual/egl
 
-- 
2.1.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [PATCH 3/3] libva-intel-driver: Update to 1.6.0

2015-08-13 Thread Lim, Siew Hoon
 
  Missing Upstream-Status: Backport.
 
  Sorry. Ok, I will add in.
  I'm now a bit confused. Which upstream status I should be using Backport or
 Accepted?
  Read in www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
 
  Now I felt sound like the accepted should be using.
  Backport also correct as well, I really backport the fixed from upstream
 master into this fixed version.
 
 I don't think your choice here matters, the important thing is that a future
 maintainer upgrading this recipe can see that this patch might/should be
 included in a future release: either choice works for that. FWIW, I think
 accepted is the next step from submitted: a status update for a yocto/oe
 patch that was also sent to upstream mailing list or issue tracker. backport
 on the other hand is a commit already in upstream that was then backported
 to yocto/oe.

Thank you for clarify. Now I think much clear what upstream status I should be 
using.

 
  Is this information status needed like below:
 
  Upstream-Status: Accepted
  - The code fixed already accepted in upstream, and expected to be in next
 release.
  - Currently backport this code fixed from upstream into 1.6.0 fixed version.
  - Bugzilla status for this issue is closed fixed.
  - Expected version info? Can I put wait for next release or totally skip 
  first?
  (Because I'm really sure what is next release version in
  libva-intel-driver. It could be 1.6.1 or 1.7.0. This really depends on
  next release from libva-intel-driver.)
 
 If you know the version number the commit is (or will be) in, please include
 the version number. If the code is not committed upstream yet and you have
 a bug URL, please include the URL.

Ok. 

Thanks.
...siewhoon
-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] Do we still need GST_API_VERSION inside gstreamer-vaapi-xxx.bb recipes?

2015-08-13 Thread Lim, Siew Hoon

 Gstreamer-vaapi already include those GST_API_VERSION checking in 
 configuration.ac which gstreamer framework version support.
 And --with-gstreamer-api option also didn't exist in gstreamer-vaapi.

 Will get this kind of warning message:
 WARNING: QA Issue: gstreamer-vaapi-1.0: configure was passed unrecognised 
 options: --with-gstreamer-api [unknown-configure-option]


 Can we do a cleanup for it?
 1. Remove out --with-gstreamer-api=${GST_API_VERSION} inside the 
 gstreamer-vaapi.inc?
 2. Remove out the GST_API_VERSION from gstreamer-vaapi recipes?

It was needed in the past when there were both 0.10 and 1.0 recipes for 
gstreamer-vaapi, but if gstreamer-vaapi has removed the --with-gstreamer-api 
option then it can all be deleted.

Run configuration: ./configure or ./autogen.sh --prefix=/usr 
Got warning message: configure: WARNING: unrecognized options: 
--with-gstreamer-api 

But I just found out in gstreamer-vaapi/debian.upstream/rules file, got this 
--with-gstreamer-api=$(GST_API_VERSION).
Will check whether gstreamer-vaapi side missing this out clean up in 
gstreamer-vaapi/debian.upstream/rules as well.

OK. Then I will go double check and confirm before create a patch for this one 
to do clean up.

Thanks.
...siewhoon



-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [PATCH 1/3] gstreamer-vaapi: upgrade to 0.6.0

2015-08-12 Thread Lim, Siew Hoon

 On 23 July 2015 at 10:46, Lim Siew Hoon siew.hoon@intel.com wrote:
 +DEPENDS = libva libva-intel-driver

 I'm still 99% sure this is totally redundant, because libva-intel-driver 
 doesn't install anything that would impact the compilation of gstreamer-vaapi 
 and the gstreamer-vaapi script doesn't look for the intel driver being 
 installed at configure or compile time.

Ok. Then I will remove it. 
...siewhoon

Ross
-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 1/3] gstreamer-vaapi: upgrade to 0.6.0

2015-08-12 Thread Lim Siew Hoon
Add in depedendecy libva-intel-driver.
Update the install-test.patch based on 0.6.0 version.
A lot of major changes and bug fixes add in in 0.6.0 version.

GStreamer support corner:
  - Removed the support for GStreamer 0.10 and 1.0
  - GStreamer = 1.2 is the minimal requirement

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 .../gstreamer/gstreamer-vaapi-1.0_0.5.10.bb|  5 -
 .../gstreamer/gstreamer-vaapi-1.0_0.6.0.bb |  5 +
 .../gstreamer/gstreamer-vaapi.inc  |  6 +++---
 .../gstreamer/gstreamer-vaapi/install-tests.patch  | 25 --
 4 files changed, 26 insertions(+), 15 deletions(-)
 delete mode 100644 
common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
 create mode 100755 
common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb

diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
deleted file mode 100644
index c1c4f5a..000
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
+++ /dev/null
@@ -1,5 +0,0 @@
-require gstreamer-vaapi.inc
-
-DEPENDS += gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad
-
-GST_API_VERSION = 1.4
diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb
new file mode 100755
index 000..c1c4f5a
--- /dev/null
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb
@@ -0,0 +1,5 @@
+require gstreamer-vaapi.inc
+
+DEPENDS += gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad
+
+GST_API_VERSION = 1.4
diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
index 64c6131..20a17a4 100644
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
@@ -9,14 +9,14 @@ FILESPATH = 
${@base_set_filespath([${FILE_DIRNAME}/${REALPN}, ${FILE_DIRNAME
 LICENSE = LGPLv2.1+
 LIC_FILES_CHKSUM = file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c
 
-DEPENDS = libva
+DEPENDS = libva libva-intel-driver
 
 SRC_URI = 
http://www.freedesktop.org/software/vaapi/releases/${REALPN}/${REALPN}-${PV}.tar.bz2
 \
file://install-tests.patch \

 
-SRC_URI[md5sum] = 3bd90b696b644be943450ba0c1497193
-SRC_URI[sha256sum] = 
0dd236c7bf225322b8934fdba99a7a9e4542566a2acbe7564cdc3ec2c8b73c9d
+SRC_URI[md5sum] = c8d8ba19d7d18d9e7bd455f73bb5daf2
+SRC_URI[sha256sum] = 
f6a4c657606849fb09ee2db778c80278cfa4546e9103862f273c910e208872b8
 
 S = ${WORKDIR}/${REALPN}-${PV}
 
diff --git 
a/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
index 9281b04..629354c 100644
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
@@ -1,14 +1,18 @@
-Install tests.
+From 6c4b4379702fb2cfc095dc62c4800e8ae417a564 Mon Sep 17 00:00:00 2001
+From: Lim Siew Hoon siew.hoon@intel.com
+Date: Wed, 22 Jul 2015 18:18:15 +0800
+Subject: [PATCH] Upgrade for Install tests
 
 Upstream-Status: Inappropriate
-Signed-off-by: Ross Burton ross.bur...@intel.com
+Based on gstreamer-vaapi 0.6.0 version.
 
+Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
 ---
- tests/Makefile.am |4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
+ tests/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/tests/Makefile.am b/tests/Makefile.am
-index 2e7f191..8f65446 100644
+index 3637d92..7cc6a97 100644
 --- a/tests/Makefile.am
 +++ b/tests/Makefile.am
 @@ -1,4 +1,4 @@
@@ -17,9 +21,16 @@ index 2e7f191..8f65446 100644
simple-decoder  \
test-decode \
test-display\
-@@ -9,7 +9,7 @@ noinst_PROGRAMS = \
+@@ -9,13 +9,13 @@ noinst_PROGRAMS = \
$(NULL)
  
+ if USE_ENCODERS
+-noinst_PROGRAMS += \
++bin_PROGRAMS += \
+   simple-encoder  \
+   $(NULL)
+ endif
+ 
  if USE_GLX
 -noinst_PROGRAMS += \
 +bin_PROGRAMS += \
@@ -27,5 +38,5 @@ index 2e7f191..8f65446 100644
$(NULL)
  endif
 -- 
-1.7.10.4
+2.1.0
 
-- 
2.1.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] Do we still need GST_API_VERSION inside gstreamer-vaapi-xxx.bb recipes?

2015-08-11 Thread Lim, Siew Hoon
Hi Ross,

Why we need to add GST_API_VERSION?  Do we really still need it? 

Gstreamer-vaapi already include those GST_API_VERSION checking in 
configuration.ac which gstreamer framework version support.
And --with-gstreamer-api option also didn't exist in gstreamer-vaapi. 

Will get this kind of warning message:
WARNING: QA Issue: gstreamer-vaapi-1.0: configure was passed unrecognised 
options: --with-gstreamer-api [unknown-configure-option]


Can we do a cleanup for it? 
1. Remove out --with-gstreamer-api=${GST_API_VERSION} inside the 
gstreamer-vaapi.inc?
2. Remove out the GST_API_VERSION from gstreamer-vaapi recipes?

Thanks.
.siewhoon


-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 1/3] gstreamer-vaapi: upgrade to 0.6.0 (v2)

2015-08-11 Thread Lim Siew Hoon
Request gstreamer-vaapi upgrade for Gen9 platform support.
Tested with some video clip format in H265, H264, VC1, HEVC,
JPEG, MPEG2, VP8 decode on CHV platform as well.

Gstreamer support corner from gstreamer-vaapi release note:
- Removed the support for Gstreamer 0.10 and 1.0.
- Gstreamer = 1.2 the minimal requirement.

Add in the dependedcy libva-intel-driver in gstreamer-vaapi.inc.
Because gstreamer-vaapi depend to libva-intel-driver as well not just
only libva.

Fixed the compilation error causing by the install test patch

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 ...-1.0_0.5.10.bb = gstreamer-vaapi-1.0_0.6.0.bb} |  0
 .../gstreamer/gstreamer-vaapi.inc  |  6 ++--
 .../gstreamer/gstreamer-vaapi/install-tests.patch  | 35 ++
 3 files changed, 32 insertions(+), 9 deletions(-)
 rename common/recipes-multimedia/gstreamer/{gstreamer-vaapi-1.0_0.5.10.bb = 
gstreamer-vaapi-1.0_0.6.0.bb} (100%)
 mode change 100644 = 100755

diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb
old mode 100644
new mode 100755
similarity index 100%
rename from common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
rename to common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb
diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
index 64c6131..20a17a4 100644
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
@@ -9,14 +9,14 @@ FILESPATH = 
${@base_set_filespath([${FILE_DIRNAME}/${REALPN}, ${FILE_DIRNAME
 LICENSE = LGPLv2.1+
 LIC_FILES_CHKSUM = file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c
 
-DEPENDS = libva
+DEPENDS = libva libva-intel-driver
 
 SRC_URI = 
http://www.freedesktop.org/software/vaapi/releases/${REALPN}/${REALPN}-${PV}.tar.bz2
 \
file://install-tests.patch \

 
-SRC_URI[md5sum] = 3bd90b696b644be943450ba0c1497193
-SRC_URI[sha256sum] = 
0dd236c7bf225322b8934fdba99a7a9e4542566a2acbe7564cdc3ec2c8b73c9d
+SRC_URI[md5sum] = c8d8ba19d7d18d9e7bd455f73bb5daf2
+SRC_URI[sha256sum] = 
f6a4c657606849fb09ee2db778c80278cfa4546e9103862f273c910e208872b8
 
 S = ${WORKDIR}/${REALPN}-${PV}
 
diff --git 
a/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
index 9281b04..7ebbb1b 100644
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
@@ -1,14 +1,30 @@
-Install tests.
+From 0c915a620ac4f1f679cca21363f4e083812e42d0 Mon Sep 17 00:00:00 2001
+From: Lim Siew Hoon siew.hoon@intel.com
+Date: Wed, 22 Jul 2015 18:18:15 +0800
+Subject: [PATCH] install tests.
 
 Upstream-Status: Inappropriate
 Signed-off-by: Ross Burton ross.bur...@intel.com
 
+This patch was imported from the meta-intel git server
+(git://git.yoctoproject.org/meta-intel) as of commit id
+ccc27afc38d0190e25d7c19ebb49d5c33fba3194.
+
+A previous change had modified the test as get install
+into the system causing compilation error after apply into
+gstreamer-vaapi 0.6.0. This is due to the test under if USE_GLX
+'noinst_PROGRAMS +=' didn't replaced with 'bin_PROGRAMS +='.
+The compilation error was resolved by replaced the miss out
+'noinst_PROGRAMS +=' to 'bin_PROGRAMS +=' from existing
+implementation.
+
+Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
 ---
- tests/Makefile.am |4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
+ tests/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/tests/Makefile.am b/tests/Makefile.am
-index 2e7f191..8f65446 100644
+index 3637d92..7cc6a97 100644
 --- a/tests/Makefile.am
 +++ b/tests/Makefile.am
 @@ -1,4 +1,4 @@
@@ -17,9 +33,16 @@ index 2e7f191..8f65446 100644
simple-decoder  \
test-decode \
test-display\
-@@ -9,7 +9,7 @@ noinst_PROGRAMS = \
+@@ -9,13 +9,13 @@ noinst_PROGRAMS = \
$(NULL)
  
+ if USE_ENCODERS
+-noinst_PROGRAMS += \
++bin_PROGRAMS += \
+   simple-encoder  \
+   $(NULL)
+ endif
+ 
  if USE_GLX
 -noinst_PROGRAMS += \
 +bin_PROGRAMS += \
@@ -27,5 +50,5 @@ index 2e7f191..8f65446 100644
$(NULL)
  endif
 -- 
-1.7.10.4
+2.1.0
 
-- 
2.1.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 2/3] libva: upgrade to 1.6.0 (v2)

2015-08-11 Thread Lim Siew Hoon
The libva-intel-driver 1.6.0 version got dependecy to libva 1.6.0
VA-API 0.38 version.

For Gen9 platform support.

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 common/recipes-multimedia/libva/{libva_1.5.0.bb = libva_1.6.0.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename common/recipes-multimedia/libva/{libva_1.5.0.bb = libva_1.6.0.bb} (93%)
 mode change 100644 = 100755

diff --git a/common/recipes-multimedia/libva/libva_1.5.0.bb 
b/common/recipes-multimedia/libva/libva_1.6.0.bb
old mode 100644
new mode 100755
similarity index 93%
rename from common/recipes-multimedia/libva/libva_1.5.0.bb
rename to common/recipes-multimedia/libva/libva_1.6.0.bb
index 85fe4cd..bfce3c4
--- a/common/recipes-multimedia/libva/libva_1.5.0.bb
+++ b/common/recipes-multimedia/libva/libva_1.6.0.bb
@@ -18,8 +18,8 @@ LICENSE = MIT
 LIC_FILES_CHKSUM = file://COPYING;md5=2e48940f94acb0af582e5ef03537800f
 
 SRC_URI = 
http://www.freedesktop.org/software/vaapi/releases/libva/${BP}.tar.bz2;
-SRC_URI[md5sum] = ad0b55794308ec397d249a0a2a6df27a
-SRC_URI[sha256sum] = 
e946d4b3110e4e23ec6a588e0c828937e502c67196d1266214441fefc4b83486
+SRC_URI[md5sum] = 3f1241b4080db53c120325932f393f33
+SRC_URI[sha256sum] = 
3ad9dc9c1a6a10e9cc4234c2a1cd5e568ec0cd25145e86875eba6e0d69153458
 
 DEPENDS = libdrm virtual/mesa virtual/libgles1 virtual/libgles2 virtual/egl
 
-- 
2.1.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 0/3] Upgrade gstreamer-vaapi, libva Intel VA driver

2015-08-11 Thread Lim Siew Hoon
Those patch are target using for Gen9 platform support.

To upgrade Intel-VA driver to 1.6.0, it also needs to upgrade together with
libva 1.6.0. Because Intel-VA driver got dependecy with VA-API version 0.38,
this VA-API version only bump libva 1.6.0.

Upgrade the gstreamer-vaapi to 0.6.0 for new feature add HEVC encode.
(But I haven't test it yet.)

Tested with video decode in video format H264, HEVC, VC1, MPEG2,
JPEG/MJPEG, VP8 decode in BSW and SKL platform.

Lim Siew Hoon (3):
  gstreamer-vaapi: upgrade to 0.6.0 (v2)
  libva: upgrade to 1.6.0 (v2)
  libva-intel-driver: Upgrade to 1.6.0 (v2)

Zhao, Yakui (1):
  0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
  (Part of libva-intel-driver: Upgrade to 1.6.0 patch)

 ...-1.0_0.5.10.bb = gstreamer-vaapi-1.0_0.6.0.bb} |   0
 .../gstreamer/gstreamer-vaapi.inc  |   6 +-
 .../gstreamer/gstreamer-vaapi/install-tests.patch  |  35 -
 ...croblock-pair-to-calculate-H264-decoding-.patch | 141 +
 .../libva/libva-intel-driver/wayland-include.patch |  30 -
 ...driver_1.5.0.bb = libva-intel-driver_1.6.0.bb} |   9 +-
 .../libva/{libva_1.5.0.bb = libva_1.6.0.bb}   |   4 +-
 7 files changed, 180 insertions(+), 45 deletions(-)
 rename common/recipes-multimedia/gstreamer/{gstreamer-vaapi-1.0_0.5.10.bb = 
gstreamer-vaapi-1.0_0.6.0.bb} (100%)
 mode change 100644 = 100755
 create mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 delete mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/wayland-include.patch
 rename common/recipes-multimedia/libva/{libva-intel-driver_1.5.0.bb = 
libva-intel-driver_1.6.0.bb} (78%)
 mode change 100644 = 100755
 rename common/recipes-multimedia/libva/{libva_1.5.0.bb = libva_1.6.0.bb} (93%)
 mode change 100644 = 100755

-- 
2.1.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 3/3] libva-intel-driver: Upgrade to 1.6.0 (v2)

2015-08-11 Thread Lim Siew Hoon
For Gen9 platform support.
Tested with running some H264, H265, MPEG2, JPEG, VC1, VP8, MJPEG decode
in CHV and SKL platform.

Clean up:
Remove wayland-include.patch, code already exist in 1.6.0 version.

Add in patch:
Fix GPU hung issue patch causing by running H264 video clip with MBAFF.

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 ...croblock-pair-to-calculate-H264-decoding-.patch | 141 +
 .../libva/libva-intel-driver/wayland-include.patch |  30 -
 ...driver_1.5.0.bb = libva-intel-driver_1.6.0.bb} |   9 +-
 3 files changed, 146 insertions(+), 34 deletions(-)
 create mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 delete mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/wayland-include.patch
 rename common/recipes-multimedia/libva/{libva-intel-driver_1.5.0.bb = 
libva-intel-driver_1.6.0.bb} (78%)
 mode change 100644 = 100755

diff --git 
a/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 
b/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
new file mode 100644
index 000..fd5da79
--- /dev/null
+++ 
b/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
@@ -0,0 +1,141 @@
+From bdda6233e212e74f6d348b55906433126324130b Mon Sep 17 00:00:00 2001
+From: Zhao Yakui yakui.z...@intel.com
+Date: Tue, 7 Jul 2015 01:45:47 +0800
+Subject: [PATCH] H264: Use macroblock pair to calculate H264 decoding
+ parameter under MBAFF flag
+
+Based on the H264 spec the macroblock pair should be used to calculate
+the corresponding parameters under MBAFF.(mb-adaptive frame-field).
+Otherwise the wrong parameter is sent to GPU HW.
+
+Fix the GPU hang issue in https://bugs.freedesktop.org/show_bug.cgi?id=91207
+
+Tested-by: Lim, Siew Hoon siew.hoon@intel.com
+Signed-off-by: Zhao Yakui yakui.z...@intel.com
+
+Upstream-status: backport from upstream
+This patch was imported from the Intel VA Driver git server
+(git://anongit.freedesktop.org/vaapi/intel-driver) as of commit id
+7bb3658212f49a6f8d3d61b0b5d161aca73c2a11.
+
+This issue caught by running some H264 video under MBAFF flag, it happen in
+HSW, IVY, CHV, SKL platform as well.
+
+Signed-off-by: Lim, Siew Hoon siew.hoon@intel.com
+---
+ src/gen6_mfd.c  | 10 --
+ src/gen75_mfd.c | 10 --
+ src/gen7_mfd.c  | 10 --
+ src/gen8_mfd.c  |  9 +++--
+ 4 files changed, 31 insertions(+), 8 deletions(-)
+
+diff --git a/src/gen6_mfd.c b/src/gen6_mfd.c
+index 95a8e92..2dd05a1 100755
+--- a/src/gen6_mfd.c
 b/src/gen6_mfd.c
+@@ -551,14 +551,20 @@ gen6_mfd_avc_slice_state(VADriverContextP ctx,
+ }
+ }
+ 
+-first_mb_in_slice = slice_param-first_mb_in_slice  mbaff_picture;
++first_mb_in_slice = slice_param-first_mb_in_slice;
+ slice_hor_pos = first_mb_in_slice % width_in_mbs; 
+ slice_ver_pos = first_mb_in_slice / width_in_mbs;
+ 
++if (mbaff_picture)
++slice_ver_pos = slice_ver_pos  1;
++
+ if (next_slice_param) {
+-first_mb_in_next_slice = next_slice_param-first_mb_in_slice  
mbaff_picture;
++first_mb_in_next_slice = next_slice_param-first_mb_in_slice;
+ next_slice_hor_pos = first_mb_in_next_slice % width_in_mbs; 
+ next_slice_ver_pos = first_mb_in_next_slice / width_in_mbs;
++
++if (mbaff_picture)
++next_slice_ver_pos = next_slice_ver_pos  1;
+ } else {
+ next_slice_hor_pos = 0;
+ next_slice_ver_pos = height_in_mbs;
+diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
+index 5171bd9..11cde1f 100644
+--- a/src/gen75_mfd.c
 b/src/gen75_mfd.c
+@@ -862,14 +862,20 @@ gen75_mfd_avc_slice_state(VADriverContextP ctx,
+ num_ref_idx_l1 = slice_param-num_ref_idx_l1_active_minus1 + 1;
+ }
+ 
+-first_mb_in_slice = slice_param-first_mb_in_slice  mbaff_picture;
++first_mb_in_slice = slice_param-first_mb_in_slice;
+ slice_hor_pos = first_mb_in_slice % width_in_mbs; 
+ slice_ver_pos = first_mb_in_slice / width_in_mbs;
+ 
++if (mbaff_picture)
++slice_ver_pos = slice_ver_pos  1;
++
+ if (next_slice_param) {
+-first_mb_in_next_slice = next_slice_param-first_mb_in_slice  
mbaff_picture;
++first_mb_in_next_slice = next_slice_param-first_mb_in_slice;
+ next_slice_hor_pos = first_mb_in_next_slice % width_in_mbs; 
+ next_slice_ver_pos = first_mb_in_next_slice / width_in_mbs;
++
++if (mbaff_picture)
++next_slice_ver_pos = next_slice_ver_pos  1;
+ } else {
+ next_slice_hor_pos = 0;
+ next_slice_ver_pos = height_in_mbs / (1 + 
!!pic_param-pic_fields.bits.field_pic_flag);
+diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
+index 40a6db4..1d04ed4 100755
+--- a/src/gen7_mfd.c
 b/src/gen7_mfd.c
+@@ -556,14 +556,20

Re: [meta-intel] [PATCH 3/3] libva-intel-driver: Update to 1.6.0

2015-07-27 Thread Lim, Siew Hoon

 All patches need to contain an Upstream-Status annotation to say what the 
 state of the patch is: a backport from upstream, a fix that's been submitted 
 upstream, a change that is inappropriate for upstream (with rationale), and 
 so on.

Hi Ross,

Thanks for the advice. Noted.
Ok, I will add in the upstream status inside original commit message from 
libva-intel-driver before generate the patch. 

Thanks.
...siewhoon


-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] [PATCH 2/3] libva: upgrade to 1.6.0

2015-07-27 Thread Lim, Siew Hoon
 -Original Message-
 From: Darren Hart [mailto:dvh...@linux.intel.com]
 Sent: Saturday, July 25, 2015 2:46 AM
 To: Lim, Siew Hoon; meta-intel@yoctoproject.org
 Subject: Re: [meta-intel] [PATCH 2/3] libva: upgrade to 1.6.0
 
 On 7/23/15 11:52 PM, Lim Siew Hoon wrote:
 
 Thanks for the patch Lim Siew Hoon,
 
 As a rule, I want to see some commit message with any patch, even an
 upgrade. There is always something you can say to clarify, build context, or
 improve confidence that this is a correct and tested fix.

[Siew Hoon] Hi Darren,
To upgrade the Intel-VA driver to 1.6.0, it also needs to upgrade together with 
Libva 1.6.0. 
It is because Intel-VA driver got dependency with VA-API version 0.38, this 
VA-API version only bump in libva1.6.0 version. 
And gstreamer-vaapi 0.6.0 with right now got a lot of fixed. 
Right now yocto using 0.5.10 - 0.6.0 version (this is version going to use 
together with libva, intel-va driver 1.6.0 version).

Test with Braswell plaform will be it good enough cover the confidence level to 
accept the new upgrade? 

 
 Something about this being part of a larger upgrade to 1.6 libva-intel-driver
 and 0.6 gstreamer, that it's been tested together - on which platforms? Does
 this fix a particular issue you were facing? Do you need it for a specific
 platform only supported in this version? etc.

[Siew Hoon] 
The larger upgrade is target for Gen9 platform supported. 
Yes, and it is also for specific platform for Gen9 got 1 patch which I didn't 
include at here because it is not been upstream yet.

Thanks.
...siewhoon

 
 Thanks,
 
 
 --
 Darren Hart
 Intel Open Source Technology Center
-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 1/3] gstreamer-vaapi: upgrade to 0.6.0

2015-07-24 Thread Lim Siew Hoon
Add in depedendecy libva-intel-driver.
Update the install-test.patch based on 0.6.0 version.
A lot of major changes and bug fixes add in in 0.6.0 version.

GStreamer support corner:
  - Removed the support for GStreamer 0.10 and 1.0
  - GStreamer = 1.2 is the minimal requirement

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 .../gstreamer/gstreamer-vaapi-1.0_0.5.10.bb|  5 -
 .../gstreamer/gstreamer-vaapi-1.0_0.6.0.bb |  5 +
 .../gstreamer/gstreamer-vaapi.inc  |  6 +++---
 .../gstreamer/gstreamer-vaapi/install-tests.patch  | 25 --
 4 files changed, 26 insertions(+), 15 deletions(-)
 delete mode 100644 
common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
 create mode 100755 
common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb

diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
deleted file mode 100644
index c1c4f5a..000
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
+++ /dev/null
@@ -1,5 +0,0 @@
-require gstreamer-vaapi.inc
-
-DEPENDS += gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad
-
-GST_API_VERSION = 1.4
diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb
new file mode 100755
index 000..c1c4f5a
--- /dev/null
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb
@@ -0,0 +1,5 @@
+require gstreamer-vaapi.inc
+
+DEPENDS += gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad
+
+GST_API_VERSION = 1.4
diff --git a/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
index 64c6131..20a17a4 100644
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi.inc
@@ -9,14 +9,14 @@ FILESPATH = 
${@base_set_filespath([${FILE_DIRNAME}/${REALPN}, ${FILE_DIRNAME
 LICENSE = LGPLv2.1+
 LIC_FILES_CHKSUM = file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c
 
-DEPENDS = libva
+DEPENDS = libva libva-intel-driver
 
 SRC_URI = 
http://www.freedesktop.org/software/vaapi/releases/${REALPN}/${REALPN}-${PV}.tar.bz2
 \
file://install-tests.patch \

 
-SRC_URI[md5sum] = 3bd90b696b644be943450ba0c1497193
-SRC_URI[sha256sum] = 
0dd236c7bf225322b8934fdba99a7a9e4542566a2acbe7564cdc3ec2c8b73c9d
+SRC_URI[md5sum] = c8d8ba19d7d18d9e7bd455f73bb5daf2
+SRC_URI[sha256sum] = 
f6a4c657606849fb09ee2db778c80278cfa4546e9103862f273c910e208872b8
 
 S = ${WORKDIR}/${REALPN}-${PV}
 
diff --git 
a/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch 
b/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
index 9281b04..629354c 100644
--- a/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
+++ b/common/recipes-multimedia/gstreamer/gstreamer-vaapi/install-tests.patch
@@ -1,14 +1,18 @@
-Install tests.
+From 6c4b4379702fb2cfc095dc62c4800e8ae417a564 Mon Sep 17 00:00:00 2001
+From: Lim Siew Hoon siew.hoon@intel.com
+Date: Wed, 22 Jul 2015 18:18:15 +0800
+Subject: [PATCH] Upgrade for Install tests
 
 Upstream-Status: Inappropriate
-Signed-off-by: Ross Burton ross.bur...@intel.com
+Based on gstreamer-vaapi 0.6.0 version.
 
+Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
 ---
- tests/Makefile.am |4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
+ tests/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/tests/Makefile.am b/tests/Makefile.am
-index 2e7f191..8f65446 100644
+index 3637d92..7cc6a97 100644
 --- a/tests/Makefile.am
 +++ b/tests/Makefile.am
 @@ -1,4 +1,4 @@
@@ -17,9 +21,16 @@ index 2e7f191..8f65446 100644
simple-decoder  \
test-decode \
test-display\
-@@ -9,7 +9,7 @@ noinst_PROGRAMS = \
+@@ -9,13 +9,13 @@ noinst_PROGRAMS = \
$(NULL)
  
+ if USE_ENCODERS
+-noinst_PROGRAMS += \
++bin_PROGRAMS += \
+   simple-encoder  \
+   $(NULL)
+ endif
+ 
  if USE_GLX
 -noinst_PROGRAMS += \
 +bin_PROGRAMS += \
@@ -27,5 +38,5 @@ index 2e7f191..8f65446 100644
$(NULL)
  endif
 -- 
-1.7.10.4
+2.1.0
 
-- 
2.1.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 3/3] libva-intel-driver: Update to 1.6.0

2015-07-24 Thread Lim Siew Hoon
Remove wayland-include.patch, code already upstream.
Add fix GPU hung issue patch, already upstream but caught it after 1.6.0.

Signed-off-by: Lim Siew Hoon siew.hoon@intel.com
---
 ...croblock-pair-to-calculate-H264-decoding-.patch | 131 +
 .../libva/libva-intel-driver/wayland-include.patch |  30 -
 .../libva/libva-intel-driver_1.5.0.bb  |  31 -
 .../libva/libva-intel-driver_1.6.0.bb  |  32 +
 4 files changed, 163 insertions(+), 61 deletions(-)
 create mode 100755 
common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 delete mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/wayland-include.patch
 delete mode 100644 common/recipes-multimedia/libva/libva-intel-driver_1.5.0.bb
 create mode 100755 common/recipes-multimedia/libva/libva-intel-driver_1.6.0.bb

diff --git 
a/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 
b/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
new file mode 100755
index 000..d5a6e14
--- /dev/null
+++ 
b/common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
@@ -0,0 +1,131 @@
+From 536ab400ac4b8d3c21233b174a540ce725a9fd3a Mon Sep 17 00:00:00 2001
+From: Zhao Yakui yakui.z...@intel.com
+Date: Tue, 7 Jul 2015 01:45:47 +0800
+Subject: [PATCH] H264: Use macroblock pair to calculate H264 decoding
+ parameter under MBAFF flag
+
+Based on the H264 spec the macroblock pair should be used to calculate
+the corresponding parameters under MBAFF.(mb-adaptive frame-field).
+Otherwise the wrong parameter is sent to GPU HW.
+
+Fix the GPU hang issue in https://bugs.freedesktop.org/show_bug.cgi?id=91207
+
+Tested-by: Lim, Siew Hoon siew.hoon@intel.com
+Signed-off-by: Zhao Yakui yakui.z...@intel.com
+---
+ src/gen6_mfd.c  | 10 --
+ src/gen75_mfd.c | 10 --
+ src/gen7_mfd.c  | 10 --
+ src/gen8_mfd.c  |  9 +++--
+ 4 files changed, 31 insertions(+), 8 deletions(-)
+
+diff --git a/src/gen6_mfd.c b/src/gen6_mfd.c
+index 95a8e92..2dd05a1 100755
+--- a/src/gen6_mfd.c
 b/src/gen6_mfd.c
+@@ -551,14 +551,20 @@ gen6_mfd_avc_slice_state(VADriverContextP ctx,
+ }
+ }
+ 
+-first_mb_in_slice = slice_param-first_mb_in_slice  mbaff_picture;
++first_mb_in_slice = slice_param-first_mb_in_slice;
+ slice_hor_pos = first_mb_in_slice % width_in_mbs; 
+ slice_ver_pos = first_mb_in_slice / width_in_mbs;
+ 
++if (mbaff_picture)
++slice_ver_pos = slice_ver_pos  1;
++
+ if (next_slice_param) {
+-first_mb_in_next_slice = next_slice_param-first_mb_in_slice  
mbaff_picture;
++first_mb_in_next_slice = next_slice_param-first_mb_in_slice;
+ next_slice_hor_pos = first_mb_in_next_slice % width_in_mbs; 
+ next_slice_ver_pos = first_mb_in_next_slice / width_in_mbs;
++
++if (mbaff_picture)
++next_slice_ver_pos = next_slice_ver_pos  1;
+ } else {
+ next_slice_hor_pos = 0;
+ next_slice_ver_pos = height_in_mbs;
+diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
+index 5171bd9..11cde1f 100644
+--- a/src/gen75_mfd.c
 b/src/gen75_mfd.c
+@@ -862,14 +862,20 @@ gen75_mfd_avc_slice_state(VADriverContextP ctx,
+ num_ref_idx_l1 = slice_param-num_ref_idx_l1_active_minus1 + 1;
+ }
+ 
+-first_mb_in_slice = slice_param-first_mb_in_slice  mbaff_picture;
++first_mb_in_slice = slice_param-first_mb_in_slice;
+ slice_hor_pos = first_mb_in_slice % width_in_mbs; 
+ slice_ver_pos = first_mb_in_slice / width_in_mbs;
+ 
++if (mbaff_picture)
++slice_ver_pos = slice_ver_pos  1;
++
+ if (next_slice_param) {
+-first_mb_in_next_slice = next_slice_param-first_mb_in_slice  
mbaff_picture;
++first_mb_in_next_slice = next_slice_param-first_mb_in_slice;
+ next_slice_hor_pos = first_mb_in_next_slice % width_in_mbs; 
+ next_slice_ver_pos = first_mb_in_next_slice / width_in_mbs;
++
++if (mbaff_picture)
++next_slice_ver_pos = next_slice_ver_pos  1;
+ } else {
+ next_slice_hor_pos = 0;
+ next_slice_ver_pos = height_in_mbs / (1 + 
!!pic_param-pic_fields.bits.field_pic_flag);
+diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
+index 40a6db4..1d04ed4 100755
+--- a/src/gen7_mfd.c
 b/src/gen7_mfd.c
+@@ -556,14 +556,20 @@ gen7_mfd_avc_slice_state(VADriverContextP ctx,
+ num_ref_idx_l1 = slice_param-num_ref_idx_l1_active_minus1 + 1;
+ }
+ 
+-first_mb_in_slice = slice_param-first_mb_in_slice  mbaff_picture;
++first_mb_in_slice = slice_param-first_mb_in_slice;
+ slice_hor_pos = first_mb_in_slice % width_in_mbs; 
+ slice_ver_pos = first_mb_in_slice / width_in_mbs;
+ 
++if (mbaff_picture)
++slice_ver_pos = slice_ver_pos  1;
++
+ if (next_slice_param

[meta-intel] [PATCH 0/3] Update Intel VA driver Gstreamer-vaapi

2015-07-24 Thread Lim Siew Hoon
Update libva to 1.6.0, libva-intel-driver to 1.6.0
Update gstreamer-vaapi to 0.6.0
Removed wayland-include.patch, code changed already in 1.6.0
Add GPU Hung issue for certain H264 video format
Update install-test.patch for gstreamer-vaapi update to 0.6.0


Lim Siew Hoon (3):
  gstreamer-vaapi: upgrade to 0.6.0
  libva: upgrade to 1.6.0
  libva-intel-driver: Update to 1.6.0

Zhao, Yakui (1):
  0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch

 .../gstreamer/gstreamer-vaapi-1.0_0.5.10.bb|   5 -
 .../gstreamer/gstreamer-vaapi-1.0_0.6.0.bb |   5 +
 .../gstreamer/gstreamer-vaapi.inc  |   6 +-
 .../gstreamer/gstreamer-vaapi/install-tests.patch  |  25 ++--
 ...croblock-pair-to-calculate-H264-decoding-.patch | 131 +
 .../libva/libva-intel-driver/wayland-include.patch |  30 -
 .../libva/libva-intel-driver_1.5.0.bb  |  31 -
 .../libva/libva-intel-driver_1.6.0.bb  |  32 +
 common/recipes-multimedia/libva/libva_1.5.0.bb |  48 
 common/recipes-multimedia/libva/libva_1.6.0.bb |  48 
 10 files changed, 237 insertions(+), 124 deletions(-)
 delete mode 100644 
common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.5.10.bb
 create mode 100755 
common/recipes-multimedia/gstreamer/gstreamer-vaapi-1.0_0.6.0.bb
 create mode 100755 
common/recipes-multimedia/libva/libva-intel-driver/0001-H264-Use-macroblock-pair-to-calculate-H264-decoding-.patch
 delete mode 100644 
common/recipes-multimedia/libva/libva-intel-driver/wayland-include.patch
 delete mode 100644 common/recipes-multimedia/libva/libva-intel-driver_1.5.0.bb
 create mode 100755 common/recipes-multimedia/libva/libva-intel-driver_1.6.0.bb
 delete mode 100644 common/recipes-multimedia/libva/libva_1.5.0.bb
 create mode 100755 common/recipes-multimedia/libva/libva_1.6.0.bb

-- 
2.1.0

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel