profile/ivi/libva.git
12 years agoAPI: h264 encode: add new VA config attributes (max-slices, slice-structure).
Gwenole Beauchesne [Thu, 24 Nov 2011 12:14:27 +0000 (12:14 +0000)]
API: h264 encode: add new VA config attributes (max-slices, slice-structure).

12 years agoAPI: h264 encode: renumber config attributes used for encoding.
Gwenole Beauchesne [Thu, 24 Nov 2011 10:53:19 +0000 (10:53 +0000)]
API: h264 encode: renumber config attributes used for encoding.

12 years agoAPI: h264 encode: improve VA config attributes documentation.
Gwenole Beauchesne [Thu, 24 Nov 2011 10:46:09 +0000 (10:46 +0000)]
API: h264 encode: improve VA config attributes documentation.

12 years agodoc: link modules from the main page.
Gwenole Beauchesne [Fri, 18 Nov 2011 12:52:29 +0000 (12:52 +0000)]
doc: link modules from the main page.

12 years agoAPI: h264 encode: add bitstream writers.
Gwenole Beauchesne [Tue, 15 Nov 2011 16:52:37 +0000 (16:52 +0000)]
API: h264 encode: add bitstream writers.

12 years agoAPI: h264 encode: add new config attributes for encoding (max-ref-frames).
Gwenole Beauchesne [Tue, 15 Nov 2011 13:24:09 +0000 (13:24 +0000)]
API: h264 encode: add new config attributes for encoding (max-ref-frames).

12 years agoAPI: h264 encode: document DPB usage.
Gwenole Beauchesne [Tue, 15 Nov 2011 10:42:46 +0000 (10:42 +0000)]
API: h264 encode: document DPB usage.

12 years agoAPI: h264 encode: add macroblock parameter buffer.
Gwenole Beauchesne [Thu, 10 Nov 2011 17:23:54 +0000 (17:23 +0000)]
API: h264 encode: add macroblock parameter buffer.

12 years agoAPI: h264 encode: rename insert_emulation_bytes to has_emulation_bytes.
Gwenole Beauchesne [Thu, 10 Nov 2011 17:06:19 +0000 (17:06 +0000)]
API: h264 encode: rename insert_emulation_bytes to has_emulation_bytes.

12 years agoAPI: h264 encode: drop extraneous comment.
Gwenole Beauchesne [Wed, 9 Nov 2011 10:23:51 +0000 (02:23 -0800)]
API: h264 encode: drop extraneous comment.

12 years agoAPI: h264 encode: drop profile_idc.
Gwenole Beauchesne [Wed, 9 Nov 2011 10:11:54 +0000 (02:11 -0800)]
API: h264 encode: drop profile_idc.

12 years agoAPI: h264 encode: re-define packed-headers buffer type ids.
Gwenole Beauchesne [Wed, 9 Nov 2011 10:10:42 +0000 (02:10 -0800)]
API: h264 encode: re-define packed-headers buffer type ids.

12 years agoAPI: add new H.264 encoding API for main and high profiles.
Gwenole Beauchesne [Fri, 4 Nov 2011 16:25:20 +0000 (17:25 +0100)]
API: add new H.264 encoding API for main and high profiles.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAPI: drop H.264 specific VA buffer types.
Gwenole Beauchesne [Wed, 9 Nov 2011 10:08:28 +0000 (02:08 -0800)]
API: drop H.264 specific VA buffer types.

VAEncH264VUIBufferType and VAEncH264SEIBufferType were never used
in any driver. Besides, they are codec-specific which is against
the generic buffer type policy. A new scheme will be developed.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAPI: rename H.264 encoding buffer structs with a Baseline suffix.
Gwenole Beauchesne [Fri, 4 Nov 2011 16:23:48 +0000 (17:23 +0100)]
API: rename H.264 encoding buffer structs with a Baseline suffix.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAPI: add a generic value type.
Gwenole Beauchesne [Tue, 15 Nov 2011 17:33:41 +0000 (17:33 +0000)]
API: add a generic value type.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agodoc: improve Doxyfile configuration.
Gwenole Beauchesne [Thu, 24 Nov 2011 14:16:37 +0000 (14:16 +0000)]
doc: improve Doxyfile configuration.

