platform/upstream/libva-intel-driver.git
10 years agoVPP: Enable sharpening feature on BDW
Li Xiaowei [Tue, 7 Jan 2014 03:38:09 +0000 (11:38 +0800)]
VPP: Enable sharpening feature on BDW

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
10 years agoVPP: Refine code for sharpening on Haswell
Li Xiaowei [Tue, 7 Jan 2014 02:45:56 +0000 (10:45 +0800)]
VPP: Refine code for sharpening on Haswell

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
10 years agoVEBOX/bdw: set downsample method
Xiang, Haihao [Tue, 7 Jan 2014 05:13:25 +0000 (13:13 +0800)]
VEBOX/bdw: set downsample method

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoVEBOX/bdw: DW0-DW8 are used for dndi parameters in VEBOX_DNDI_STATE
Xiang, Haihao [Tue, 7 Jan 2014 05:10:58 +0000 (13:10 +0800)]
VEBOX/bdw: DW0-DW8 are used for dndi parameters in VEBOX_DNDI_STATE

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoAdd one environment variable to check the benchmark of decoding/vaPutsurface
Zhao Yakui [Mon, 30 Dec 2013 04:42:55 +0000 (12:42 +0800)]
Add one environment variable to check the benchmark of decoding/vaPutsurface

The swap_buffer callback will wait for the completion of buffer swap, which
will affect the benchmark test of decoding/vaPutSurface.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRender/BDW: Align each offset with 64 bytes
Xiang, Haihao [Mon, 30 Dec 2013 04:42:51 +0000 (12:42 +0800)]
Render/BDW: Align each offset with 64 bytes

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRender/BDW: Initialize the blend_state for rendering
Xiang, Haihao [Mon, 30 Dec 2013 04:42:47 +0000 (12:42 +0800)]
Render/BDW: Initialize the blend_state for rendering

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRender/HSW: Fix the bug caused by merging code
Xiang, Haihao [Mon, 30 Dec 2013 01:39:04 +0000 (09:39 +0800)]
Render/HSW: Fix the bug caused by merging code

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoUpdate the MFX_AVC_IMAGE_STATE to follow the spec
Zhao Yakui [Fri, 27 Dec 2013 07:56:37 +0000 (15:56 +0800)]
Update the MFX_AVC_IMAGE_STATE to follow the spec

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the incorrect MV upper bound setting of MFC_IND_OBJ_BASE_ADDRESS_STAE for encodin...
Zhao Yakui [Fri, 27 Dec 2013 07:56:33 +0000 (15:56 +0800)]
Fix the incorrect MV upper bound setting of MFC_IND_OBJ_BASE_ADDRESS_STAE for encoding on gen8

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the wrong VPP initialization function for Dn/DI on Ivybridge
Zhao Yakui [Fri, 27 Dec 2013 07:16:37 +0000 (15:16 +0800)]
Fix the wrong VPP initialization function for Dn/DI on Ivybridge

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the VPP shader of conversion between YUY2 and YUY2 on BDW
Zhao Yakui [Fri, 27 Dec 2013 07:05:45 +0000 (15:05 +0800)]
Add the VPP shader of conversion between YUY2 and YUY2 on BDW

Signed-off-by: Zhao Yakui <yakui.zhao2intel.com>
10 years agoUse the pp_null_initialize function for the unsupported VPP on BDW
Zhao Yakui [Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)]
Use the pp_null_initialize function for the unsupported VPP on BDW

The Dn/DI will be implemented by using VEBOX and doesn't use the VPP shader any more.
So the corresponding VPP shader should use the pp_null_initialize hook function.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the error for the VPP conversion of NV12->NV12 on BDW
Zhao Yakui [Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)]
Fix the error for the VPP conversion of NV12->NV12 on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUse the correct sub-context for VPP on BDW to avoid the NULL pointer
Zhao Yakui [Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)]
Use the correct sub-context for VPP on BDW to avoid the NULL pointer

The structure of sub-context is updated for VPP in the commit of
4faf6bf47f8e4e2fe587e3bb6a004340edd59c4c. So BDW should update the correct
sub-context.Otherwise the segment fault will be triggered.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the support of querying the surface attributes on BDW
Zhao Yakui [Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)]
Add the support of querying the surface attributes on BDW

