OSDN Git Service

android-x86/hardware-intel-intel-driver.git
7 years agoAndroid: fix Android build cm-13.0-x86 cm-14.0-x86 cm-14.1-x86
Jaap Jan Meijer [Tue, 26 Jul 2016 10:27:19 +0000 (12:27 +0200)]
Android: fix Android build

7 years agolibva-intel-driver 1.7.1
Xiang, Haihao [Tue, 21 Jun 2016 01:51:33 +0000 (09:51 +0800)]
libva-intel-driver 1.7.1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoUpdate NEWS
Xiang, Haihao [Thu, 2 Jun 2016 16:57:58 +0000 (00:57 +0800)]
Update NEWS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoFix the potential NULL issue
Zhao Yakui [Tue, 7 Jun 2016 12:56:42 +0000 (08:56 -0400)]
Fix the potential NULL issue

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
7 years agoRestrict the VP9 HW encoding for Profile0
Zhao Yakui [Tue, 7 Jun 2016 12:56:41 +0000 (08:56 -0400)]
Restrict the VP9 HW encoding for Profile0

Fix the issue that VP9 HW encoding is reported incorrectly for VP9 Profile2.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
7 years agolibdrm 2.4.52 is required to avoid the compiler error
Xiang, Haihao [Wed, 4 May 2016 17:36:25 +0000 (01:36 +0800)]
libdrm 2.4.52 is required to avoid the compiler error

  CC       i965_drv_video_la-intel_batchbuffer.lo
intel_batchbuffer.c: In function 'intel_batchbuffer_emit_reloc64':
intel_batchbuffer.c:183:24: error: 'drm_intel_bo' has no member named 'offset64'
    uint64_t offset = bo->offset64 + delta;
                        ^
make[3]: *** [i965_drv_video_la-intel_batchbuffer.lo] Error 1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoDon't check WAYLAND_SCANNER if wayland isn't used or found
Xiang, Haihao [Wed, 4 May 2016 08:48:15 +0000 (16:48 +0800)]
Don't check WAYLAND_SCANNER if wayland isn't used or found

checking for WAYLAND... no
checking for LIBVA_WAYLAND_DEPS... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for WAYLAND_SCANNER... no
configure: error: Package requirements (wayland-scanner) were not met:

No package 'wayland-scanner' found

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoRemove extraneous OUT_BATCH in gen8_gpe_state_base_address
Scott D Phillips [Tue, 31 May 2016 23:38:51 +0000 (16:38 -0700)]
Remove extraneous OUT_BATCH in gen8_gpe_state_base_address

Line accidentally left behind in:

  a82f0be Fix the 48-bit address issue for gpe_util functions on

Signed-off-by: Scott D Phillips <scott.d.phillips@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
7 years agoUpdate the dependency on VA-API version
Xiang, Haihao [Fri, 27 May 2016 05:12:30 +0000 (13:12 +0800)]
Update the dependency on VA-API version

VA-API 0.39.2 is required for VP9 encode

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoExport the VBR bit rate-control for VP9 encoding on KBL
Zhao Yakui [Tue, 24 May 2016 12:00:38 +0000 (08:00 -0400)]
Export the VBR bit rate-control for VP9 encoding on KBL

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd the support of CBR/VBR for Vp9 Encoding
Zhao Yakui [Tue, 24 May 2016 12:00:37 +0000 (08:00 -0400)]
Add the support of CBR/VBR for Vp9 Encoding

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoRelease the corresponding buffers for VP9 encoding
Zhao Yakui [Tue, 24 May 2016 12:00:36 +0000 (08:00 -0400)]
Release the corresponding buffers for VP9 encoding

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoExport the Vp9 encoding profile/entrypoint for KBL
Zhao Yakui [Tue, 24 May 2016 12:00:35 +0000 (08:00 -0400)]
Export the Vp9 encoding profile/entrypoint for KBL

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd the low-level implementation of VP9 encoding
Zhao Yakui [Tue, 24 May 2016 12:00:34 +0000 (08:00 -0400)]
Add the low-level implementation of VP9 encoding

The following are includes:
a. The definition of data structure related with VP9 encoding
b. VME/PAK pipeline related with VP9 encoding
c. The required helper function

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd some utility functions for i965_gpe_resources
Zhao Yakui [Tue, 24 May 2016 12:00:33 +0000 (08:00 -0400)]
Add some utility functions for i965_gpe_resources

