platform/upstream/libva-intel-driver.git
9 years agoi965_DeriveImage() support JPEG color formats
Zhong Li [Mon, 14 Apr 2014 08:17:42 +0000 (02:17 -0600)]
i965_DeriveImage() support JPEG color formats

Signed-off-by: Zhong Li <zhong.li@intel.com>
(cherry picked from commit 9f9c505ed5212ae0704f71f45532b9716ac0bd51)

9 years ago1.3.2.pre1 for development
Xiang, Haihao [Fri, 9 May 2014 04:51:08 +0000 (12:51 +0800)]
1.3.2.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
9 years agoIntel driver 1.3.1 sandbox/pcoval/upstream 1.3.1
Xiang, Haihao [Fri, 9 May 2014 04:45:01 +0000 (12:45 +0800)]
Intel driver 1.3.1

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
9 years agoUpdate NEWS
Xiang, Haihao [Mon, 5 May 2014 07:38:52 +0000 (15:38 +0800)]
Update NEWS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
9 years agoReturn error when trying to decoding an interlaced VC-1 video
Xiang, Haihao [Mon, 5 May 2014 04:48:27 +0000 (12:48 +0800)]
Return error when trying to decoding an interlaced VC-1 video

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

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
9 years agoMake it buildable against libva 1.3.0
Xiang, Haihao [Mon, 5 May 2014 04:39:50 +0000 (12:39 +0800)]
Make it buildable against libva 1.3.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
9 years agoFix over assigned callback "QueryConfigEntrypoints".
qing.zhang [Mon, 28 Apr 2014 21:44:47 +0000 (05:44 +0800)]
Fix over assigned callback "QueryConfigEntrypoints".

10 years agoVPP: Enable Skin tone detection and enhancement - Added STDE coefficients.
Sirisha Muppavarapu [Tue, 25 Mar 2014 22:04:30 +0000 (15:04 -0700)]
VPP: Enable Skin tone detection and enhancement - Added STDE coefficients.

In this commit, I added the optimized STDE coefficients to the vebox state table.
(cherry picked from commit 150f67c67bd92cd201b75a92388fe3a63b00cd8a)

10 years agoVPP: Enable Skin Tone Detection and Enhancement feature in the driver.
Sirisha Muppavarapu [Tue, 25 Mar 2014 22:04:29 +0000 (15:04 -0700)]
VPP: Enable Skin Tone Detection and Enhancement feature in the driver.

The VPP-STDE feature is enabled in the driver code for gen75 and gen8.
In this commit, I added the filter and made appropriate changes to the
hw_codec_info and the supporting methods.
(cherry picked from commit 691b149b7afe578889a423841a29db3ac56aad83)

10 years agovp8: fix support for segmentation-enabled streams.
Gwenole Beauchesne [Wed, 23 Apr 2014 15:23:21 +0000 (17:23 +0200)]
vp8: fix support for segmentation-enabled streams.

If segmentation is enabled, then the segmentation map shall be live
across frames until the current frame updates the segment ids. This
means that the driver needs to maintain the segmentation map buffer
allocation and enable writes (resp. reads) whenever necessary.

This fixes decoding of 00-comprehensive-010.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
10 years agoVPP: Set the alpha channel when doing the conversion from NV12 to RGBA on Ivy/Haswell/BDW
Zhao Yakui [Tue, 22 Apr 2014 03:05:18 +0000 (11:05 +0800)]
VPP: Set the alpha channel when doing the conversion from NV12 to RGBA on Ivy/Haswell/BDW

Currently zero is written to alpha channel when doing the conversion
from NV12 to RGBA(BGRA), which affects the following the rendering operation.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 4082c9db1eef45bc117fc151d60a178926ab9f73)

10 years agoFix bound checking
Xiang, Haihao [Tue, 15 Apr 2014 02:20:31 +0000 (20:20 -0600)]
Fix bound checking

Otherwise it might result in buffer overflow.

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

10 years agoRendering/BDW:Follow the hardware spec to update the 3DSTATE_URB_VS command
Zhao Yakui [Wed, 9 Apr 2014 03:40:16 +0000 (11:40 +0800)]
Rendering/BDW:Follow the hardware spec to update the 3DSTATE_URB_VS command