12 years agodoc: don't add timestamps in generated documentation.
Gwenole Beauchesne [Fri, 18 Nov 2011 12:17:50 +0000 (12:17 +0000)]
doc: don't add timestamps in generated documentation.

12 years agodoc: add placeholder for the Core API.
Gwenole Beauchesne [Fri, 4 Nov 2011 16:33:48 +0000 (17:33 +0100)]
doc: add placeholder for the Core API.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agova_tpi.h: corret a typo (Kbuf->KBuf) 73/873/1
Austin Yuan [Wed, 16 Nov 2011 05:59:58 +0000 (00:59 -0500)]
va_tpi.h: corret a typo (Kbuf->KBuf)

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
12 years agoconfigure: add check for EGL. 72/872/1
Gwenole Beauchesne [Thu, 3 Nov 2011 09:41:59 +0000 (10:41 +0100)]
configure: add check for EGL.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoconfigure: simplify summary. 71/871/1
Gwenole Beauchesne [Thu, 3 Nov 2011 09:28:00 +0000 (10:28 +0100)]
configure: simplify summary.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoconfigure: cosmetics (clean up configure options). 70/870/1
Gwenole Beauchesne [Thu, 3 Nov 2011 09:36:42 +0000 (10:36 +0100)]
configure: cosmetics (clean up configure options).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoconfigure: cosmetics (sort AC_OUTPUT Makefiles). 69/869/1
Gwenole Beauchesne [Thu, 3 Nov 2011 09:16:13 +0000 (10:16 +0100)]
configure: cosmetics (sort AC_OUTPUT Makefiles).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agodoc: add Doxygen templates. 68/868/1
Gwenole Beauchesne [Wed, 2 Nov 2011 16:08:39 +0000 (17:08 +0100)]
doc: add Doxygen templates.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agolibva: bump version for development. 67/867/1
Gwenole Beauchesne [Wed, 2 Nov 2011 14:28:53 +0000 (15:28 +0100)]
libva: bump version for development.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years ago1.0.15. 66/866/1 libva-1.0.15
Gwenole Beauchesne [Fri, 28 Oct 2011 13:40:28 +0000 (15:40 +0200)]
1.0.15.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agodebian: add package for vainfo. 65/865/1
Gwenole Beauchesne [Fri, 28 Oct 2011 13:34:26 +0000 (15:34 +0200)]
debian: add package for vainfo.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agodebian: don't use simple-patchsys (upstream has no patches). 64/864/1
Gwenole Beauchesne [Fri, 28 Oct 2011 13:20:08 +0000 (15:20 +0200)]
debian: don't use simple-patchsys (upstream has no patches).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAdd NEWS file. 63/863/1
Gwenole Beauchesne [Wed, 26 Oct 2011 11:45:50 +0000 (13:45 +0200)]
Add NEWS file.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agova: fix compiler warnings (drop unused variables). 62/862/1
Gwenole Beauchesne [Thu, 20 Oct 2011 12:05:38 +0000 (14:05 +0200)]
va: fix compiler warnings (drop unused variables).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAdd auto-generated Debian packaging. 61/861/1
Gwenole Beauchesne [Fri, 14 Oct 2011 16:19:03 +0000 (18:19 +0200)]
Add auto-generated Debian packaging.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agolibva: bump version for development. 60/860/1
Gwenole Beauchesne [Tue, 18 Oct 2011 14:06:19 +0000 (16:06 +0200)]
libva: bump version for development.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agolibva: allow pre-releases. 59/859/1
Gwenole Beauchesne [Tue, 18 Oct 2011 14:05:50 +0000 (16:05 +0200)]
libva: allow pre-releases.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agolibva: fix reported version as the one from VA-API. 58/858/1
Gwenole Beauchesne [Sun, 16 Oct 2011 10:09:02 +0000 (12:09 +0200)]
libva: fix reported version as the one from VA-API.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovainfo: report both VA-API and libva versions. 57/857/1
Gwenole Beauchesne [Sun, 16 Oct 2011 10:09:10 +0000 (12:09 +0200)]
vainfo: report both VA-API and libva versions.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoAPI: fix versioning. 56/856/1
Gwenole Beauchesne [Sun, 16 Oct 2011 10:08:52 +0000 (12:08 +0200)]
API: fix versioning.