Otherwise the user-space application doesn't query which surfaceformat is
supported by the libva-vappi driver on BDW.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the wrong pitch of surface for Video post-processing on BDW
Zhao Yakui [Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)]
Fix the wrong pitch of surface for Video post-processing on BDW

Now the object surface already contains the pitch after the object surface
structure is reworked in the commit f886f24eaaacba9544fa5f6405b7382c686f3a1f.
So it is unnecessary to calculate the pitch based on the width.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFollow the spec to make the VPP media pipeline work in 48-bit addressing mode
Zhao Yakui [Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)]
Follow the spec to make the VPP media pipeline work in 48-bit addressing mode

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the error of offset calculation for encoding on BDW
Zhao Yakui [Fri, 27 Dec 2013 07:05:44 +0000 (15:05 +0800)]
Fix the error of offset calculation for encoding on BDW

Currently although the encoding can work well, the offset in the internal
object is calculated incorrectly. So fix it to avoid the potential issue.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoVPP/bdw: Fix the initialize function used for NV12 to NV12
Xiang, Haihao [Fri, 27 Dec 2013 03:16:48 +0000 (11:16 +0800)]
VPP/bdw: Fix the initialize function used for NV12 to NV12

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoAdd the ring supported for bdw vpp filters
Zhong Li [Wed, 25 Dec 2013 06:23:29 +0000 (14:23 +0800)]
Add the ring supported for bdw vpp filters

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoFix a bug of vp8 quant index calculation error
Zhong Li [Mon, 23 Dec 2013 08:30:25 +0000 (16:30 +0800)]
Fix a bug of vp8 quant index calculation error

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoRemove the unused function of gen7_pp_rgbx_avs_initialize
Zhao Yakui [Mon, 23 Dec 2013 07:59:28 +0000 (15:59 +0800)]
Remove the unused function of gen7_pp_rgbx_avs_initialize

This is not used any more after it uses the same gen7_pp_plx_avs_initialize
function for RGBX input on Ivy/Haswell.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoConfigure VPP parameter for RGBX input so that Haswell/Ivy uses the same gen7_pp_plx_...
Zhao Yakui [Mon, 23 Dec 2013 07:59:22 +0000 (15:59 +0800)]
Configure VPP parameter for RGBX input so that Haswell/Ivy uses the same gen7_pp_plx_avs_initialize

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUpdate the supported render target format and pixel format for JPEG on BDW
Zhao Yakui [Mon, 23 Dec 2013 03:01:13 +0000 (11:01 +0800)]
Update the supported render target format and pixel format for JPEG on BDW

This is picked up from the commit a90e80fb7fde114535ab5e9be74d973117def138
on Ivy/Haswell. Otherwise the JPEG on BDW can't work as expected.

Signed-off-by: Xiang Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the support of color BT709/SMPTE240M for color-space conversion on BDW
Zhao Yakui [Thu, 19 Dec 2013 09:03:31 +0000 (17:03 +0800)]
Add the support of color BT709/SMPTE240M for color-space conversion on BDW

This is picked up from that on Haswell/Ivybridge.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the support of brightness/contrast/hue/saturation for BDW rendering
Zhao Yakui [Thu, 19 Dec 2013 09:03:31 +0000 (17:03 +0800)]
Add the support of brightness/contrast/hue/saturation for BDW rendering

This is picked up from the commit 04ecb6e79f4382d96eb5d4b51733049d420f592a

Signed-off-by: Xiang Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the error in render shader for subpicture
Zhao Yakui [Thu, 19 Dec 2013 09:03:31 +0000 (17:03 +0800)]
Fix the error in render shader for subpicture

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the error in render shader for BDW
Zhao Yakui [Thu, 19 Dec 2013 09:03:31 +0000 (17:03 +0800)]
Fix the error in render shader for BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoExplicitly declare the color blend operation for subpicture on BDW
Zhao Yakui [Thu, 19 Dec 2013 09:03:31 +0000 (17:03 +0800)]
Explicitly declare the color blend operation for subpicture on BDW

Without this it still can work. This is only human-readable.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the incorrect setting for subpicture on BDW
Zhao Yakui [Thu, 19 Dec 2013 09:03:31 +0000 (17:03 +0800)]
Fix the incorrect setting for subpicture on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoBDW encoding reuses aux_batchbuffer instead of allocating another new buffer
Zhao Yakui [Thu, 19 Dec 2013 05:37:21 +0000 (13:37 +0800)]
BDW encoding reuses aux_batchbuffer instead of allocating another new buffer