This is to add the wrapper function required by vp9 encoding.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd the VAEncMacroblockMapBufferType buffer for encoding
Zhao Yakui [Tue, 24 May 2016 12:00:32 +0000 (08:00 -0400)]
Add the VAEncMacroblockMapBufferType buffer for encoding

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoFix the 48-bit address issue for gpe_util functions on gen8+
Zhao Yakui [Tue, 24 May 2016 12:00:31 +0000 (08:00 -0400)]
Fix the 48-bit address issue for gpe_util functions on gen8+

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoUse the buffer allocated externally to configure dynamic state for gpe_context on...
Zhao Yakui [Tue, 24 May 2016 12:00:30 +0000 (08:00 -0400)]
Use the buffer allocated externally to configure dynamic state for gpe_context on Gen8+

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd one field to keep the specific priv_state for encoding
Zhao Yakui [Tue, 24 May 2016 12:00:29 +0000 (08:00 -0400)]
Add one field to keep the specific priv_state for encoding

It will be better that it is allocated/initialized in calling the
XXX_vme_context_init callback function.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd common helper functions for VP9 Hw encoding
Zhao Yakui [Tue, 24 May 2016 12:00:28 +0000 (08:00 -0400)]
Add common helper functions for VP9 Hw encoding

Some are to initialize/update the frame_context related with VP9.
The second is to initialize the uncompressed_header, which can be used
when the user doesn't pass the uncompressed_header.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoRefine vp9_probs.h so that the prob table can be used for encoding
Zhao Yakui [Tue, 24 May 2016 12:00:27 +0000 (08:00 -0400)]
Refine vp9_probs.h so that the prob table can be used for encoding

Otherwise the prob definition will be defined twice if it is included
in two files.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAvoid potential NULL pointer access
Xiang, Haihao [Mon, 23 May 2016 03:07:43 +0000 (11:07 +0800)]
Avoid potential NULL pointer access

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
7 years agoUpdate the dependency on VA-API version
Xiang, Haihao [Wed, 11 May 2016 02:58:30 +0000 (10:58 +0800)]
Update the dependency on VA-API version

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
7 years agoExport Low power encoding for H.264 on SKL
Xiang, Haihao [Mon, 23 Nov 2015 02:59:45 +0000 (10:59 +0800)]
Export Low power encoding for H.264 on SKL

Only CQP mode is supported by now

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoImplement low power mode on SKL
Xiang, Haihao [Tue, 29 Sep 2015 06:41:30 +0000 (14:41 +0800)]
Implement low power mode on SKL

VDEnc is one of the fixed function pipelines in VDBox which is a dedicated
engine for low power mode

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd support for VAEntrypointEncSliceLP
Xiang, Haihao [Tue, 19 Jan 2016 05:23:36 +0000 (13:23 +0800)]
Add support for VAEntrypointEncSliceLP

VAEntrypointEncSliceLP is used to expose low power variant of slice level
encoding entrypoint and we will implement low power encoding on SKL

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd a path to fetch encoder status from the underlying context
Xiang, Haihao [Tue, 10 Nov 2015 07:04:04 +0000 (15:04 +0800)]
Add a path to fetch encoder status from the underlying context

We can use it to get the coded buffer size if the underlying context support status query

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoMake intel_avc_find_skipemulcnt() a public function
Xiang, Haihao [Thu, 21 Jan 2016 07:52:24 +0000 (15:52 +0800)]
Make intel_avc_find_skipemulcnt() a public function

In addition, move intel_avc_find_skipemulcnt() to i965_encoder_utils.c

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd some utility functions for MI commands for GEN9
Xiang, Haihao [Fri, 9 Oct 2015 02:46:24 +0000 (10:46 +0800)]
Add some utility functions for MI commands for GEN9

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd 'struct i965_gpe_resource' and related utility functions
Xiang, Haihao [Fri, 9 Oct 2015 02:46:24 +0000 (10:46 +0800)]
Add 'struct i965_gpe_resource' and related utility functions

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoInrease the maximum number of attributes
Xiang, Haihao [Mon, 25 Jan 2016 05:50:32 +0000 (13:50 +0800)]
Inrease the maximum number of attributes

We will add more attributes in the driver

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd a flag for skylake in struct intel_device_info
Xiang, Haihao [Wed, 2 Mar 2016 04:48:26 +0000 (12:48 +0800)]
Add a flag for skylake in struct intel_device_info