This is to fix the GPU hang when doing the color-space conversion from
NV12 to RGB on BDW GT3 machine.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 4a3f17ae44bae58daf65dcc706332b28a6d478ac)

10 years agovp8: fix loop filter for bitexact reconstruction.
Gwenole Beauchesne [Tue, 8 Apr 2014 12:56:03 +0000 (06:56 -0600)]
vp8: fix loop filter for bitexact reconstruction.

Each loop filter delta update value shall be encoded within 7 bits,
including the sign bit and 6-bit magnitude in 2's complement. So,
don't propagate the sign bit while packing the filter level values.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
(cherry picked from commit 36ccd9c3e47766edc70ecbdf82acc89ed67e26c4)

10 years agoBDW: Fix one error in shader binaray for media encoding
Zhao Yakui [Mon, 24 Mar 2014 02:46:14 +0000 (10:46 +0800)]
BDW: Fix one error in shader binaray for media encoding

The commit 7ac4263ff2dae5c877b92356d04df4ccfe10d7c9 updates
the shader binary more than it required. So it is removed.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit b1319c7f7cb9d20179b20dac2308330bd0e51ffe)

10 years agoV3: Add 422H support.
Alex wu [Mon, 24 Mar 2014 02:45:27 +0000 (20:45 -0600)]
V3: Add 422H support.

Changes between V3 to V2:
1. Add 422H support into gen8_post_processing.c, according to
   yakui's comments.

changes between V2 and V1:
1. Rebase on staging branch.
2. Add 422H support for pp.
3. Reword the commit title.
Signed-off-by: Alex wu <zhiwen.wu@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 347dd731d31dd37b242bbace744125554f2c09e7)

10 years agoUse the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)
Zhao Yakui [Thu, 20 Mar 2014 04:08:51 +0000 (12:08 +0800)]
Use the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)

This is helpful to avoid the typo error when using VA_FOURCC(A, B, C, D).

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit acea969011bceee36a57fe2c0e4ee96c0c5e79c7)

10 years agoVEBOX: Use the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)
Zhao Yakui [Mon, 24 Mar 2014 01:49:09 +0000 (09:49 +0800)]
VEBOX: Use the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)

This is helpful to avoid the typo error when using VA_FOURCC(A, B, C, D).

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
--
 src/gen75_vpp_vebox.c |   83 ++++++++++++++++++++++++--------------------------
 1 file changed, 41 insertions(+), 42 deletions(-)

(cherry picked from commit 2a31ad7e200cfb5df95b11875ee33795cdc7e343)

10 years agoVPP: Use the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)
Zhao Yakui [Mon, 24 Mar 2014 01:49:06 +0000 (09:49 +0800)]
VPP: Use the VA_FOURCC_ABCD constant to replace the VA_FOURCC(A,B,C,D)

This is helpful to avoid the typo error when using VA_FOURCC(A, B, C, D).

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 0b9ed6ad9fbe46812d566fa31bf6d60739757a17)

Conflicts:
src/i965_post_processing.c

10 years agoUse the VA_FOURCC_XXXX to replace the VA_FOURCC(X,X,X,X) in i965_drv_video
Zhao Yakui [Mon, 24 Mar 2014 01:48:50 +0000 (09:48 +0800)]
Use the VA_FOURCC_XXXX to replace the VA_FOURCC(X,X,X,X) in i965_drv_video

This is helpful to avoid the typo error when using VA_FOURCC(A, B, C, D).

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit ab3e02d63fe672e3f81631f2beb5bc2b7ab17af0)

10 years agoFix for check i965_check_alloc_surface_bo ret
Zhao, Halley [Fri, 21 Mar 2014 07:56:39 +0000 (01:56 -0600)]
Fix for check i965_check_alloc_surface_bo ret

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 41da810decbb2d64843b95384fc87f7a29152c88)

10 years agoclean up some assert in i965_drv_video.c
Zhao, Halley [Fri, 14 Mar 2014 09:12:41 +0000 (17:12 +0800)]
clean up some assert in i965_drv_video.c

