summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-09-20README: fix libva required version.v1.0-branchGwenole Beauchesne1-1/+1
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-09-20configure: simplify check for VA-API version.Gwenole Beauchesne1-4/+2
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-09-20build: use libva-intel-driver as the package name.Gwenole Beauchesne7-10/+10
Most OSVs adopted XXX-intel-driver as their shipping packages for the Intel VA driver, with XXX = { vaapi, libva }. Adopt libva-intel-driver from now on for upstream packages too. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-08-02intel-driver 1.0.181.0.18Xiang, Haihao2-7/+5
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-08-02The version of VA-API is at least 0.32.1Xiang, Haihao1-2/+5
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-07-26Adopt the new interfaces for JPEG decodingXiang, Haihao1-43/+39
Currently the HW only supprts JPEG baseline decoding Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit d4be016d054ba79f5b4882088ded96528a60c985) Conflicts: src/gen7_mfd.c
2012-07-26Revert "Fix build with older VA-API (libva)."Xiang, Haihao3-30/+0
This reverts commit bcca7d23de29423b0d7d9954bfb21cc9bf3834f5.
2012-06-27NEWS: updates.Gwenole Beauchesne1-5/+21
Sync changes from 1.0.x series. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-27configure: bump version for development.Gwenole Beauchesne1-2/+2
Preparatory work for some changes to be promoted from staging to master. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-27configure: require automake >= 1.9 for tar-ustar option.Gwenole Beauchesne1-1/+1
By default, newer automake versions make tar use the ancient tar V7 format that limits filenames to 99 characters. This is troublesome for certain shader sources files. Now require automake 1.9 and use the tar-ustar option so that a newer format, defined in POSIX 1003.1-1988, is used. The limitation is now 256 characters. PAX interchange format (POSIX 1003.1-2001) was considered but probably still to young? Just stick to the intermediate format for now as this is enough for our purposes. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-27h264: fix 4K decoding (IVB).Gwenole Beauchesne1-6/+11
Fix decoding of 4K videos on Ivy Bridge. Note that either dimension shall not exceed 4096 pixels. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-06-15Implementation for i965_SyncSurface and i965_QuerySurfaceStatusDmitry Ermilov1-7/+11
2012-05-29new version for developmentXiang, Haihao1-2/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-05-291.0.18Xiang, Haihao1-2/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-05-04Fix the error code for unsupported resolutionXiang, Haihao1-1/+1
Thank Gwenole for pointing it out Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-05-03MPEG-2: Fix MFX_QM_STATE command on IvybridgeXiang, Haihao1-12/+32
If load_intra_quantiser_matrix/load_non_intra_quantiser_matrix is set to 0, then there is no change to quantisation matrix. In this case, submit MFX_QM_STATE with previous setting Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-05-02Enlarge some internal buffer for H.264 decoding on IvybridgeXiang, Haihao1-2/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-04-13Add support for new Ivybridge chipsetXiang, Haihao1-1/+3
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-04-10Include the missing config.hXiang, Haihao1-0/+1
It won't build JPEG without config.h Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-03-30mpeg2: propagate reference surfaces to other slots.Gwenole Beauchesne1-2/+6
Fill in remaining reference surfaces as recommanded in HW specs. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-27Check the max resolution supported by hardware when create VA contextXiang, Haihao2-0/+16
It will avoid GPU hang when try to play unsupported large resolution videos. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-03-27Allocate internal buffers with right size for SNB & IVBXiang, Haihao2-26/+42
The size is scalable with frame width or height Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-03-26Avoid moving objects in a heap to a new address when expanding this heapXiang, Haihao2-13/+50
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-03-18mpeg2: fix construction of reference frames list (SNB, IVB).Gwenole Beauchesne5-38/+110
Fix construction of reference frames list for interlaced streams. In this case, the array is indexed by frame store ID >> 1 where bit 0 of frame store ID represents top (0) or bottom (1) field. Besides, current render target can also be used as a reference while decoding the second field. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-18mpeg2: fix reference surfaces construction (IVB).Gwenole Beauchesne1-1/+1
Avoid an assert() since we were assigning a reference surface even if it did not have any backing store. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-18mpeg2: fix TFF calculation (SNB).Gwenole Beauchesne1-1/+9
Gen6 has specific requirements for the TFF flag, and thus has different semantics than Gen7 (IVB). In particular, HW uses picture_structure and TFF flag to determine the correct field to render. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-18mpeg2: fix incorrect slice_vertical_position from codec layers.Gwenole Beauchesne9-8/+87
Correctly emit slice_vertical_position, as per the definition from the bitstream, to the HW decoder (MFD_MPEG2_BSD_OBJECT). Add workaround for players that have not fixed their usage of slice_vertical_position. That field shall represent the slice vertical position as it comes from the bitstream. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-18Add WARN_ONCE() helper macro.Gwenole Beauchesne1-0/+8
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-14render: fix rendering of interlaced surfaces.Gwenole Beauchesne4-43/+93
Handle bob-deinterlacing flags passed to vaPutSurface(). i.e. VA_TOP_FIELD|VA_BOTTOM_FIELD. Avoid advanced deinterlacing kernels as they allocate extra temporary surfaces, which are useless for such simple tasks. i.e. display either field of an interlaced surface. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-14h264: fix max header size calculation with EPB.Gwenole Beauchesne1-1/+1
... aka fix wrong patch applied. For the records, considering header size without EPB is N, then the max header size with EPB is N * 3/2. However, it's not possible to reach this value since that would mean that slice_header() only contained zeroes. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-14h264: fix scan for bit offset to macroblock.Gwenole Beauchesne1-7/+8
Handle two indices in parallel, one relative to the bitstream with EPB, and the other without EPB. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-13h264: fix weight denom for implicit weight tables (SNB).Gwenole Beauchesne1-2/+12
If weighted_bipred_idc == 2, luma and chroma weight denom (in log2 base) shall be set to the default value on Sandy Bridge. i.e. 5 as per defined at 8-279 in AVC specs. https://bugs.freedesktop.org/show_bug.cgi?id=40820 Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-13h264: fix weighted prediction indicator (SNB).Gwenole Beauchesne2-1/+2
Implicit weight tables derivation (weighted_bipred_idc == 2) could not be set. Only default weight tables were possible instead of explicit weight tables provided by the codec layer. https://bugs.freedesktop.org/show_bug.cgi?id=40820 Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-03-02h264: fix first macroblock bit offset calculation (ILK, SNB, IVB).Gwenole Beauchesne6-108/+100
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>
2012-02-23vc1: fix bitplane buffer size (SNB, IVB).Gwenole Beauchesne3-2/+3
This fixes buffer overflow in the newly allocated Gen buffer that holds VC-1 bitplanes. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-02-14h264: always submit MFX_QM_STATE for flat scaling lists (IVB).Gwenole Beauchesne5-10/+40
If codec layer does not provide a VAIQMatrixBufferH264, this means flat scaling lists shall be used. The MFX_QM_STATE command still has to be submitted since IVB+ does not have a means to use HW generated scaling lists. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-02-14jpeg: fix memory leak of huffman tables.Gwenole Beauchesne1-0/+1
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-02-14Fix build with older VA-API (libva).Gwenole Beauchesne3-0/+30
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-02-07Fix compile error after cherry-pickXiang, Haihao1-3/+3
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07A workaround for JPEG decoding on IvybridgeXiang, Haihao2-1/+418
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07Fix y offset for Cb/CrXiang, Haihao1-2/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07JPEG component id macros are removed, so don't use them in driverXiang, Haihao1-5/+5
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07Fix frame height/width for YUV400/YUV444/YUV422V_2Y JPEG imageXiang, Haihao1-2/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07Map JPEG component id to Y, Cb, CrXiang, Haihao1-4/+2
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07Render YUV400 image on IvybridgeXiang, Haihao3-7/+28
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07Fix graphics memory allocation for VA surfaceXiang, Haihao10-90/+231
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07use the revised JPEG decoding interfaceXiang, Haihao1-23/+74
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07Fix the bug for IVB jpeg decodingHai Lan1-0/+4
When call i965_BeginPicture for JPEG decoding, Assertion `0' failed. Signed-off-by: Hai Lan <hai.lan@intel.com>
2012-02-07use the new JPEG decoding interfaceXiang, Haihao1-1/+1
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2012-02-07i965_drv_video: support JPEG decoding on IvybridgeXiang, Haihao8-27/+411
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>