In addition, add IS_SKL() and IS_BXT() for later usage

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
7 years agoAdd OUT_BCS_RELOC64() to support 48-bit address relocations on BCS
Xiang, Haihao [Tue, 19 Jan 2016 05:31:29 +0000 (13:31 +0800)]
Add OUT_BCS_RELOC64() to support 48-bit address relocations on BCS

We will use this MACRO later

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>
8 years agoadd the support of 8-aligned size setting for hevc encoding
peng.chen [Mon, 25 Apr 2016 05:42:50 +0000 (13:42 +0800)]
add the support of 8-aligned size setting for hevc encoding

v2:
disable drop cu flag for 16-aliged size

v1:
created

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoSet the right alignment on BXT/KBL
Xiang, Haihao [Mon, 11 Apr 2016 08:22:18 +0000 (16:22 +0800)]
Set the right alignment on BXT/KBL

With the commit 'CSC: Remove average logic when saving NV12 surface on IVB+',
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=94845 on BXT/KBL

Reviewed-by: Kelley, Sean V <sean.v.kelley@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoCSC: Remove average logic when saving NV12 surface on IVB+
Xiang, Haihao [Thu, 7 Apr 2016 04:03:55 +0000 (12:03 +0800)]
CSC: Remove average logic when saving NV12 surface on IVB+

This fixes the issue mentioned in https://bugs.freedesktop.org/show_bug.cgi?id=94845 on
IVB+(except BXT/KBL)

v2: Remove the adding <1> in GEN7 shader (Emil)

Cc: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Reviewed-by: Kelley, Sean V <sean.v.kelley@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoRestrict the hybrid Vp9 usage on the platform without Vp9 HWDEC
Zhao Yakui [Thu, 21 Apr 2016 20:49:12 +0000 (16:49 -0400)]
Restrict the hybrid Vp9 usage on the platform without Vp9 HWDEC

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agofix the FPS caculation error for HEVC encoder
peng.chen [Thu, 7 Apr 2016 02:36:21 +0000 (10:36 +0800)]
fix the FPS caculation error for HEVC encoder

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agooptimize the internal prob buffer management
peng.chen [Tue, 5 Apr 2016 06:50:45 +0000 (14:50 +0800)]
optimize the internal prob buffer management

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoCSC: Set the right filter mode for YUY2/UYVY surface on BDW+
Xiang, Haihao [Thu, 31 Mar 2016 07:38:17 +0000 (15:38 +0800)]
CSC: Set the right filter mode for YUY2/UYVY surface on BDW+

AVS doesn't support mode 3 for YUY2/UYVY surface

https://bugs.freedesktop.org/show_bug.cgi?id=94765

Cc: James Tang <jun.tang@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoupdate PIPE_MODE command setting for VP9 decoding
peng.chen [Wed, 16 Mar 2016 07:08:17 +0000 (15:08 +0800)]
update PIPE_MODE command setting for VP9 decoding

v2:
modify the commit message

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agovp9_decoding: disable all seg reference for key frame or intra_only enabled frame
peng.chen [Tue, 15 Mar 2016 07:11:10 +0000 (15:11 +0800)]
vp9_decoding: disable all seg reference for key frame or intra_only enabled frame

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years ago1.7.1.pre1 for development
Xiang, Haihao [Thu, 17 Mar 2016 00:59:14 +0000 (08:59 +0800)]
1.7.1.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoMerge remote-tracking branch 'fdo/v1.7-branch' into fdo--master
Xiang, Haihao [Thu, 17 Mar 2016 00:58:06 +0000 (08:58 +0800)]
Merge remote-tracking branch 'fdo/v1.7-branch' into fdo--master

8 years agolibva-intel-driver 1.7.0
Xiang, Haihao [Tue, 15 Mar 2016 06:44:45 +0000 (14:44 +0800)]
libva-intel-driver 1.7.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agofix memory leak in jpeg encoding
James Tang [Thu, 10 Mar 2016 07:09:00 +0000 (15:09 +0800)]
fix memory leak in jpeg encoding