We have to consider three distinct versions at this time: the VA-API
version, the library package version number, and the DSO version.

* VA-API version:
- increment major for any ABI change (which shall not occur!)
- increment minor for any interface change (e.g. new or modified function)
- increment micro for any other change (e.g. new flag, new codec definitions)
- reset micro version to zero when minor version is incremented
- reset minor version to zero when major version is incremented

* libva package version number:
- major version is automatically generated from VA-API major version
- minor version is automatically generated from VA-API minor version
- increment micro for any library release
- reset micro version to zero when VA-API major or minor version is incremented

* DSO version:
The SONAME shall remain to libva.so.1 for VA-API 0.x.y as long as the ABI
is not changed. Thus, the library name is generated as libva.<x>.<y>.0 where
<x> = VA-API major version + 1
<y> = 100 * VA-API minor version + VA-API micro version

For example:
VA-API 0.32.0 generates libva.so.1.3200.0 (libva 1.0.14 as of today)
VA-API 0.34.1 generates libva.so.1.3401.0 (e.g. libva 1.2.1)
VA-API 1.2.13 generates libva.so.2.213.0  (e.g. libva 2.2.13)

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agotest: fix build warnings on Android 55/855/1
Austin Yuan [Thu, 20 Oct 2011 05:43:12 +0000 (01:43 -0400)]
test: fix build warnings on Android

Change-Id: Ibc4231395af8dfcdef403d44b98c644349e2ba04
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
12 years agoandroid: fix <va/va_version.h> dependencies 54/854/1
Gwenole Beauchesne [Tue, 18 Oct 2011 13:00:52 +0000 (15:00 +0200)]
android: fix <va/va_version.h> dependencies

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoandroid: fix generation of <va/va_version.h> 53/853/1
Gwenole Beauchesne [Tue, 18 Oct 2011 12:05:48 +0000 (14:05 +0200)]
android: fix generation of <va/va_version.h>

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agova: generate __vaDriverInit_*() function name at run-time. 52/852/1
Gwenole Beauchesne [Tue, 18 Oct 2011 12:25:52 +0000 (14:25 +0200)]
va: generate __vaDriverInit_*() function name at run-time.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agova: don't explicitly include "config.h" 51/851/1
Gwenole Beauchesne [Tue, 18 Oct 2011 12:04:02 +0000 (14:04 +0200)]
va: don't explicitly include "config.h"

sysdeps.h is the internal header file to include that will eventually
include config.h, if necessary. e.g. we don't use it on Android.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agobuild: drop generated files. 50/850/1
Gwenole Beauchesne [Tue, 18 Oct 2011 12:03:10 +0000 (14:03 +0200)]
build: drop generated files.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovainfo: use system or user-defined DISPLAY to create the X display. 49/849/1
Gwenole Beauchesne [Mon, 17 Oct 2011 13:31:10 +0000 (15:31 +0200)]
vainfo: use system or user-defined DISPLAY to create the X display.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agodummy_drv_video: fix last commit. 48/848/1
Gwenole Beauchesne [Mon, 17 Oct 2011 12:00:44 +0000 (14:00 +0200)]
dummy_drv_video: fix last commit.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agodummy_drv_video: only build if requested. 47/847/1
Gwenole Beauchesne [Fri, 14 Oct 2011 16:13:54 +0000 (18:13 +0200)]
dummy_drv_video: only build if requested.

