profile/ivi/vaapi-intel-driver.git
11 years agosubpicture: don't overallocate palette on 64-bit systems.
Gwenole Beauchesne [Thu, 3 Jan 2013 14:57:25 +0000 (15:57 +0100)]
subpicture: don't overallocate palette on 64-bit systems.

Allocate the exact amount of memory for VA image palettes on 64-bit
systems. No more.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agosubpicture: fix creation of IA88/AI88 subpicture images.
Gwenole Beauchesne [Thu, 3 Jan 2013 14:47:40 +0000 (15:47 +0100)]
subpicture: fix creation of IA88/AI88 subpicture images.

IA88 format is 16bpp, with one byte for alpha and one byte for the color
index. Besides, a palette with 256 entries is also needed.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agosubpicture: expose "global-alpha" is supported.
Gwenole Beauchesne [Thu, 3 Jan 2013 14:23:42 +0000 (15:23 +0100)]
subpicture: expose "global-alpha" is supported.

Make sure vaQuerySubpictureFormats() reports that "global-alpha" is
supported, along with "screen-coords".

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agosubpicture: don't overallocate palette on 64-bit systems.
Gwenole Beauchesne [Thu, 3 Jan 2013 14:57:25 +0000 (15:57 +0100)]
subpicture: don't overallocate palette on 64-bit systems.

Allocate the exact amount of memory for VA image palettes on 64-bit
systems. No more.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agosubpicture: fix creation of IA88/AI88 subpicture images.
Gwenole Beauchesne [Thu, 3 Jan 2013 14:47:40 +0000 (15:47 +0100)]
subpicture: fix creation of IA88/AI88 subpicture images.

IA88 format is 16bpp, with one byte for alpha and one byte for the color
index. Besides, a palette with 256 entries is also needed.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agosubpicture: expose "global-alpha" is supported.
Gwenole Beauchesne [Thu, 3 Jan 2013 14:23:42 +0000 (15:23 +0100)]
subpicture: expose "global-alpha" is supported.

Make sure vaQuerySubpictureFormats() reports that "global-alpha" is
supported, along with "screen-coords".

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoRender: Update the maximum number of WM threads
Xiang, Haihao [Fri, 21 Dec 2012 02:25:57 +0000 (10:25 +0800)]
Render: Update the maximum number of WM threads

The number is stolen from Mesa.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57323
Signe-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Tested-by: zaverel <zaverel@free.fr>
(cherry picked from commit a140c632046e50a41bf75da097834fd9954b9561)

11 years agoAdd IS_SNB_GT1/IS_SNB_GT2/IS_IVB_GT1/IS_IVB_GT2 and remove IS_HSW_ULT and IS_HSW_GT2_PLUS
Xiang, Haihao [Fri, 21 Dec 2012 01:48:47 +0000 (09:48 +0800)]
Add IS_SNB_GT1/IS_SNB_GT2/IS_IVB_GT1/IS_IVB_GT2 and remove IS_HSW_ULT and IS_HSW_GT2_PLUS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit bb946b7d2c97c94ac1888195ab1d5b9c59750d23)

11 years agoAdopt the same fix used in the commit 29d73dc to HSW
Xiang, Haihao [Fri, 28 Dec 2012 01:32:23 +0000 (09:32 +0800)]
Adopt the same fix used in the commit 29d73dc to HSW

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoh264: fix first macroblock bit offset calculation (ILK, SNB, IVB).
Gwenole Beauchesne [Thu, 1 Mar 2012 17:04:56 +0000 (18:04 +0100)]
h264: fix first macroblock bit offset calculation (ILK, SNB, IVB).

Fix and simplify the scan for emulation_prevention_bytes, thus avoiding
a read beyond the end of the slice data buffer. Besides, if slice_header()
bytes are needed, use dri_bo_get_subdata() instead.

HW specific changes:
- SNB: make the HW skip the emulation prevention bytes itself.
- IVB: fix MFD_AVC_BSD_OBJECT to report the actual slice data buffer size.

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

11 years agoRender: Update the maximum number of WM threads
Xiang, Haihao [Fri, 21 Dec 2012 02:25:57 +0000 (10:25 +0800)]
Render: Update the maximum number of WM threads