a return value is expected when assert is disabled.

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
(cherry picked from commit 12c81227fd92fe028100af0cb32cc17b7f698b3d)

10 years agova: User specified tiling and stride support.
Zhao, Halley [Fri, 14 Mar 2014 05:43:33 +0000 (13:43 +0800)]
va: User specified tiling and stride support.

It is done by two VASurfaceAttrib:
 * one is buffer attribute described by VASurfaceAttribExternalBufferDescriptor.
   it covers strides and tiling or not.
 * another is buffer type to indicate that the buffer is allocated by va driver.
   VASurfaceAttribMemoryType:VA_SURFACE_ATTRIB_MEM_TYPE_VA

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 55e63685dc040e3855868b4d7ccb0ac8e1f66690)

10 years agoVPP: Fix the typo error of "VV16"
Zhao Yakui [Tue, 18 Mar 2014 08:15:15 +0000 (16:15 +0800)]
VPP: Fix the typo error of "VV16"

It should be "YV16" instead of "VV16".
Thank Gwenole for capturing this typo error which is caused by
the commit 2b5fad11a5c12d3c6ffbef15c02449a3b4e90b98.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit abd77ff2014322d152d723a3e8b1cba1e41b0a5f)

10 years agoAdd the csc conversion from YV16 to NV12
Zhao Yakui [Fri, 14 Mar 2014 07:16:26 +0000 (15:16 +0800)]
Add the csc conversion from YV16 to NV12

V1->V2: Follow Zhiwen's comment to handle the scenario of CSC conversion from
YV16 to NV12  when the source is YV16 image instead of YV16 surface.

Reviewed-by: Wind Yuan <feng.yuan@intel.com>
Tested-by: Wind Yuan <feng.yuan@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 2b5fad11a5c12d3c6ffbef15c02449a3b4e90b98)

10 years agoAdd the support of derive image from YV16 surface
Zhao Yakui [Fri, 14 Mar 2014 07:16:24 +0000 (15:16 +0800)]
Add the support of derive image from YV16 surface

Reviewed-by: Wind Yuan <feng.yuan@intel.com>
Tested-by: Wind Yuan <feng.yuan@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 7d5172de91336db2e627c0011404231b6b64b211)

10 years agoExport the surface attribute based on YV16 for VPP on Gen7+
Zhao Yakui [Fri, 14 Mar 2014 07:16:20 +0000 (15:16 +0800)]
Export the surface attribute based on YV16 for VPP on Gen7+

Reviewed-by: Wind Yuan <feng.yuan@intel.com>
Tested-by: Wind Yuan <feng.yuan@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 94f415b29ee197f66281370801a9c3bd4240c928)

10 years agoAdd the support of create surface based on YV16 format
Zhao Yakui [Fri, 14 Mar 2014 07:16:17 +0000 (15:16 +0800)]
Add the support of create surface based on YV16 format

Reviewed-by: Wind Yuan <feng.yuan@intel.com>
Tested-by: Wind Yuan <feng.yuan@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 12e7421ce1ed2627270dcb281af4d760afeb7209)

10 years agoAdd the seperated file for Video post-processing on BDW
Zhao Yakui [Tue, 4 Mar 2014 08:23:08 +0000 (16:23 +0800)]
Add the seperated file for Video post-processing on BDW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 6e1baecded9d23b32daa8e34828b6a5d32a27c46)

Conflicts:
src/i965_post_processing.c

10 years agoUse the XXX_post_processing as callback function for post-processing
Zhao Yakui [Tue, 4 Mar 2014 08:23:08 +0000 (16:23 +0800)]
Use the XXX_post_processing as callback function for post-processing

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit b7da102c3d237ac5553f8c8ada1bb155e5b8ea75)

10 years agoAdd the seperated file for rendering on BDW
Zhao Yakui [Tue, 4 Mar 2014 08:23:08 +0000 (16:23 +0800)]
Add the seperated file for rendering on BDW