Signed-off-by: James Tang <jun.tang@intel.com>
8 years agoUpdate NEWS and README
Xiang, Haihao [Fri, 4 Mar 2016 04:41:37 +0000 (12:41 +0800)]
Update NEWS and README

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoRemove duplicate H264MultiviewHigh and H264StereoHigh in the profile list
Xiang, Haihao [Thu, 3 Mar 2016 04:02:56 +0000 (12:02 +0800)]
Remove duplicate H264MultiviewHigh and H264StereoHigh in the profile list

Otherwise vainfo got duplicate print message that list out the video format
support for H264MultiviewHigh, H264StereoHigh.

Reported-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Tested-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoFix a potential infinite loop
Xiang, Haihao [Thu, 3 Mar 2016 02:01:19 +0000 (10:01 +0800)]
Fix a potential infinite loop

It will result in infinite loop if the input fourcc isn't supported
by the driver. This issue is reported by Guangxin

Cc: Xu, Guangxin <Guangxin.Xu@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoAdd missing SKL/BXT PCI IDs
Xiang, Haihao [Tue, 1 Mar 2016 05:00:52 +0000 (13:00 +0800)]
Add missing SKL/BXT PCI IDs

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years ago1.7.0.pre1 for development
Xiang, Haihao [Thu, 3 Mar 2016 05:17:29 +0000 (13:17 +0800)]
1.7.0.pre1 for development

Update the dependency on VA-API as well

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoMerge remote-tracking branch 'fdo/v1.6-branch' into fdo--master
Xiang, Haihao [Thu, 3 Mar 2016 05:14:16 +0000 (13:14 +0800)]
Merge remote-tracking branch 'fdo/v1.6-branch' into fdo--master

8 years agosupport VP9 profile2 10bits decoding
peng.chen [Wed, 27 Jan 2016 07:13:43 +0000 (15:13 +0800)]
support VP9 profile2 10bits decoding

v2:
ignore bit_depth for profile0,1
add the support of enum VAProfileVP9Profile2

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>
(cherry picked from commit f6fe8428cc395771659a010222d0e3774b876535)

8 years agoKBL driver enabling
Peng Chen [Wed, 27 Jan 2016 07:01:25 +0000 (15:01 +0800)]
KBL driver enabling

v2:
remove the file mode change

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>
(cherry picked from commit 5fb654b2577be19005bd9792a0b62c3ac1d2395b)

8 years agoset the minimum of vp9 deocding frame width and height as 1, not 8
peng.chen [Mon, 25 Jan 2016 01:55:36 +0000 (09:55 +0800)]
set the minimum of vp9 deocding frame width and height as 1, not 8

Signed-off-by: peng.chen <peng.c.chen@intel.com>
(cherry picked from commit 99ae37b2e2d29be0c00447f26ccab294a2bcc2d9)

8 years agodon't mask 8bit NV12 surface supporting for hevc main10 profile
peng.chen [Mon, 25 Jan 2016 01:54:25 +0000 (09:54 +0800)]
don't mask 8bit NV12 surface supporting for hevc main10 profile

Signed-off-by: peng.chen <peng.c.chen@intel.com>
(cherry picked from commit f96392ce2479c8cadef30a923c985b62fa4091c0)

8 years agosupport VP9 profile2 10bits decoding
peng.chen [Wed, 27 Jan 2016 07:13:43 +0000 (15:13 +0800)]
support VP9 profile2 10bits decoding

v2:
ignore bit_depth for profile0,1
add the support of enum VAProfileVP9Profile2

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoKBL driver enabling
Peng Chen [Wed, 27 Jan 2016 07:01:25 +0000 (15:01 +0800)]
KBL driver enabling

v2:
remove the file mode change

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoset the minimum of vp9 deocding frame width and height as 1, not 8
peng.chen [Mon, 25 Jan 2016 01:55:36 +0000 (09:55 +0800)]
set the minimum of vp9 deocding frame width and height as 1, not 8

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agodon't mask 8bit NV12 surface supporting for hevc main10 profile
peng.chen [Mon, 25 Jan 2016 01:54:25 +0000 (09:54 +0800)]
don't mask 8bit NV12 surface supporting for hevc main10 profile

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoMerge remote-tracking branch 'fdo/master' into v1.6-branch
Xiang, Haihao [Fri, 15 Jan 2016 01:21:52 +0000 (09:21 +0800)]
Merge remote-tracking branch 'fdo/master' into v1.6-branch