The number is stolen from Mesa.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57323
Signe-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Tested-by: zaverel <zaverel@free.fr>
11 years agoAdd IS_SNB_GT1/IS_SNB_GT2/IS_IVB_GT1/IS_IVB_GT2 and remove IS_HSW_ULT and IS_HSW_GT2_PLUS
Xiang, Haihao [Fri, 21 Dec 2012 01:48:47 +0000 (09:48 +0800)]
Add IS_SNB_GT1/IS_SNB_GT2/IS_IVB_GT1/IS_IVB_GT2 and remove IS_HSW_ULT and IS_HSW_GT2_PLUS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoFix the compile error in the previous commit
Xiang, Haihao [Thu, 20 Dec 2012 03:13:19 +0000 (11:13 +0800)]
Fix the compile error in the previous commit

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: fix the AVS steping and frame origin issue
Li Xiaowei [Wed, 19 Dec 2012 09:06:00 +0000 (17:06 +0800)]
VPP: fix the AVS steping and frame origin issue

On HSW/IVB, when the resolution of source rectangle is
not the same as src surface, or the source rectangle does
not locate at (0,0), the scaled picture is not correct,
adjust the steping size and frame origin according to the
src rectangle's location and resolution.

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoworkaround to set VC1 overlap filter flag
Li, Xiaowei A [Wed, 12 Dec 2012 02:04:37 +0000 (10:04 +0800)]
workaround to set VC1 overlap filter flag

Signed-off-by: Li,Xiaowei <xiaowei.a.li@intel.com>
11 years agoFill the bitplane for VC1 skip picture decoding
Li, Xiaowei A [Wed, 12 Dec 2012 01:16:25 +0000 (09:16 +0800)]
Fill the bitplane for VC1 skip picture decoding

This is a workaround for VC1 skip picture, the corresponding
bit value in bitplane should be 1 for skip picture, but sometimes
application pass down wrong value.

Signed-off-by: Li,Xiaowei <xiaowei.a.li@intel.com>
11 years agoMPEG-2 encoding on Haswell
Xiang, Haihao [Thu, 22 Nov 2012 06:26:40 +0000 (14:26 +0800)]
MPEG-2 encoding on Haswell

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoMPEG-2 encoding path
Xiang, Haihao [Fri, 23 Nov 2012 08:32:35 +0000 (16:32 +0800)]
MPEG-2 encoding path

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoFix Motion Vector
Xiang, Haihao [Thu, 13 Dec 2012 05:39:10 +0000 (13:39 +0800)]
Fix Motion Vector

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoMPEG-2 encoding: Use pre deblocking output for reconstructed picture.
Xiang, Haihao [Fri, 7 Dec 2012 05:54:37 +0000 (13:54 +0800)]
MPEG-2 encoding: Use pre deblocking output for reconstructed picture.