This is to avoid the interference between the new platform and previous
platform.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit fbd6b7ff33ed5beb15f0122ec70668ed0c8479d2)

10 years agoUse the XXX_render_put_surface/put_subpicture as callback function for rendering
Zhao Yakui [Tue, 4 Mar 2014 08:23:07 +0000 (16:23 +0800)]
Use the XXX_render_put_surface/put_subpicture as callback function for rendering

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 9db92268b7b7bf6763ae76df0021608effe260ec)

10 years agoDefine i965_DestroySurfaces in header file explicitly to avoid multiple declaration
Zhao Yakui [Tue, 4 Mar 2014 08:23:07 +0000 (16:23 +0800)]
Define i965_DestroySurfaces in header file explicitly to avoid multiple declaration

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit af0687252bfc6f81ff5361feedba7ec8989b3555)

10 years agoBDW: Follow the spec to add the MEDIA_STATE_FLUSH before MEDIA_INTERFACE_LOAD
Zhao Yakui [Tue, 4 Mar 2014 01:08:43 +0000 (09:08 +0800)]
BDW: Follow the spec to add the MEDIA_STATE_FLUSH before MEDIA_INTERFACE_LOAD

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit a90acbe7f08d66084e70113859198c3975f63b80)

10 years agobdw: Follow the spec to update the PIPE_CONTROL command
Zhao Yakui [Tue, 4 Mar 2014 01:08:38 +0000 (09:08 +0800)]
bdw: Follow the spec to update the PIPE_CONTROL command

This is the hardware requirement.

Signed-off-by: Zhao Yakui <Yakui.zhao@intel.com>
(cherry picked from commit fc4d39f3b849366ed04223620fa371d76cf813b0)

10 years agobdw: Fix the FENCE message in GPU shader for H264 encoding
Zhao Yakui [Tue, 4 Mar 2014 01:08:34 +0000 (09:08 +0800)]
bdw: Fix the FENCE message in GPU shader for H264 encoding

Use the real register as write_back register instead of NULL register
although the Fence Message doesn't touch it.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 7ac4263ff2dae5c877b92356d04df4ccfe10d7c9)

10 years ago1.3.1.pre1 for development
Xiang, Haihao [Tue, 25 Mar 2014 00:55:14 +0000 (08:55 +0800)]
1.3.1.pre1 for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoIntel driver 1.3.0 1.3.0
Xiang, Haihao [Mon, 24 Mar 2014 11:12:07 +0000 (19:12 +0800)]
Intel driver 1.3.0

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoFix the broken package made by 'make dist'
Xiang, Haihao [Mon, 24 Mar 2014 08:52:52 +0000 (16:52 +0800)]
Fix the broken package made by 'make dist'

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoFix broken make dist
Xiang, Haihao [Tue, 18 Mar 2014 00:49:04 +0000 (08:49 +0800)]
Fix broken make dist

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoBump version to 1.3.0.pre1
Xiang, Haihao [Mon, 17 Mar 2014 04:50:08 +0000 (12:50 +0800)]
Bump version to 1.3.0.pre1

To build the code, a new version of VA-API is needed, so
update the dependency on VA-API as well

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoUpdate NEWS
Xiang, Haihao [Tue, 18 Mar 2014 00:40:45 +0000 (08:40 +0800)]
Update NEWS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoconfigure.ac: update the dependency on intel-gen4asm
Xiang, Haihao [Mon, 3 Mar 2014 02:34:43 +0000 (19:34 -0700)]
configure.ac: update the dependency on intel-gen4asm

The new version of intel-gen4asm is required to build shaders
for BDW

Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agointel-vaapi: Add more checks for H264 decoding parameter to filter the unsupported...
Zhao Yakui [Sun, 26 Jan 2014 01:43:52 +0000 (18:43 -0700)]
intel-vaapi: Add more checks for H264 decoding parameter to filter the unsupported clip

Signed-off-by: Yuan Feng <feng.yuan@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoRemove the redundant if () from gen8_pp_upload_constants
Xiang, Haihao [Mon, 20 Jan 2014 03:13:11 +0000 (11:13 +0800)]
Remove the redundant if () from gen8_pp_upload_constants