This is picked up from that on Haswell/Ivybridge.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoCalculate required space of batch buffer to avoid buffer overflow in encoding on BDW
Zhao Yakui [Thu, 19 Dec 2013 05:37:16 +0000 (13:37 +0800)]
Calculate required space of batch buffer to avoid buffer overflow in encoding on BDW

The required size is based on the number of macroblocks and slice parameter.
Then it can avoid that too large buffer is allocated or possible overflow.
This is picked up from that on Haswell/Ivybridge.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoHandle the aux_batchbuffer correctly for H264 encoding on Haswell
Zhao Yakui [Thu, 19 Dec 2013 05:37:13 +0000 (13:37 +0800)]
Handle the aux_batchbuffer correctly for H264 encoding on Haswell

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFollow spec to update the URB entry/size setting for encoding on Haswell/BDW
Zhao Yakui [Thu, 19 Dec 2013 05:36:11 +0000 (13:36 +0800)]
Follow spec to update the URB entry/size setting for encoding on Haswell/BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRendering/bdw: fix push constant buffer for PS
Xiang, Haihao [Thu, 19 Dec 2013 02:31:31 +0000 (10:31 +0800)]
Rendering/bdw: fix push constant buffer for PS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoBDW doesn't support H.264 Baseline profile
Xiang, Haihao [Thu, 19 Dec 2013 01:46:30 +0000 (09:46 +0800)]
BDW doesn't support H.264 Baseline profile

The similar fix to f765987

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoFollow the spec to make the 3D pipeline work in 48-bit addressing mode
Zhao Yakui [Tue, 17 Dec 2013 09:00:03 +0000 (17:00 +0800)]
Follow the spec to make the 3D pipeline work in 48-bit addressing mode

Signed-off-by: Xiang Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agofollow the spec to fill the Vertex URB entry on BDW
Zhao Yakui [Tue, 17 Dec 2013 09:00:00 +0000 (17:00 +0800)]
follow the spec to fill the Vertex URB entry on BDW

Signed-off-by: Xiang Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the missing 3D pipeline command for rendering on BDW
Zhao Yakui [Tue, 17 Dec 2013 08:59:57 +0000 (16:59 +0800)]
Add the missing 3D pipeline command for rendering on BDW

Signed-off-by: Xiang Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFollow the spec to restrict the max number of PS thread
Zhao Yakui [Tue, 17 Dec 2013 08:59:52 +0000 (16:59 +0800)]
Follow the spec to restrict the max number of PS thread

Signed-off-by: Xiang Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoEnable the Intra-prediction for MPEG2 P-B frame on BDW
Zhao Yakui [Tue, 17 Dec 2013 06:32:35 +0000 (14:32 +0800)]
Enable the Intra-prediction for MPEG2 P-B frame on BDW

This is picked up from the implementation on Haswell/Ivybridge.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix incorrect MI_BATCH_BUFFER_START command for MPEG2 encoding on BDW
Zhao Yakui [Tue, 17 Dec 2013 06:32:29 +0000 (14:32 +0800)]
Fix incorrect MI_BATCH_BUFFER_START command for MPEG2 encoding on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFollow the spec to make BDW encoding media pipeline command support 48-bit addressing...
Zhao Yakui [Fri, 13 Dec 2013 09:03:47 +0000 (17:03 +0800)]
Follow the spec to make BDW encoding media pipeline command support 48-bit addressing mode

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the command error for MPEG2 encoding on BDW
Zhao Yakui [Fri, 13 Dec 2013 07:18:56 +0000 (15:18 +0800)]
Fix the command error for MPEG2 encoding on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the missing media pipeline command for encoding on BDW
Zhao Yakui [Fri, 13 Dec 2013 07:18:56 +0000 (15:18 +0800)]
Add the missing media pipeline command for encoding on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUpdate the pipe_control command on Gen8 to make media pipeline work
Zhao Yakui [Fri, 13 Dec 2013 07:18:56 +0000 (15:18 +0800)]
Update the pipe_control command on Gen8 to make media pipeline work

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix one error of VME shader for MPEG2 encoding on BDW
Zhao Yakui [Mon, 4 Nov 2013 01:43:23 +0000 (09:43 +0800)]
Fix one error of VME shader for MPEG2 encoding on BDW