This avoids OLDB enabling for MPEG-2

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoFixed an assertion failure
Xiang, Haihao [Wed, 5 Dec 2012 08:07:06 +0000 (16:07 +0800)]
Fixed an assertion failure

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoFollow the vme output to configure PAK command
Xiang, Haihao [Mon, 3 Dec 2012 05:20:16 +0000 (13:20 +0800)]
Follow the vme output to configure PAK command

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoShader for MPEG-2 encoding
Xiang, Haihao [Mon, 3 Dec 2012 05:18:11 +0000 (13:18 +0800)]
Shader for MPEG-2 encoding

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoFix the number of MVs for MPEG-2 encoding
Xiang, Haihao [Mon, 3 Dec 2012 03:16:30 +0000 (11:16 +0800)]
Fix the number of MVs for MPEG-2 encoding

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoPAK command for inter macroblock
Xiang, Haihao [Wed, 28 Nov 2012 06:27:24 +0000 (14:27 +0800)]
PAK command for inter macroblock

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agovme for MPEG-2 on Haswell
Xiang, Haihao [Wed, 28 Nov 2012 06:17:43 +0000 (14:17 +0800)]
vme for MPEG-2 on Haswell

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoNew field profile in struct intel_encoder_context
Xiang, Haihao [Wed, 28 Nov 2012 05:24:00 +0000 (13:24 +0800)]
New field profile in struct intel_encoder_context

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agogen75_vme.c: Fix some indentation
Xiang, Haihao [Wed, 28 Nov 2012 05:06:29 +0000 (13:06 +0800)]
gen75_vme.c: Fix some indentation

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoUpdate coded_block_pattern
Xiang, Haihao [Wed, 28 Nov 2012 04:57:51 +0000 (12:57 +0800)]
Update coded_block_pattern

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoChange the max size
Xiang, Haihao [Wed, 28 Nov 2012 02:29:12 +0000 (10:29 +0800)]
Change the max size

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoUpdate QM/FQM matrices for MPEG-2 encoding
Xiang, Haihao [Wed, 28 Nov 2012 02:19:11 +0000 (10:19 +0800)]
Update QM/FQM matrices for MPEG-2 encoding

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoNo emulation bytes for MPEG-2
Xiang, Haihao [Tue, 27 Nov 2012 08:13:18 +0000 (16:13 +0800)]
No emulation bytes for MPEG-2

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoInternal flag for the coded buffer
Xiang, Haihao [Tue, 27 Nov 2012 08:08:26 +0000 (16:08 +0800)]
Internal flag for the coded buffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agorename I965_CODEDBUFFER_SIZE
Xiang, Haihao [Tue, 27 Nov 2012 07:49:24 +0000 (15:49 +0800)]
rename I965_CODEDBUFFER_SIZE

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoInsert some redunrant data around a slice
Xiang, Haihao [Fri, 23 Nov 2012 08:49:51 +0000 (16:49 +0800)]
Insert some redunrant data around a slice

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoSetup MFC pipeline for MPEG-2 encoding on Haswell
Xiang, Haihao [Fri, 23 Nov 2012 08:30:40 +0000 (16:30 +0800)]
Setup MFC pipeline for MPEG-2 encoding on Haswell

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoExplicitly clarify features
Xiang, Haihao [Thu, 22 Nov 2012 01:37:18 +0000 (09:37 +0800)]
Explicitly clarify features

Also simplify some MACROs

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoFix H264 YUV400 surface render issue
Li, Xiaowei A [Tue, 27 Nov 2012 02:28:41 +0000 (10:28 +0800)]
Fix H264 YUV400 surface render issue

All decoded frame are considered as NV12 format in driver's,
for YUV400 format senerios, we need set the chroma component
of NV12 to a constant value(0x80), otherwise the converted ARGB
from NV12 format is not correct and cause render issue.

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
(cherry picked from commit 3ac4256d3aba3db757d086a7e7496d95cd8b0da4)

11 years agoVPP: Add video sharpening processing feature on HSW
Li,Xiaowei [Tue, 16 Oct 2012 21:43:39 +0000 (05:43 +0800)]
VPP: Add video sharpening processing feature on HSW

Video sharpening feature is implemented based on media
shared function pipeline, Y component of NV12 surface
will be sharpened.

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
11 years agoFix H264 YUV400 surface render issue
Li, Xiaowei A [Tue, 27 Nov 2012 02:28:41 +0000 (10:28 +0800)]
Fix H264 YUV400 surface render issue

All decoded frame are considered as NV12 format in driver's,
for YUV400 format senerios, we need set the chroma component
of NV12 to a constant value(0x80), otherwise the converted ARGB
from NV12 format is not correct and cause render issue.

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
11 years agovc1: fix bitplane buffer size(HSW)
Li, Xiaowei A [Fri, 14 Dec 2012 02:05:43 +0000 (10:05 +0800)]
vc1: fix bitplane buffer size(HSW)

This fixes buffer overflow in the newly allocated Gen buffer
that holds VC-1 bitplanes.

Signed-off-by: Li,Xiaowei <xiaowei.a.li@intel.com>
11 years agovc1: fix bitplane buffer size (SNB, IVB).
Gwenole Beauchesne [Thu, 2 Feb 2012 13:42:11 +0000 (14:42 +0100)]
vc1: fix bitplane buffer size (SNB, IVB).

This fixes buffer overflow in the newly allocated Gen buffer that holds
VC-1 bitplanes.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoRender: Add four subpicture support
Li,Xiaowei [Tue, 27 Nov 2012 01:08:29 +0000 (09:08 +0800)]
Render: Add four subpicture support

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
(cherry picked from commit a7c42530c312bdb1c53cce49b6a86f47de2ccb65)

Conflicts:

src/i965_drv_video.c

11 years agoRender: Add AI88/IA88 surface foramt support for subpicture
Li,Xiaowei [Fri, 23 Nov 2012 07:24:26 +0000 (15:24 +0800)]
Render: Add AI88/IA88 surface foramt support for subpicture