This fixed the issue reported by Klockwork

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoWarning fixes
Xiang, Haihao [Mon, 20 Jan 2014 03:04:24 +0000 (11:04 +0800)]
Warning fixes

gen8_mfd.c: In function â€˜gen8_mfd_vp8_decode_init’:
gen8_mfd.c:2773:5: warning: implicit declaration of function â€˜intel_update_vp8_frame_store_index’ [-Wimplicit-function-declaration]

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoDon't use assert() in case getting wrong parameters from user
Xiang, Haihao [Mon, 20 Jan 2014 02:59:10 +0000 (10:59 +0800)]
Don't use assert() in case getting wrong parameters from user

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoFix the wrong setting in MI_BATCH_BATCH_START command on Snb/Ivy/Haswell
Zhao Yakui [Mon, 20 Jan 2014 01:58:06 +0000 (09:58 +0800)]
Fix the wrong setting in MI_BATCH_BATCH_START command on Snb/Ivy/Haswell

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoUse the right parameters to initialize bit rate context
Xiang, Haihao [Fri, 17 Jan 2014 08:51:20 +0000 (16:51 +0800)]
Use the right parameters to initialize bit rate context

Reported-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoDon't advertise CBR for MPEG-2 encoding
Xiang, Haihao [Fri, 17 Jan 2014 08:46:52 +0000 (16:46 +0800)]
Don't advertise CBR for MPEG-2 encoding

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
10 years agoFix vp8 partition offset set error
Zhao, Halley [Wed, 15 Jan 2014 05:21:46 +0000 (13:21 +0800)]
Fix vp8 partition offset set error

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agoFix vp8 p frame decode error issue.
Zhong Li [Tue, 14 Jan 2014 02:44:55 +0000 (10:44 +0800)]
Fix vp8 p frame decode error issue.

Signed-off-by: Zhong Li <zhong.li@intel.com>
10 years agovp8 dec: fix when bool_coder_ctx.count is 0
Zhao, Halley [Fri, 10 Jan 2014 01:53:16 +0000 (09:53 +0800)]
vp8 dec: fix when bool_coder_ctx.count is 0

bool_coder_ctx.count is remaining bits,
hw requires used-bits-count: 8-bool_coder_ctx.count, range [0,7]
update offset and partition_size[0] as well

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
10 years agovp8 dec: follows va_dec_vp8.h update
Zhao, Halley [Wed, 8 Jan 2014 19:14:24 +0000 (03:14 +0800)]
vp8 dec: follows va_dec_vp8.h update

    key_frame:0 means an intra frame
    bool_coder_ctx.count is the remaining bits in bool_coder_ctx.value, range[0,7)
    slice_data_offset/macroblock_offset update

Signed-off-by: Zhao Halley <halley.zhao@intel.com>
10 years agoRemove the unnecessary sorting to simplify the DPB buffer management
Zhao Yakui [Mon, 13 Jan 2014 01:42:32 +0000 (09:42 +0800)]
Remove the unnecessary sorting to simplify the DPB buffer management

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoComplain the warning instead of assert fault when slice picture is not found in DPB...
Zhao Yakui [Mon, 13 Jan 2014 01:42:28 +0000 (09:42 +0800)]
Complain the warning instead of assert fault when slice picture is not found in DPB for decoder

This is to fix the bug https://bugs.freedesktop.org/show_bug.cgi?id=72660

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
10 years agoVPP: Correct return value of vpp gpe functions
Li Xiaowei [Thu, 9 Jan 2014 05:33:44 +0000 (13:33 +0800)]
VPP: Correct return value of vpp gpe functions

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
10 years agoRemove the whitespace following trailing backslash in a Makefile.am
Xiang, Haihao [Thu, 9 Jan 2014 01:23:13 +0000 (09:23 +0800)]
Remove the whitespace following trailing backslash in a Makefile.am

src/shaders/post_processing/gen8/Makefile.am:31: whitespace following trailing backslash
src/shaders/post_processing/gen8/Makefile.am:32: whitespace following trailing backslash

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
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>