Conflicts:
configure.ac
src/gen9_mfd.c
src/gen9_mfd.h
src/i965_device_info.c
src/i965_drv_video.c
src/i965_drv_video.h
src/intel_media_common.c

8 years agoP010(10bits) enabling in vaCreateImage(), vaGetImage(), vaPutImage()
peng.chen [Wed, 13 Jan 2016 07:34:11 +0000 (15:34 +0800)]
P010(10bits) enabling in vaCreateImage(), vaGetImage(), vaPutImage()

1, don't support the conversion from NV12 or other 8bits formats to P010
2, don't support scaling for P010->P010

v2:
add GEN arch limitation for vebox_processing_simple()

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoVPP P010(10bits) enabling
peng.chen [Wed, 13 Jan 2016 07:31:37 +0000 (15:31 +0800)]
VPP P010(10bits) enabling

v2:
1, remove VPP P016 related code
2, optimize NV12->P010
3, enable IECP if all DI&DN are disabled

v1:
initial

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoonly re-caculate surface width&height for tiled surface
peng.chen [Thu, 7 Jan 2016 00:54:34 +0000 (08:54 +0800)]
only re-caculate surface width&height for tiled surface

fix Bug 93499 - daf8f6c762874 introduced display corruption on i3 330M
https://bugs.freedesktop.org/show_bug.cgi?id=93499

Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoVP9HWDEC:fix vp9 hw decoder issue
Pengfei Qu [Tue, 29 Dec 2015 08:09:24 +0000 (16:09 +0800)]
VP9HWDEC:fix vp9 hw decoder issue

v2:
codes change according to haihao's comments

v1:
1. fix one segmentent fault issue
2. change and optimize the mv bufffer update the logic
3. fix one segment feature issue
4. fix one issue when loopfilter level is zero.

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
8 years agolibva-intel-driver 1.6.2
Xiang, Haihao [Tue, 15 Dec 2015 05:59:37 +0000 (13:59 +0800)]
libva-intel-driver 1.6.2

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoAdd assert checking for allocated gen9_vp9_surface
Lim Siew Hoon [Thu, 10 Dec 2015 08:07:47 +0000 (16:07 +0800)]
Add assert checking for allocated gen9_vp9_surface

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
8 years ago1.6.3.pre1 for development
Xiang, Haihao [Sun, 13 Dec 2015 17:18:57 +0000 (01:18 +0800)]
1.6.3.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoversion 1.6.2.pre2
Xiang, Haihao [Mon, 7 Dec 2015 07:15:17 +0000 (15:15 +0800)]
version 1.6.2.pre2

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoUpdate NEWS and README
Xiang, Haihao [Mon, 7 Dec 2015 07:03:08 +0000 (15:03 +0800)]
Update NEWS and README

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoKeep backward compatibility with VA API 0.38.0
Xiang, Haihao [Mon, 7 Dec 2015 05:13:26 +0000 (13:13 +0800)]
Keep backward compatibility with VA API 0.38.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 9ce333f193fa0f56ec09b9f5b2f4823461f48776)

8 years agoKeep backward compatibility with VA API 0.38.0
Xiang, Haihao [Mon, 7 Dec 2015 05:13:26 +0000 (13:13 +0800)]
Keep backward compatibility with VA API 0.38.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoExport VP9 decoding on BXT
Sirisha Muppavarapu [Thu, 29 Oct 2015 19:43:21 +0000 (03:43 +0800)]
Export VP9 decoding on BXT

Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
(cherry picked from commit e16f923193a10f78f5462db7efa4e89e242fca93)

8 years agoVP9 HWDec:change the name vp8_xxx to vpx_xxx and share it with VP9
Pengfei Qu [Thu, 22 Oct 2015 08:55:04 +0000 (04:55 -0400)]
VP9 HWDec:change the name vp8_xxx to vpx_xxx and share it with VP9

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 6859ab7a51650cbcfa8159a37cf8d1485d162ad4)

8 years agoVP9 HWDec: add VP9 HW decoding pipeline
Pengfei Qu [Thu, 22 Oct 2015 08:51:38 +0000 (04:51 -0400)]
VP9 HWDec: add VP9 HW decoding pipeline

v2: fix sengment feature in inter frame

v3: update the prob buffer logic

v4: fix intra-only feature issue

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 8f1e1015a4cc8c08dd685f80829ca1555ae1cab1)