Signed off by: Li,Xiaowei A <xiaowei.a.li@intel.com>
(cherry picked from commit 6a641d0feda6ded2abcd907c4ceb5a45f134990d)

Conflicts:

src/i965_drv_video.h

11 years agoRender: Add global alpha support for subpicture
Li,Xiaowei [Fri, 23 Nov 2012 03:13:48 +0000 (11:13 +0800)]
Render: Add global alpha support for subpicture

Signed-off-by: Li Xiaowei A <xiaowei.a.li@intel.com>
(cherry picked from commit 06998b16f470ba49c2af0372e2ef7fee74b1d5b6)

11 years agoRender: Add four subpicture support
Li,Xiaowei [Tue, 27 Nov 2012 01:08:29 +0000 (09:08 +0800)]
Render: Add four subpicture support

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
11 years agoRender: Add AI88/IA88 surface foramt support for subpicture
Li,Xiaowei [Fri, 23 Nov 2012 07:24:26 +0000 (15:24 +0800)]
Render: Add AI88/IA88 surface foramt support for subpicture

Signed off by: Li,Xiaowei A <xiaowei.a.li@intel.com>

11 years agoRender: Add global alpha support for subpicture
Li,Xiaowei [Fri, 23 Nov 2012 03:13:48 +0000 (11:13 +0800)]
Render: Add global alpha support for subpicture

Signed-off-by: Li Xiaowei A <xiaowei.a.li@intel.com>
11 years agoFeed MFC PAK with correct MV of VME output on haswell
Zhao Yakui [Thu, 13 Dec 2012 01:24:27 +0000 (09:24 +0800)]
Feed MFC PAK with correct MV of VME output on haswell

This is helpful to improve the video compress rate of H264 encoding.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoAdjust the mode/mv cost for VME parameter based on QP for HSW
Zhao Yakui [Mon, 10 Dec 2012 08:29:37 +0000 (16:29 +0800)]
Adjust the mode/mv cost for VME parameter based on QP for HSW

Currently it will use the same mode/mv cost regardless of QP during VME
prediction, which causes that we get the same VME prediction. It is better
that we get the different VME prediction mode based on QP, which can be
adopted by using mode/mv cost.
Now it is only applied on HSW.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoAdd the support of the chroma intra prediction on Haswell
Zhao Yakui [Mon, 10 Dec 2012 08:29:37 +0000 (16:29 +0800)]
Add the support of the chroma intra prediction on Haswell

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoFix the corrupted macroblock for AVC encoding on HSW
Zhao Yakui [Mon, 10 Dec 2012 08:29:36 +0000 (16:29 +0800)]
Fix the corrupted macroblock for AVC encoding on HSW

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoAdd CSC conversion between RGBX and NV12 for HSW by using AVS shader
Zhao Yakui [Fri, 7 Dec 2012 02:21:09 +0000 (10:21 +0800)]
Add CSC conversion between RGBX and NV12 for HSW by using AVS shader

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoOptimize the sampler 8x8 coefficients for AVS shader
Zhao Yakui [Fri, 7 Dec 2012 02:21:09 +0000 (10:21 +0800)]
Optimize the sampler 8x8 coefficients for AVS shader

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoAdd the csc conversion from RGBX to NV12 on Ivy
Zhao Yakui [Fri, 7 Dec 2012 02:21:09 +0000 (10:21 +0800)]
Add the csc conversion from RGBX to NV12 on Ivy

It also applies when the source type is BGRX.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoAdd CSC conversion from NV12 to RGBX for VPP on Ivy
Zhao Yakui [Fri, 7 Dec 2012 02:21:09 +0000 (10:21 +0800)]
Add CSC conversion from NV12 to RGBX for VPP on Ivy

It also applies to the conversion from NV12 to BGRX.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoconfigure: add missing dependency to libm.
Joe Konno [Tue, 20 Nov 2012 15:42:27 +0000 (07:42 -0800)]
configure: add missing dependency to libm.

Build broke when trying to compile with expressive debug CFLAGS (-g3).
This was root-caused to the lack of the "-lm" linker flag. By adding a
simple autoconf check we ensure that libm is linked.

More specifically, recent VEBOX changes depend on cos() and sin() math
functions.