12 years agopkgconfig: move files to a specific directory. 46/846/1
Gwenole Beauchesne [Fri, 14 Oct 2011 15:31:24 +0000 (17:31 +0200)]
pkgconfig: move files to a specific directory.

12 years agoconfigure: drop check for intel-gen4asm (moved to intel-driver). 45/845/1
Gwenole Beauchesne [Fri, 14 Oct 2011 15:11:56 +0000 (17:11 +0200)]
configure: drop check for intel-gen4asm (moved to intel-driver).

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agova_tpi: correct the first argument of vaCreateSurfaceFromKBuf 44/844/1
Austin Yuan [Mon, 17 Oct 2011 02:29:03 +0000 (22:29 -0400)]
va_tpi: correct the first argument of vaCreateSurfaceFromKBuf

"VADisplay dpy" --> "VADriverContextP ctx"

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
12 years agova_fglrx: fix driver name detection. 43/843/1
Gwenole Beauchesne [Tue, 11 Oct 2011 08:34:37 +0000 (10:34 +0200)]
va_fglrx: fix driver name detection.

VA_FGLRXGetClientDriverName() used to return success even if no
valid driver name was found, thus returning a NULL driver name.

Also fixed the X display name matching routine to filter out the
screen number, which may not be in the string, and make sure to
compare screen numbers from what ADL returns too.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agovatrace/vafool: refine it 42/842/1
Austin Yuan [Thu, 22 Sep 2011 03:29:45 +0000 (23:29 -0400)]
vatrace/vafool: refine it

remove va_fool_getframe.c which looks strange
correct some coding style for file va.c
simplify va_fool.c for both decode and encode
refine the surface dump of va_trace.c

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
12 years agova_tpi: vaCreateSurfaceFromKBuf for streaming the video playback to remote monitor 41/841/1
jiguoliang [Thu, 25 Aug 2011 15:39:53 +0000 (11:39 -0400)]
va_tpi: vaCreateSurfaceFromKBuf for streaming the video playback to remote monitor

For such use case, the pipeline is: decode->encode->send to network.
The local decode/playback and the encode process are seperated, thus it
needs the buffer sharing b/w the decode and encode in seperate process.
This API creates/wraps the decoded surface into an encode surface. Its
input parameter is the kernel buffer handle of decoded surface which is
only understandable by driver implementation.

Change-Id: I7953ecf3b7333c1cdb6af5a0f45b054c8840f8e2
Signed-off-by: jiguoliang <guoliangx.ji@intel.com>
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
12 years agova.h: TopFieldOrderCnt/BottomFieldOrderCnt should be signed instead of unsigned 40/840/1
ywan171 [Tue, 2 Aug 2011 14:38:05 +0000 (22:38 +0800)]
va.h: TopFieldOrderCnt/BottomFieldOrderCnt should be signed instead of unsigned

POC should be integer.

Change-Id: I75281aafa148c88f0de58981969e1c43ea8d2684
Signed-off-by: ywan171 <yi.a.wang@intel.com>
12 years agova: remove i965 driver from libva repository 39/839/1
Xiang, Haihao [Mon, 19 Sep 2011 02:02:39 +0000 (10:02 +0800)]
va: remove i965 driver from libva repository

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agova/test: Fix DSO link issue 38/838/1
Xiang, Haihao [Mon, 19 Sep 2011 01:12:33 +0000 (09:12 +0800)]
va/test: Fix DSO link issue

I didn't see this issue until I upgraded my system recently.
It's evident the default behavior of the linker is changed.
Explicitly adding the missing libraries to the link step can resolve
this issue.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agova: update the check for intel-gen4asm 37/837/1
Xiang, Haihao [Tue, 2 Aug 2011 07:06:09 +0000 (15:06 +0800)]
va: update the check for intel-gen4asm

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agobump to 1.0.14 36/836/1 libva-1.0.14
Xiang, Haihao [Thu, 28 Jul 2011 00:38:03 +0000 (08:38 +0800)]
bump to 1.0.14

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
12 years agoi965_drv_video: don't export internal driver functions. 35/835/1
Gwenole Beauchesne [Tue, 26 Jul 2011 11:48:25 +0000 (19:48 +0800)]
i965_drv_video: don't export internal driver functions.