Otherwise the MPEG2 encoding will use the incorrect prediction result for the
macroblocks in the first row if the MVP is used

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix one error of VME shader for H264 encoding on BDW
Zhao Yakui [Mon, 4 Nov 2013 01:43:19 +0000 (09:43 +0800)]
Fix one error of VME shader for H264 encoding on BDW

Otherwise the h264 encoding will use the incorrect prediction result for the
macroblocks in the first row if the MVP is used

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoVPP: add vebox motion compensation support on BDW
Zhong Li [Sun, 13 Oct 2013 15:11:54 +0000 (23:11 +0800)]
VPP: add vebox motion compensation support on BDW

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoFollow the input Picture/Slice parameters for SLICE_STATE command on BDW
Xiang, Haihao [Tue, 8 Oct 2013 05:27:55 +0000 (13:27 +0800)]
Follow the input Picture/Slice parameters for SLICE_STATE command on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoPass the reference frame index in List0/1 into the PAK command on BDW
Xiang, Haihao [Tue, 8 Oct 2013 05:20:39 +0000 (13:20 +0800)]
Pass the reference frame index in List0/1 into the PAK command on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoClean up for setting up reference surface state on BDW
Xiang, Haihao [Tue, 8 Oct 2013 05:11:18 +0000 (13:11 +0800)]
Clean up for setting up reference surface state on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoFix refrence frame for list1 on BDW
Xiang, Haihao [Tue, 8 Oct 2013 03:22:46 +0000 (11:22 +0800)]
Fix refrence frame for list1 on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoCheck the reference surface id against VA_INVALID_SURFACE on BDW
Xiang, Haihao [Tue, 8 Oct 2013 03:05:28 +0000 (11:05 +0800)]
Check the reference surface id against VA_INVALID_SURFACE on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoIndent the code of encoding on BDW
Xiang, Haihao [Tue, 8 Oct 2013 03:02:56 +0000 (11:02 +0800)]
Indent the code of encoding on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoVPP/bdw: a NULL shader for packed 4:2:2 to packed 4:2:2
Xiang, Haihao [Tue, 10 Sep 2013 02:24:14 +0000 (10:24 +0800)]
VPP/bdw: a NULL shader for packed 4:2:2 to packed 4:2:2

!!! Develop the shader later

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoRemove the duplicated header file for mpeg2 encoding on Gen8
Zhao Yakui [Thu, 15 Aug 2013 07:18:39 +0000 (15:18 +0800)]
Remove the duplicated header file for mpeg2 encoding on Gen8

The vme75_mepg2.inc is also enough for the mpeg2 encoding on Gen8.
And vme8_mpeg2.inc is redundant.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRemove unnecessary GPU binary shader of mpeg2 encoding on Gen8
Zhao Yakui [Thu, 15 Aug 2013 07:18:39 +0000 (15:18 +0800)]
Remove unnecessary GPU binary shader of mpeg2 encoding on Gen8

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoCode cleanup about the media encoding on Gen8
Zhao Yakui [Thu, 15 Aug 2013 07:18:39 +0000 (15:18 +0800)]
Code cleanup about the media encoding on Gen8

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoOptimize quantization rounding precision of MPEG2 encoding on Gen8
Zhao Yakui [Thu, 15 Aug 2013 07:18:39 +0000 (15:18 +0800)]
Optimize quantization rounding precision of MPEG2 encoding on Gen8

This is from that on Ivy/Haswell.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoOptimize the VME shader for MPEG2 encoding on Gen8
Zhao Yakui [Thu, 15 Aug 2013 07:18:39 +0000 (15:18 +0800)]
Optimize the VME shader for MPEG2 encoding on Gen8

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the MVP in GPU shader to optimize mpeg2 encoding on Gen8
Zhao Yakui [Thu, 15 Aug 2013 07:18:39 +0000 (15:18 +0800)]
Add the MVP in GPU shader to optimize mpeg2 encoding on Gen8

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRewrite the GPU VME shader for MPEG2 encoding on Gen8
Zhao Yakui [Thu, 15 Aug 2013 07:18:39 +0000 (15:18 +0800)]
Rewrite the GPU VME shader for MPEG2 encoding on Gen8