Signed-off-by: Joe Konno <joe.konno@intel.com>
(cherry picked from commit eb39abb70886d9277cf7d5114125cb7b22e7c362)

11 years agoconfigure: add missing dependency to libm.
Joe Konno [Tue, 20 Nov 2012 15:42:27 +0000 (07:42 -0800)]
configure: add missing dependency to libm.

Build broke when trying to compile with expressive debug CFLAGS (-g3).
This was root-caused to the lack of the "-lm" linker flag. By adding a
simple autoconf check we ensure that libm is linked.

More specifically, recent VEBOX changes depend on cos() and sin() math
functions.

Signed-off-by: Joe Konno <joe.konno@intel.com>
11 years agowayland: port to 1.0 protocol.
Rob Bradford [Fri, 19 Oct 2012 17:49:56 +0000 (18:49 +0100)]
wayland: port to 1.0 protocol.

Previously some of the functions that this code relied upon were exported as
symbols from the wayland-client .so. However those are now autogenerated
instead and are thus included as static inlines in the header file. Therefore
we must recreated the desired functions using the function pointers found in
the vtable.

Also following the removal of the globals hash from the client code it is
necessary to setup a registry with a listener on it to receive the global
objects.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
(cherry picked from commit 63db874e9c924f086bcd3518cc0f3d8c6df9ecec)

11 years agowayland: port to 1.0 protocol.
Rob Bradford [Fri, 19 Oct 2012 17:49:56 +0000 (18:49 +0100)]
wayland: port to 1.0 protocol.

Previously some of the functions that this code relied upon were exported as
symbols from the wayland-client .so. However those are now autogenerated
instead and are thus included as static inlines in the header file. Therefore
we must recreated the desired functions using the function pointers found in
the vtable.

Also following the removal of the globals hash from the client code it is
necessary to setup a registry with a listener on it to receive the global
objects.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
11 years agoBump new version for development
Xiang, Haihao [Fri, 9 Nov 2012 01:59:32 +0000 (09:59 +0800)]
Bump new version for development

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agointel driver 1.0.19
Xiang, Haihao [Fri, 9 Nov 2012 01:42:46 +0000 (09:42 +0800)]
intel driver  1.0.19

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoFix build and remaining compilation warnings.
Gwenole Beauchesne [Mon, 5 Nov 2012 08:32:22 +0000 (09:32 +0100)]
Fix build and remaining compilation warnings.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoNEWS: minor wording fixes.
Gwenole Beauchesne [Mon, 5 Nov 2012 08:29:01 +0000 (09:29 +0100)]
NEWS: minor wording fixes.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoUpdate NEWS
Xiang, Haihao [Fri, 2 Nov 2012 01:31:28 +0000 (09:31 +0800)]
Update NEWS

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoWarning fixes
Xiang, Haihao [Thu, 1 Nov 2012 07:41:20 +0000 (15:41 +0800)]
Warning fixes

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoEncoding: use a separated command buffer
Xiang, Haihao [Thu, 1 Nov 2012 06:27:06 +0000 (14:27 +0800)]
Encoding: use a separated command buffer

The command buffer is adaptive to the size of the frame.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoAdd two helper functions for batchbuffer
Xiang, Haihao [Fri, 2 Mar 2012 07:40:51 +0000 (15:40 +0800)]
Add two helper functions for batchbuffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 695c0b25d4f77d0b443ec97cfcb42f59b4df7e71)

11 years agoEncoding: modify function to fill command into a specified batch buffer
Xiang, Haihao [Thu, 1 Nov 2012 01:39:29 +0000 (09:39 +0800)]
Encoding: modify function to fill command into a specified batch buffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoAllow to create batchbuffer based on the expected buffer size
Zhao Yakui [Wed, 31 Oct 2012 08:47:57 +0000 (16:47 +0800)]
Allow to create batchbuffer based on the expected buffer size

This is to support the 4Kx4K encoding on Haswell. Otherwise the default batch
buffer size can't hold the encoding command for 4Kx4K encoding.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoRemove the hard coded value to suppor the 4Kx4K encoding
Zhao Yakui [Wed, 31 Oct 2012 08:47:55 +0000 (16:47 +0800)]
Remove the hard coded value to suppor the 4Kx4K encoding

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoFix the issue in i965_UnlockSurface to lock it next time
Zhao Yakui [Wed, 31 Oct 2012 08:47:54 +0000 (16:47 +0800)]
Fix the issue in i965_UnlockSurface to lock it next time