Make sure to use our internal functions. In particular, we override
some DRM functions and they have to be used. e.g. this fixes VA/GLX.

12 years agova.h: VA_DECODE_ERROR_TYPE changed to VADecodeErrorType for unified codying style... 34/834/1
Austin Yuan [Tue, 26 Jul 2011 06:11:08 +0000 (14:11 +0800)]
va.h: VA_DECODE_ERROR_TYPE changed to VADecodeErrorType for unified codying style (CamelCase)

VA_DECODE_SLICE_MISSING --> VADecodeSliceMissing
VA_DECODE_MB_ERROR --> VADecodeMBError

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
12 years agodri2: ignore BadDrawable errors. 33/833/1
Gwenole Beauchesne [Wed, 20 Jul 2011 15:44:29 +0000 (17:44 +0200)]
dri2: ignore BadDrawable errors.

Hi,

This patch fixes the following error.

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  137 (DRI2)
  Minor opcode of failed request:  4 (DRI2DestroyDrawable)
  Resource id in failed request:  0x4800001
  Serial number of failed request:  30
  Current serial number in output stream:  32

The X drawable can die before we notice it in free_drawable_hashtable(),
called through vaTerminate(). This patch is ported from Mesa (GLX/DRI2).

Regards,
Gwenole.

12 years agoFix make dist. 32/832/1
Gwenole Beauchesne [Wed, 20 Jul 2011 14:48:51 +0000 (16:48 +0200)]
Fix make dist.

12 years agoFix out-of-source builds. 31/831/1
Gwenole Beauchesne [Wed, 20 Jul 2011 14:19:52 +0000 (16:19 +0200)]
Fix out-of-source builds.

12 years agoi965_drv_video: cosmetics (cleanup Makefile). 30/830/1
Gwenole Beauchesne [Wed, 20 Jul 2011 11:10:08 +0000 (13:10 +0200)]
i965_drv_video: cosmetics (cleanup Makefile).

12 years agocosmetics: clean up Makefiles. 29/829/1
Gwenole Beauchesne [Wed, 20 Jul 2011 11:01:28 +0000 (13:01 +0200)]
cosmetics: clean up Makefiles.

12 years agoVA/X11: drop useless casts. 28/828/1
Gwenole Beauchesne [Wed, 20 Jul 2011 08:56:24 +0000 (10:56 +0200)]
VA/X11: drop useless casts.

12 years agoVA/GLX: drop useless casts. 27/827/1
Gwenole Beauchesne [Wed, 20 Jul 2011 08:52:29 +0000 (10:52 +0200)]
VA/GLX: drop useless casts.

12 years agovatrace: trace JPEG encode parameters 26/826/1
Austin Yuan [Tue, 26 Jul 2011 05:57:42 +0000 (13:57 +0800)]
vatrace: trace JPEG encode parameters

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
12 years agoUpdate on vatrace/test and va.h 25/825/1
Austin Yuan [Thu, 14 Jul 2011 03:18:44 +0000 (11:18 +0800)]
Update on vatrace/test and va.h

vatrace:print H263 decode paramters
test/putsurfac: create drawable with a geometry from commandline
va.h: add BGRA fourcc

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
12 years agoi965_drv_video: update post processing interface 24/824/1
Xiang, Haihao [Tue, 12 Jul 2011 07:28:29 +0000 (15:28 +0800)]
i965_drv_video: update post processing interface

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: fixes assertion failure 23/823/1
Xiang, Haihao [Fri, 8 Jul 2011 02:54:31 +0000 (10:54 +0800)]
i965_drv_video: fixes assertion failure

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: fix next slice vertical position for field picture 22/822/1
Xiang, Haihao [Thu, 7 Jul 2011 07:55:58 +0000 (15:55 +0800)]
i965_drv_video: fix next slice vertical position for field picture

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=38628

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agovatrace: print MPEG4/H263 encode parameters information 21/821/1
Austin Yuan [Thu, 30 Jun 2011 09:23:29 +0000 (17:23 +0800)]
vatrace: print MPEG4/H263 encode parameters information