8 years agoVP9 HWDec:add vp9 parameter check function before decoding
Pengfei Qu [Thu, 22 Oct 2015 08:40:51 +0000 (04:40 -0400)]
VP9 HWDec:add vp9 parameter check function before decoding

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 833fa7715d28b89af4bd661e3f2cac72345c9a27)

8 years agoVP9 HWDec:add vp9 surface structure and related parameter
Pengfei Qu [Thu, 22 Oct 2015 08:39:07 +0000 (04:39 -0400)]
VP9 HWDec:add vp9 surface structure and related parameter

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit f36ab3413f814c80f4df4f4570f4ef9a1168b624)

8 years agoVP9 HWDEC:add vp9 table file
Sirisha Muppavarapu [Thu, 22 Oct 2015 08:31:40 +0000 (04:31 -0400)]
VP9 HWDEC:add vp9 table file

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 9bc5ecadd4ea11ebab1e383632be3448eb8411f4)

8 years agoVP9 HWDec: Added profile and entrypoint for VAProfileVP9Profile0 in the driver
Sirisha Muppavarapu [Thu, 28 May 2015 15:08:52 +0000 (08:08 -0700)]
VP9 HWDec: Added profile and entrypoint for VAProfileVP9Profile0 in the driver

v2: don't export VP9 decoding on BXT because VP9 decoding isn't enabled (Peng)

Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit bcab944bc6e898e209b1e09befb81134c31a0b22)

8 years agoAdd support for P010 in vaPutSurface() in a X window system
Xiang, Haihao [Tue, 7 Jul 2015 08:32:14 +0000 (16:32 +0800)]
Add support for P010 in vaPutSurface() in a X window system

Currently it converts P010 to RGBA32 because the drawable to vaPutSurface() is RGBA color

v2: P010 has interleaved UV planar (Peng)

v3: change commit log

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit bace1e29c669f3fe47cb41c57fc817b493fc7882)

8 years agosupport HEVC 10bits decoding
Peng Chen [Mon, 15 Jun 2015 14:28:22 +0000 (22:28 +0800)]
support HEVC 10bits decoding

v2: code cleanup

v3: store shift in an int to make it more readable (Emil)

Signed-off-by: Peng Chen <peng.c.chen@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit 5ec92f48aeff12c7db0a96b65aca44feb4965d92)

8 years agoInitial support for Broxton in the intel-driver
Sirisha Muppavarapu [Thu, 29 Jan 2015 14:41:04 +0000 (06:41 -0800)]
Initial support for Broxton in the intel-driver

Added PCIIDs, Device info and the relevant code.

Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
[Peng: disable MPEG-2 encoding on BXT]
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 70fe9ba8cf83e27c48f80767565149c7d40ea665)

8 years agoExport VP9 decoding on BXT
Sirisha Muppavarapu [Thu, 29 Oct 2015 19:43:21 +0000 (03:43 +0800)]
Export VP9 decoding on BXT

Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
8 years agoVP9 HWDec:change the name vp8_xxx to vpx_xxx and share it with VP9
Pengfei Qu [Thu, 22 Oct 2015 08:55:04 +0000 (04:55 -0400)]
VP9 HWDec:change the name vp8_xxx to vpx_xxx and share it with VP9

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoVP9 HWDec: add VP9 HW decoding pipeline
Pengfei Qu [Thu, 22 Oct 2015 08:51:38 +0000 (04:51 -0400)]
VP9 HWDec: add VP9 HW decoding pipeline

v2: fix sengment feature in inter frame

v3: update the prob buffer logic

v4: fix intra-only feature issue

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoVP9 HWDec:add vp9 parameter check function before decoding
Pengfei Qu [Thu, 22 Oct 2015 08:40:51 +0000 (04:40 -0400)]
VP9 HWDec:add vp9 parameter check function before decoding

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoVP9 HWDec:add vp9 surface structure and related parameter
Pengfei Qu [Thu, 22 Oct 2015 08:39:07 +0000 (04:39 -0400)]
VP9 HWDec:add vp9 surface structure and related parameter

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoVP9 HWDEC:add vp9 table file
Sirisha Muppavarapu [Thu, 22 Oct 2015 08:31:40 +0000 (04:31 -0400)]
VP9 HWDEC:add vp9 table file

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoVP9 HWDec: Added profile and entrypoint for VAProfileVP9Profile0 in the driver
Sirisha Muppavarapu [Thu, 28 May 2015 15:08:52 +0000 (08:08 -0700)]
VP9 HWDec: Added profile and entrypoint for VAProfileVP9Profile0 in the driver