It uses the variable of locked_image_id to check whether one surface is locked
or not. But as the locked_image_id is not assigned correctly, it causes that
it can't lock one surface next time although it calls the vaUnlockSurfaces.
Then the libva trace log can't dump the content of decoded/
encoded surface even after adding LIBVA_TRACE_SURFACE=XXX.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Gwenole Beauchesne <gb.devel@gmail.com>
11 years agoAvoid the dup of gen_free_avc_surface during compile
Zhao Yakui [Wed, 31 Oct 2012 08:47:59 +0000 (16:47 +0800)]
Avoid the dup of gen_free_avc_surface during compile

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoRestrict the max MV number in MV prediction
Zhao Yakui [Wed, 31 Oct 2012 08:47:58 +0000 (16:47 +0800)]
Restrict the max MV number in MV prediction

This is to follow the level limits for MV number for the two
consecutive MBs in H264 Spec.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoAllow to create batchbuffer based on the expected buffer size
Zhao Yakui [Wed, 31 Oct 2012 08:47:57 +0000 (16:47 +0800)]
Allow to create batchbuffer based on the expected buffer size

This is to support the 4Kx4K encoding on Haswell. Otherwise the default batch
buffer size can't hold the encoding command for 4Kx4K encoding.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoRemove the dup code of XXX_mfc_avc_prepare
Zhao Yakui [Wed, 31 Oct 2012 08:47:56 +0000 (16:47 +0800)]
Remove the dup code of XXX_mfc_avc_prepare

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoRemove the hard coded value to suppor the 4Kx4K encoding
Zhao Yakui [Wed, 31 Oct 2012 08:47:55 +0000 (16:47 +0800)]
Remove the hard coded value to suppor the 4Kx4K encoding

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoFix the issue in i965_UnlockSurface to lock it next time
Zhao Yakui [Wed, 31 Oct 2012 08:47:54 +0000 (16:47 +0800)]
Fix the issue in i965_UnlockSurface to lock it next time

It uses the variable of locked_image_id to check whether one surface is locked
or not. But as the locked_image_id is not assigned correctly, it causes that
it can't lock one surface next time although it calls the vaUnlockSurfaces.
Then the libva trace log can't dump the content of decoded/
encoded surface even after adding LIBVA_TRACE_SURFACE=XXX.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Gwenole Beauchesne <gb.devel@gmail.com>
11 years agoUnify the XXX_free_avc_surface for media encoding/decoding
Zhao Yakui [Wed, 31 Oct 2012 08:47:53 +0000 (16:47 +0800)]
Unify the XXX_free_avc_surface for media encoding/decoding

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
11 years agoFix thread issue with AVC private surafce
Gautam [Wed, 31 Oct 2012 08:47:52 +0000 (16:47 +0800)]
Fix thread issue with AVC private surafce

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

Signed-off-by: Gautam <manamgautam@gmail.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoUnify the code for xxx_free_avc_surface
Xiang, Haihao [Wed, 31 Oct 2012 08:47:51 +0000 (16:47 +0800)]
Unify the code for xxx_free_avc_surface

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: refine code to resolve building warnings
Li, Xiaowei A [Wed, 31 Oct 2012 01:49:12 +0000 (09:49 +0800)]
VPP: refine code to resolve building warnings

Signed-off-by: Li,Xiaowei A <xiaowei.a.li@intel.com>
11 years agoVPP: add vebox context init and deinit
Li, Xiaowei A [Wed, 31 Oct 2012 01:25:53 +0000 (09:25 +0800)]
VPP: add vebox context init and deinit

Signed-off-by: Li,Xiaowei A <xiaowei.a.li@intel.com>
11 years agoVPP: Alloc I965 batch buffer before initialization
Li, Xiaowei A [Tue, 30 Oct 2012 23:19:53 +0000 (07:19 +0800)]
VPP: Alloc I965 batch buffer before initialization

11 years agoVPP: Fix the surface flags and type setting
Li, Xiaowei A [Tue, 30 Oct 2012 23:13:07 +0000 (07:13 +0800)]
VPP: Fix the surface flags and type setting