Change-Id: Ib39b436865c2b665dc49c916d5f364f03e8c79b5
igned-off-by: Austin Yuan <shengquan.yuan@gmail.com>

13 years agoi965_drv_video: add support for VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD. 20/820/1
Gwenole Beauchesne [Tue, 28 Jun 2011 01:30:21 +0000 (18:30 -0700)]
i965_drv_video: add support for VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD.

13 years agoi965_drv_video: fix subpicture scale factor for Y axis. 19/819/1
Gwenole Beauchesne [Tue, 28 Jun 2011 04:19:51 +0000 (21:19 -0700)]
i965_drv_video: fix subpicture scale factor for Y axis.

13 years agoi965_drv_video: simplify put_surface() and put_subpicture() args. 18/818/1
Gwenole Beauchesne [Tue, 28 Jun 2011 00:02:58 +0000 (17:02 -0700)]
i965_drv_video: simplify put_surface() and put_subpicture() args.

13 years agova/test/putsurface_x11: avoid warning 'warning: ‘win’ is used uninitialized in this... 17/817/1
Xiang, Haihao [Fri, 24 Jun 2011 01:20:32 +0000 (09:20 +0800)]
va/test/putsurface_x11: avoid warning 'warning: ‘win’ is used uninitialized in this function'

This fixes broken putsurface on X11

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agova/test: return a value to silence compiler waring 16/816/1
Xiang, Haihao [Fri, 24 Jun 2011 01:14:10 +0000 (09:14 +0800)]
va/test: return a value to silence compiler waring

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agova: fix warning about memset. 15/815/1
Xiang, Haihao [Fri, 24 Jun 2011 01:10:47 +0000 (09:10 +0800)]
va: fix warning about memset.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agotest/putsurface: more cleanup, remove #ifdef ANDROID from putsurface_common.c 14/814/1
Austin Yuan [Mon, 20 Jun 2011 08:03:41 +0000 (01:03 -0700)]
test/putsurface: more cleanup, remove #ifdef ANDROID from putsurface_common.c

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
13 years agotest/putsurface: add UV element into the auto-generated image 13/813/1
Austin Yuan [Mon, 20 Jun 2011 03:15:23 +0000 (20:15 -0700)]
test/putsurface: add UV element into the auto-generated image

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
13 years agoFix vaTerminate() with non DRI-based drivers. 12/812/1
Gwenole Beauchesne [Thu, 16 Jun 2011 13:03:46 +0000 (21:03 +0800)]
Fix vaTerminate() with non DRI-based drivers.

13 years agova-android: same as X11, also always create a new VA display on android 11/811/1
Austin Yuan [Thu, 16 Jun 2011 05:58:11 +0000 (13:58 +0800)]
va-android: same as X11, also always create a new VA display on android

Previously a VA display will be shared if a native display is shared by multiple threads,
it will casue some thread safety issue in a multi-threaded program.

Remove the global VADisplayContextP pDisplayContexts which is not thread safe

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
13 years agoi965_drv_video: fix assertion failure 10/810/1
Xiang, Haihao [Wed, 15 Jun 2011 01:11:26 +0000 (09:11 +0800)]
i965_drv_video: fix assertion failure

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: fix GPU hang issue when decoding field coded MPEG2 picture. 09/809/1
Xiang, Haihao [Tue, 14 Jun 2011 01:49:44 +0000 (09:49 +0800)]
i965_drv_video: fix GPU hang issue when decoding field coded MPEG2 picture.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agolibva: fix memeory leaks in libva 08/808/1
Edgar Hucek [Mon, 13 Jun 2011 05:46:06 +0000 (13:46 +0800)]
libva: fix memeory leaks in libva