v2: don't export VP9 decoding on BXT because VP9 decoding isn't enabled (Peng)

Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoAdd support for P010 in vaPutSurface() in a X window system
Xiang, Haihao [Tue, 7 Jul 2015 08:32:14 +0000 (16:32 +0800)]
Add support for P010 in vaPutSurface() in a X window system

Currently it converts P010 to RGBA32 because the drawable to vaPutSurface() is RGBA color

v2: P010 has interleaved UV planar (Peng)

v3: change commit log

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
8 years agosupport HEVC 10bits decoding
Peng Chen [Mon, 15 Jun 2015 14:28:22 +0000 (22:28 +0800)]
support HEVC 10bits decoding

v2: code cleanup

v3: store shift in an int to make it more readable (Emil)

Signed-off-by: Peng Chen <peng.c.chen@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
8 years agoInitial support for Broxton in the intel-driver
Sirisha Muppavarapu [Thu, 29 Jan 2015 14:41:04 +0000 (06:41 -0800)]
Initial support for Broxton in the intel-driver

Added PCIIDs, Device info and the relevant code.

Signed-off-by: Sirisha Muppavarapu <sirisha.muppavarapu@intel.com>
[Peng: disable MPEG-2 encoding on BXT]
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoUpdate NEWS
Xiang, Haihao [Fri, 27 Nov 2015 04:44:07 +0000 (12:44 +0800)]
Update NEWS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoFix for ring hung issue in SNB platform.
Lim Siew Hoon [Wed, 18 Nov 2015 08:56:22 +0000 (16:56 +0800)]
Fix for ring hung issue in SNB platform.

This issue is trigger by the fixed from
commit id: 7deaf55d3f927e32e0b2280601dae106c7b9e3d8
use to fix segmentation fault issue by checking dst_object->bo
is NULL and VA_STATUS_ERROR_UNIMPLEMENTED in i965_proc_picture_fast
function will causing GPU hung in ring.

By disable the PPGTT, no more GPU hang issue.

If return VA_STATUS_ERROR_INVALID_SURFACE for checking only
dst_obj->bo is NULL, it is working fine without purposely to
disable PPGTT.

End up decided to use VA_STATUS_ERROR_INVALID_SURFACE instead
VA_STATUS_ERROR_UNIMPLEMENTED for dst_obj->bo checking in
i965_proc_picture_fast.

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Reviewed-by: Kelley, Sean V" <sean.v.kelley@intel.com>
8 years agoHEVC ENC:add CBR feature.
Pengfei Qu [Mon, 9 Nov 2015 04:04:27 +0000 (12:04 +0800)]
HEVC ENC:add CBR feature.

Signed-off-by: Pengfei Qu <pengfei.qu@intel.com>
[Haihao: Fix build warning]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoUpdate README
Xiang, Haihao [Mon, 2 Nov 2015 01:52:58 +0000 (09:52 +0800)]
Update README

It adds platform definitions and the supported codecs, fixes the required
libva version.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
8 years agoFix correct coordinate dst_rect->x with 4 alignment
Lim Siew Hoon [Mon, 16 Nov 2015 06:16:35 +0000 (14:16 +0800)]
Fix correct coordinate dst_rect->x with 4 alignment

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoFix the segmentation fault causing by NULL buffer object
Lim Siew Hoon [Fri, 13 Nov 2015 13:05:33 +0000 (21:05 +0800)]
Fix the segmentation fault causing by NULL buffer object

Add if checking for dst_obj_surface->bo is NULL in
i965_proc_picture_fast function.

https://bugs.freedesktop.org/show_bug.cgi?id=92811

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
8 years agoshaders: vpp: gen8/9: use yuv to rgb matrix to compute rgb values
Lionel Landwerlin [Tue, 3 Nov 2015 14:50:21 +0000 (14:50 +0000)]
shaders: vpp: gen8/9: use yuv to rgb matrix to compute rgb values

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
8 years agoshaders: vpp: gen7: use yuv to rgb matrix to compute rgb values
Lionel Landwerlin [Thu, 22 Oct 2015 15:27:15 +0000 (16:27 +0100)]
shaders: vpp: gen7: use yuv to rgb matrix to compute rgb values

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>