This is from that on Haswell/Ivybridge. Now the MPEG2/H264 uses the same
mode/motion vector prediction shader. But the MV search region of mpeg2
is different with that on H264, which causes that the wrong mode/motion
vector prediction is used for MPEG2.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoBulid BDW vebox pipeline
Zhong Li [Wed, 26 Jun 2013 06:02:53 +0000 (14:02 +0800)]
Bulid BDW vebox pipeline

Build gen8 vebox pipeline, and ProcAMP has been enabled and verified on simulator.
However, DN/DI need further effort.

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoPAK encoding uses the reference list parsed from slice_param instead of hacked DPB
Zhao Yakui [Fri, 21 Jun 2013 05:29:24 +0000 (13:29 +0800)]
PAK encoding uses the reference list parsed from slice_param instead of hacked DPB

This is backported from Sandybridge/Ivybridge/Haswell.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoVME uses reference frame parsed from slice_param instead of hacked DPB for Gen8
Zhao Yakui [Fri, 21 Jun 2013 05:29:15 +0000 (13:29 +0800)]
VME uses reference frame parsed from slice_param instead of hacked DPB for Gen8

This is backported from Ivy/Haswell/Sandybridge.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoVPP: add VPP Filters for BDW
Xiang, Haihao [Fri, 21 Jun 2013 02:26:13 +0000 (10:26 +0800)]
VPP: add VPP Filters for BDW

Needs to rebuild the shader for VAProcFilterSharpening on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoAdd the conversion from YUYV to NV12/I420
Zhao Yakui [Fri, 21 Jun 2013 02:17:02 +0000 (10:17 +0800)]
Add the conversion from YUYV to NV12/I420

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the CSC conversion from NV12/I420 to YUYV
Zhao Yakui [Fri, 21 Jun 2013 02:16:57 +0000 (10:16 +0800)]
Add the CSC conversion from NV12/I420 to YUYV

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoNew PCI IDs for BDW
Xiang, Haihao [Tue, 18 Jun 2013 06:16:42 +0000 (14:16 +0800)]
New PCI IDs for BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoVp8 quant index converted to quant value on BDW
Zhong Li [Sun, 9 Jun 2013 10:13:38 +0000 (18:13 +0800)]
Vp8 quant index converted to quant value on BDW

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoEnable loop-deblock of bdw vp8 decoder
Zhong Li [Sat, 8 Jun 2013 06:37:24 +0000 (14:37 +0800)]
Enable loop-deblock of bdw vp8 decoder

When deblock is enable, post-deblocking bo should be used as output
buffer.

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoRemove unnecessary asserts
Zhong Li [Sat, 8 Jun 2013 01:49:19 +0000 (09:49 +0800)]
Remove unnecessary asserts

I think these two asserts are not necessary, and they will cause assert failure when probability buffer created.

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoFix a vp8 decoder picture parameter error
Zhong Li [Sat, 8 Jun 2013 01:49:18 +0000 (09:49 +0800)]
Fix a vp8 decoder picture parameter error

(1) log2(num_of_partition - 1) should be set to picture state as BSpec
(2) add an assert about probability buffer

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoAdd the VPP shader of RGBX->NV12 conversion
Zhao Yakui [Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)]
Add the VPP shader of RGBX->NV12 conversion

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFollow the bspec to workaround the NV12->RGBX conversion issue on BDW
Zhao Yakui [Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)]
Follow the bspec to workaround the NV12->RGBX conversion issue on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the VPP shader of NV12->RGBX conversion
Zhao Yakui [Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)]
Add the VPP shader of NV12->RGBX conversion

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the VPP shader of PL3 AVS conversion between YV12 and I420
Zhao Yakui [Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)]
Add the VPP shader of PL3 AVS conversion between YV12 and I420

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the VPP shader of YV12/I420->NV12 conversion
Zhao Yakui [Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)]
Add the VPP shader of YV12/I420->NV12 conversion

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the VPP shader of NV12->YV12/I420 conversion
Zhao Yakui [Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)]
Add the VPP shader of NV12->YV12/I420 conversion

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoHandle the pitch when using RGBX surface in VPP for BDW
Zhao Yakui [Thu, 23 May 2013 02:22:09 +0000 (10:22 +0800)]
Handle the pitch when using RGBX surface in VPP for BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoSet BSP buffer for VP8 decoding
Xiang, Haihao [Tue, 21 May 2013 07:12:25 +0000 (15:12 +0800)]
Set BSP buffer for VP8 decoding

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoUse the horizontal/vertical alignment for VPP surface on BDW
Zhao Yakui [Tue, 16 Apr 2013 05:57:51 +0000 (13:57 +0800)]
Use the horizontal/vertical alignment for VPP surface on BDW