Signed-off-by: Edgar Hucek <gimli@dark-green.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: fix memory leaks in i965 driver 07/807/1
Edgar Hucek [Mon, 13 Jun 2011 05:43:37 +0000 (13:43 +0800)]
i965_drv_video: fix memory leaks in i965 driver

Signed-off-by: Edgar Hucek <gimli@dark-green.com>
13 years agoi965_drv_video: track the internal format of a surface 06/806/1
Xiang, Haihao [Mon, 13 Jun 2011 04:46:16 +0000 (12:46 +0800)]
i965_drv_video: track the internal format of a surface

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoRevert the change in VA_DRI2SwapBuffers: _XReply -->_XSend 05/805/1
Austin Yuan [Fri, 10 Jun 2011 06:00:11 +0000 (14:00 +0800)]
Revert the change in VA_DRI2SwapBuffers: _XReply -->_XSend

We should use _XReplay. _XSend will introduce more CPU usage

Signed-off-by: Edgar Hucek <gimli@dark-green.com>
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
13 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/libva 04/804/1
Austin Yuan [Fri, 10 Jun 2011 05:42:56 +0000 (13:42 +0800)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/libva

13 years agotest/encode/avcenc: don't include <pciaccess.h> 03/803/1
Xiang, Haihao [Fri, 10 Jun 2011 02:53:29 +0000 (10:53 +0800)]
test/encode/avcenc: don't include <pciaccess.h>

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: encode on Ivybridge 02/802/1
Xiang, Haihao [Fri, 10 Jun 2011 02:48:16 +0000 (10:48 +0800)]
i965_drv_video: encode on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: fix VME shaders 01/801/1
Xiang, Haihao [Thu, 9 Jun 2011 08:22:03 +0000 (16:22 +0800)]
i965_drv_video: fix VME shaders

1. The response length for inter type on Ivybridge is 6.
2. fix register region

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: new shaders for VME on Ivybridge 00/800/1
Xiang, Haihao [Thu, 9 Jun 2011 05:13:24 +0000 (13:13 +0800)]
i965_drv_video: new shaders for VME on Ivybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoCorrected trace prints (updated, change format, etc), replaced \t by spaces in source... 99/799/1
Alexander Osin [Tue, 7 Jun 2011 18:37:11 +0000 (22:37 +0400)]
Corrected trace prints (updated, change format, etc), replaced \t by spaces in source code

13 years agoi965_drv_video: set surface base address in VME 98/798/1
Xiang, Haihao [Thu, 9 Jun 2011 01:56:16 +0000 (09:56 +0800)]
i965_drv_video: set surface base address in VME

It is easy to fill the binding table without relocation and make sure
all offsets in binding table only uses bits[15:0]

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: clean up 97/797/1
Xiang, Haihao [Thu, 26 May 2011 02:33:47 +0000 (10:33 +0800)]
i965_drv_video: clean up

Don't emit PIPE_CONTROL directly, instead call intel_batchbuffer_emit_mi_flush.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
13 years agoi965_drv_video: Added check of obj_surface->bo field inside i965_media_h264_surface_s... 96/796/1
Alexander Osin [Tue, 7 Jun 2011 18:35:33 +0000 (22:35 +0400)]
i965_drv_video: Added check of obj_surface->bo field inside i965_media_h264_surface_state()

13 years agotest/basic testing programs do not need to be installed 95/795/1
Austin Yuan [Wed, 8 Jun 2011 01:48:19 +0000 (18:48 -0700)]
test/basic testing programs do not need to be installed
in /usr/bin; one can run make valgrind here as a check,
or run them under make check too.

From gimli at dark-green.com

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
13 years agoi965_drv_video: improved MV quality for VME 94/794/1
Zhou Chang [Wed, 1 Jun 2011 08:01:14 +0000 (16:01 +0800)]
i965_drv_video: improved MV quality for VME

13 years agoBump to 1.0.13 93/793/1 libva-1.0.13
Austin Yuan [Tue, 31 May 2011 02:10:12 +0000 (19:10 -0700)]
Bump to 1.0.13

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>