Signed-off-by: Li,Xiaowei A <xiaowei.a.li@intel.com>
11 years agoVPP: fix the usage of pp_static_parameter
Li, Xiaowei A [Tue, 30 Oct 2012 03:17:08 +0000 (11:17 +0800)]
VPP: fix the usage of pp_static_parameter

Signed-off-by: Li,Xiaowei A <xiaowei.a.li@intel.com>
11 years agoVPP: work around hw limitation(dword alignment)
Zhao Halley [Thu, 2 Aug 2012 09:22:33 +0000 (12:22 +0300)]
VPP: work around hw limitation(dword alignment)

work around for horizontal offset on dst surface
left edge for load/save procedure

Signed-off-by: Zhao,Halley <halley.zhao@intel.com>
11 years agoVPP: Remove useless shader and refine shader list
Li, Xiaowei A [Tue, 30 Oct 2012 02:31:35 +0000 (10:31 +0800)]
VPP: Remove useless shader and refine shader list

Signed-off-by: Li,Xiaowei A <xiaowei.a.li@intel.com>
11 years agoVPP: CSC on Haswell
Xiang, Haihao [Thu, 25 Oct 2012 07:09:13 +0000 (15:09 +0800)]
VPP: CSC on Haswell

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: Build VPP shaders for Haswell
Xiang, Haihao [Thu, 25 Oct 2012 07:07:37 +0000 (15:07 +0800)]
VPP: Build VPP shaders for Haswell

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: haswell: fix video post-processing setup.
Gwenole Beauchesne [Fri, 18 May 2012 09:40:59 +0000 (11:40 +0200)]
VPP: haswell: fix video post-processing setup.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
11 years agoVPP: The block mask workaround is only available for Sandy bridge
Xiang, Haihao [Wed, 12 Sep 2012 07:27:46 +0000 (03:27 -0400)]
VPP: The block mask workaround is only available for Sandy bridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP:work around hw limitation(dword alignment)
Zhao Halley [Thu, 2 Aug 2012 09:28:48 +0000 (12:28 +0300)]
VPP:work around hw limitation(dword alignment)

work around for horizontal offset on dst surface left edge for nv12 scaling (not avs)

Signed-off-by: Zhao,Halley <halley.zhao@intel.com>
11 years agoVPP: work around hw limitation(dword alignment)
Zhao Halley [Thu, 2 Aug 2012 09:04:37 +0000 (12:04 +0300)]
VPP: work around hw limitation(dword alignment)

work around for horizontal offset on dst surface left edge (nv12 avs)

Signed-off-by: Zhao,Halley <halley.zhao@intel.com>
11 years agoVPP: Enable horizontal and vertical mask for bottom/right boundary blocks
Zhao Halley [Thu, 26 Jul 2012 08:27:45 +0000 (11:27 +0300)]
VPP: Enable horizontal and vertical mask for bottom/right boundary blocks

Signed-off-by: Zhao,Halley <halley.zhao@intel.com>
- usually it is 0xff/0xffff for common blocks in grf5
- one mask is setup in object_walker when the last group of blocks are met
- another mask should setup when the last block (in a group) is met.
  it will be done in asm code, we make it ready in grf6

11 years agoVPP: Adjust vertical scaling step for AVS on IVB
Xiang, Haihao [Wed, 29 Aug 2012 05:24:00 +0000 (01:24 -0400)]
VPP: Adjust vertical scaling step for AVS on IVB

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: AVS workaround on IVB
Xiang, Haihao [Wed, 29 Aug 2012 05:29:44 +0000 (01:29 -0400)]
VPP: AVS workaround on IVB

Update AVS shaders and add CURBE parameters for AVS workaround

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: Update the shader for DI on IVB
Xiang, Haihao [Thu, 23 Aug 2012 02:55:00 +0000 (22:55 -0400)]
VPP: Update the shader for DI on IVB

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: Add support DN on IVB
Xiang, Haihao [Fri, 29 Jun 2012 08:51:00 +0000 (16:51 +0800)]
VPP: Add support DN on IVB

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
11 years agoVPP: New combined shaders for Ivybridge
Xiang, Haihao [Wed, 22 Aug 2012 06:51:40 +0000 (02:51 -0400)]
VPP: New combined shaders for Ivybridge

In addtion, add the license header.

You need the latest intel-gen4asm to build these shaders

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