This is hardware requirement.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoCreate the image with aligned width/height on BDW
Zhao Yakui [Tue, 16 Apr 2013 05:57:42 +0000 (13:57 +0800)]
Create the image with aligned width/height on BDW

The hardware requires that the surface pitch should be 64 alignment.
Otherwise the data port can't be accessed correctly.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the NV12 scaling shader for BDW
Zhao Yakui [Tue, 16 Apr 2013 05:57:38 +0000 (13:57 +0800)]
Add the NV12 scaling shader for BDW

This is the first VPP shader for BDW,which is used to do the
NV12 scaling conversion.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoInitialize the 8x8 sampler for AVS on BDW
Zhao Yakui [Tue, 16 Apr 2013 05:57:23 +0000 (13:57 +0800)]
Initialize the 8x8 sampler for AVS on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the 8x8 sampler for BDW
Zhao Yakui [Tue, 16 Apr 2013 05:57:19 +0000 (13:57 +0800)]
Add the 8x8 sampler for BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUpload the constant buffer on Gen6+
Zhao Yakui [Tue, 16 Apr 2013 05:57:14 +0000 (13:57 +0800)]
Upload the constant buffer on Gen6+

Signe-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUpdate states for VP8 decoding on BDW
Xiang, Haihao [Fri, 12 Apr 2013 06:49:10 +0000 (14:49 +0800)]
Update states for VP8 decoding on BDW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoRedefine the VPP vfe_state on Gen6+
Zhao Yakui [Thu, 11 Apr 2013 05:09:21 +0000 (13:09 +0800)]
Redefine the VPP vfe_state on Gen6+

Otherwise the VFE_STATE programmed on Gen6+ is not reasonable and difficult to
understand.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoFix the MV offset for MPEG2 on BDW
Zhao Yakui [Wed, 27 Mar 2013 04:42:04 +0000 (12:42 +0800)]
Fix the MV offset for MPEG2 on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoHandle the bit length of last dword for INSERT_OBJECT on BDW
Zhao Yakui [Wed, 27 Mar 2013 01:26:32 +0000 (09:26 +0800)]
Handle the bit length of last dword for INSERT_OBJECT on BDW

Otherwise it can't insert the content of INSERT_OBJECT command during encoding,
which causes that the encoded clip can't be parsed by player.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRewrite the VME shader for encoding on BDW
Zhao Yakui [Wed, 27 Mar 2013 01:24:15 +0000 (09:24 +0800)]
Rewrite the VME shader for encoding on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoSet render surface alignment on BDW
Zhao Yakui [Fri, 1 Mar 2013 02:38:14 +0000 (10:38 +0800)]
Set render surface alignment on BDW

This is the requirement per B-spec.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoSet the force bits to read URB offset/length for SF stage on BDW
Zhao Yakui [Fri, 1 Mar 2013 02:38:13 +0000 (10:38 +0800)]
Set the force bits to read URB offset/length for SF stage on BDW

Otherwise it can't fill the thread payload correctly for pixel shader.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUpdate the pixel shader of subpic function for BDW
Zhao Yakui [Fri, 1 Mar 2013 02:38:13 +0000 (10:38 +0800)]
Update the pixel shader of subpic function for BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUpdate the pixel shader for BDW rendering function
Zhao Yakui [Fri, 1 Mar 2013 02:38:13 +0000 (10:38 +0800)]
Update the pixel shader for BDW rendering function

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoAdd the support of subpic for BDW
Zhao Yakui [Fri, 1 Mar 2013 02:38:13 +0000 (10:38 +0800)]
Add the support of subpic for BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
[Haihao: directly use object instead of id]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoImplement the rendering CSC conversion for BDW
Zhao Yakui [Fri, 1 Mar 2013 02:38:13 +0000 (10:38 +0800)]
Implement the rendering CSC conversion for BDW

This is implemented based on 3D engine, which is similar to that on Ivy.
But it also needs to handle a lot of changes about 3D commands between
BDW and Ivy.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
[Haihao: directly use object instead of id]
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>