platform/upstream/libva.git
14 years agoAdded VA_STATUS_ERROR_INVALID_IMAGE_FORMAT
Austin Yuan [Tue, 8 Jun 2010 08:57:58 +0000 (16:57 +0800)]
Added VA_STATUS_ERROR_INVALID_IMAGE_FORMAT

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoMerge branch 'i965_h264'
Xiang, Haihao [Tue, 8 Jun 2010 01:53:02 +0000 (09:53 +0800)]
Merge branch 'i965_h264'

Conflicts:
va/x11/dri2_util.c

14 years agoi965_drv_video: [H.264] some code clean up
Xiang, Haihao [Tue, 8 Jun 2010 01:19:13 +0000 (09:19 +0800)]
i965_drv_video: [H.264] some code clean up

14 years agoLink libva-android with libva for vaDisplayIsValid
Austin Yuan [Fri, 4 Jun 2010 09:31:07 +0000 (17:31 +0800)]
Link libva-android with libva for vaDisplayIsValid

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoFollow up the change of "LIBVA_DRIVER_NAME", remove it from va_android.cpp
Austin Yuan [Fri, 4 Jun 2010 06:29:01 +0000 (14:29 +0800)]
Follow up the change of "LIBVA_DRIVER_NAME", remove it from va_android.cpp

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoMove LIBVA_DRIVER_NAME check in vaInitialize().
Gwenole Beauchesne [Tue, 23 Feb 2010 09:11:22 +0000 (09:11 +0000)]
Move LIBVA_DRIVER_NAME check in vaInitialize().

14 years agoVA/GLX cosmetics (indentation, declarations)
Gwenole Beauchesne [Tue, 13 Apr 2010 02:54:11 +0000 (04:54 +0200)]
VA/GLX cosmetics (indentation, declarations)

14 years agoFix vainfo to build out of the source dir
Gwenole Beauchesne [Tue, 22 Sep 2009 12:29:56 +0000 (12:29 +0000)]
Fix vainfo to build out of the source dir

14 years agoDon't search LIBGL_DRIVERS_PATH, stick to LIBVA_DRIVERS_PATH only or the default...
Gwenole Beauchesne [Tue, 22 Sep 2009 13:03:23 +0000 (13:03 +0000)]
Don't search LIBGL_DRIVERS_PATH, stick to LIBVA_DRIVERS_PATH only or the default path.

14 years agoFix libva-x11 dependencies. Ensure this grabs libva so that people don't have to...
Gwenole Beauchesne [Tue, 22 Sep 2009 13:00:34 +0000 (13:00 +0000)]
Fix libva-x11 dependencies. Ensure this grabs libva so that people don't have to check for that themselves.

14 years agoFix vainfo dependencies (Konstantin Pavlov).
Gwenole Beauchesne [Tue, 22 Sep 2009 12:29:56 +0000 (12:29 +0000)]
Fix vainfo dependencies (Konstantin Pavlov).

14 years agoDon't dump VA surface pixels if driver doesn't return VA surface buffer.
Gwenole Beauchesne [Wed, 2 Jun 2010 07:10:27 +0000 (09:10 +0200)]
Don't dump VA surface pixels if driver doesn't return VA surface buffer.

14 years agoFix VA tracer to correctly dump array of bytes.
Gwenole Beauchesne [Wed, 2 Jun 2010 07:07:43 +0000 (09:07 +0200)]
Fix VA tracer to correctly dump array of bytes.

14 years agoCall va_TraceEndPicture() after the actual vaEndPicture(). i.e. let the driver flush...
Gwenole Beauchesne [Wed, 2 Jun 2010 07:04:33 +0000 (09:04 +0200)]
Call va_TraceEndPicture() after the actual vaEndPicture(). i.e. let the driver flush and complete rendering of the surface.

14 years agoi965_drv_video: new ring buffer flag
Xiang, Haihao [Wed, 2 Jun 2010 07:12:03 +0000 (15:12 +0800)]
i965_drv_video: new ring buffer flag

14 years agoi965_drv_video: fix graphics memory usage
Xiang, Haihao [Wed, 2 Jun 2010 07:11:07 +0000 (15:11 +0800)]
i965_drv_video: fix graphics memory usage

14 years agoi965_drv_video: don't execute batch buffer after decoding a picture
Xiang, Haihao [Wed, 2 Jun 2010 06:27:14 +0000 (14:27 +0800)]
i965_drv_video: don't execute batch buffer after decoding a picture

14 years agoi965_drv_video: [H.264] enlarge concurrent threads for ILDB
Xiang, Haihao [Tue, 1 Jun 2010 09:29:09 +0000 (17:29 +0800)]
i965_drv_video: [H.264] enlarge concurrent threads for ILDB

14 years agoi965_drv_video: [H.264] devide the command buffer into smaller sections for HWscorebo...
Xiang, Haihao [Fri, 28 May 2010 05:20:17 +0000 (13:20 +0800)]
i965_drv_video: [H.264] devide the command buffer into smaller sections for HWscoreboard thread.

14 years agoi965_drv_vidoe: update max_thread for rendering
Xiang, Haihao [Tue, 18 May 2010 04:55:51 +0000 (12:55 +0800)]
i965_drv_vidoe: update max_thread for rendering

14 years agoi965_drv_video: fix initialization function
Xiang, Haihao [Mon, 17 May 2010 09:17:36 +0000 (17:17 +0800)]
i965_drv_video: fix initialization function

14 years agolibva: update DRI2 to support swapbuffer
Xiang, Haihao [Wed, 2 Jun 2010 05:50:15 +0000 (13:50 +0800)]
libva: update DRI2 to support swapbuffer

14 years ago1) clean up Android header file to make it work in C file (from zhaohan.ren at intel...
Austin Yuan [Wed, 2 Jun 2010 02:22:01 +0000 (10:22 +0800)]
1) clean up Android header file to make it work in C file (from zhaohan.ren at intel.com)
2) rearrange va/Makefile.am (from elaine.wang at intel.com)
3) apply the new VACodedBufferSegment to encode test APP

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoFix make dist.
Gwenole Beauchesne [Tue, 1 Jun 2010 11:20:17 +0000 (13:20 +0200)]
Fix make dist.

14 years agoFix TPI lib dependencies.
Gwenole Beauchesne [Tue, 1 Jun 2010 10:26:40 +0000 (12:26 +0200)]
Fix TPI lib dependencies.

14 years agoDrop superfluous versions.
Gwenole Beauchesne [Tue, 1 Jun 2010 10:30:46 +0000 (12:30 +0200)]
Drop superfluous versions.

14 years agoFix out-of-source builds.
Gwenole Beauchesne [Tue, 18 May 2010 15:16:57 +0000 (17:16 +0200)]
Fix out-of-source builds.

14 years agomv va_android.c -> va_dummy.c
Austin Yuan [Fri, 21 May 2010 10:23:51 +0000 (18:23 +0800)]
mv va_android.c -> va_dummy.c

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoAdded intra_idr_period for H264 encode
Austin Yuan [Thu, 20 May 2010 06:42:43 +0000 (14:42 +0800)]
Added intra_idr_period for H264 encode

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoremove vaDisplayIsValid from libva-glx
Austin Yuan [Thu, 20 May 2010 05:55:37 +0000 (13:55 +0800)]
remove vaDisplayIsValid from libva-glx

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoPass down ISurface instead of Surface
Ren Zhaohan [Tue, 18 May 2010 07:44:55 +0000 (15:44 +0800)]
Pass down ISurface instead of Surface

14 years agoremove vaDisplayIsValid by linking libva_android.so
Ren Zhaohan [Thu, 13 May 2010 06:37:06 +0000 (14:37 +0800)]
remove vaDisplayIsValid by linking libva_android.so

14 years agoincreate version
Austin Yuan [Wed, 12 May 2010 21:56:45 +0000 (05:56 +0800)]
increate version

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoFix build issue
Austin Yuan [Wed, 12 May 2010 21:09:09 +0000 (14:09 -0700)]
Fix build issue

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoAdd OpenGL extensions (v3) and generic implementation with TFP and FBO.
Gwenole Beauchesne [Tue, 13 Apr 2010 02:54:11 +0000 (04:54 +0200)]
Add OpenGL extensions (v3) and generic implementation with TFP and FBO.

14 years agoAdd OpenGL extensions (v3) and generic implementation with TFP and FBO.
Gwenole Beauchesne [Mon, 8 Mar 2010 08:44:25 +0000 (09:44 +0100)]
Add OpenGL extensions (v3) and generic implementation with TFP and FBO.

14 years agoremove Drawable paramater of vaPutSurfaceBuf
Ren Zhaohan [Wed, 12 May 2010 06:16:37 +0000 (14:16 +0800)]
remove Drawable paramater of vaPutSurfaceBuf

14 years agoAdd copy va_tpi.h in Android.mk
Ren Zhaohan [Wed, 12 May 2010 04:04:28 +0000 (12:04 +0800)]
Add copy va_tpi.h in Android.mk

14 years agoAdd local vaDisplayIsValid
Ren Zhaohan [Tue, 11 May 2010 06:45:13 +0000 (14:45 +0800)]
Add local vaDisplayIsValid

14 years agoMerge branch 'test' into libva-1.1
Ren Zhaohan [Tue, 11 May 2010 06:36:43 +0000 (14:36 +0800)]
Merge branch 'test' into libva-1.1

14 years agoAdd vaPutSurfaceBuf to va_backend_tpi.h and va_tpi.c[h], update Android.mk for new...
Ren Zhaohan [Tue, 11 May 2010 06:33:37 +0000 (14:33 +0800)]
Add vaPutSurfaceBuf to va_backend_tpi.h and va_tpi.c[h], update Android.mk for new shared lib libva_android_tpi.so

14 years agoglobal vaDisplayIsValid PO-ww20.1-video PO-ww20.2-video
Austin Yuan [Mon, 10 May 2010 17:14:53 +0000 (01:14 +0800)]
global vaDisplayIsValid

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoSeperate 3rd party API (e.g. vaCreateSurfaceFromXXX) into a libva-tpi.so
Austin Yuan [Fri, 7 May 2010 18:03:56 +0000 (02:03 +0800)]
Seperate 3rd party API (e.g. vaCreateSurfaceFromXXX) into a libva-tpi.so
and driver table memory is allocated by driver if driver wants to support it.

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoRemove and redifine some Xlib Macros, use void* instead of Surface* for VAStatus...
Ren Zhaohan [Fri, 7 May 2010 03:42:16 +0000 (11:42 +0800)]
Remove and redifine some Xlib Macros, use void* instead of Surface* for VAStatus (*vaPutSurface)

14 years agoi965_drv_video: [H.264] add support for ILDB
Xiang, Haihao [Fri, 7 May 2010 03:17:31 +0000 (11:17 +0800)]
i965_drv_video: [H.264] add support for ILDB

14 years agomove va_android.c => va_android.cpp, use sp<Surface> instead of void*.
Ren Zhaohan [Thu, 6 May 2010 11:40:00 +0000 (19:40 +0800)]
move va_android.c => va_android.cpp, use sp<Surface> instead of void*.

14 years agorestore old va_DisplayContextGetDriverName
Ren Zhaohan [Thu, 6 May 2010 06:39:16 +0000 (14:39 +0800)]
restore old va_DisplayContextGetDriverName

14 years agouse Surface* instead of void*
Ren Zhaohan [Thu, 6 May 2010 01:49:51 +0000 (09:49 +0800)]
use Surface* instead of void*

14 years agoadd new va_DisplayContextGetDriverName, remove 'x11/XX' include folder name PO-ww19.3-new
Ren Zhaohan [Wed, 5 May 2010 08:19:39 +0000 (16:19 +0800)]
add new va_DisplayContextGetDriverName, remove 'x11/XX' include folder name

14 years agoremove udev
Ren Zhaohan [Tue, 4 May 2010 07:56:25 +0000 (15:56 +0800)]
remove udev

14 years agoandroid and dummy backend
Austin Yuan [Thu, 29 Apr 2010 03:34:10 +0000 (11:34 +0800)]
android and dummy backend

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoMerge branch 'va_backend' into PO
Austin Yuan [Wed, 28 Apr 2010 23:20:56 +0000 (07:20 +0800)]
Merge branch 'va_backend' into PO

Conflicts:
va/android/va_android.c
va/va_android.h
va/va_backend.h

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agolibva backend
Ren Zhaohan [Tue, 27 Apr 2010 06:36:24 +0000 (14:36 +0800)]
libva backend

14 years agoAdded VACodedBufferSegment
Austin Yuan [Tue, 27 Apr 2010 00:04:45 +0000 (08:04 +0800)]
Added VACodedBufferSegment

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoi965_drv_video: move AVC-ILDB data buffer to struct i965_h264_context
Xiang, Haihao [Mon, 19 Apr 2010 06:41:31 +0000 (14:41 +0800)]
i965_drv_video: move AVC-ILDB data buffer to struct i965_h264_context

14 years agoi965_drv_video: [H.264] fix weight 128 issue
Xiang, Haihao [Mon, 19 Apr 2010 05:31:23 +0000 (13:31 +0800)]
i965_drv_video: [H.264] fix weight 128 issue

14 years agosave
Austin Yuan [Fri, 16 Apr 2010 18:56:53 +0000 (02:56 +0800)]
save

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agosave
Austin Yuan [Thu, 15 Apr 2010 22:57:13 +0000 (06:57 +0800)]
save

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agosave
Austin Yuan [Thu, 15 Apr 2010 22:24:31 +0000 (06:24 +0800)]
save

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agosave
Austin Yuan [Thu, 15 Apr 2010 22:16:19 +0000 (06:16 +0800)]
save

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agosave
Austin Yuan [Thu, 15 Apr 2010 21:36:59 +0000 (05:36 +0800)]
save

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoi965_drv_video: [H.264] fix for weight/offset state
Xiang, Haihao [Thu, 15 Apr 2010 01:18:53 +0000 (09:18 +0800)]
i965_drv_video: [H.264] fix for weight/offset state

14 years agoi965_drv_video: [H.264] track frame store index
Xiang, Haihao [Wed, 14 Apr 2010 07:14:50 +0000 (15:14 +0800)]
i965_drv_video: [H.264] track frame store index

14 years agoi965_drv_video: fix an assertion
Xiang, Haihao [Fri, 9 Apr 2010 07:33:35 +0000 (15:33 +0800)]
i965_drv_video: fix an assertion

14 years agoi965_drv_video: fix MBAFF issue
Xiang, Haihao [Fri, 9 Apr 2010 05:54:58 +0000 (13:54 +0800)]
i965_drv_video: fix MBAFF issue

14 years agoi965_drv_video: surface width/height is 16Btye aligned.
Xiang, Haihao [Thu, 8 Apr 2010 07:46:16 +0000 (15:46 +0800)]
i965_drv_video: surface width/height is 16Btye aligned.

14 years agoAdd vaPutSurfaceBuf for Android 20100414_5.3.0.0002 20100421_5.3.0.0003 20100428_5.3.0.0004 20100505_5.3.0.0005 20100510_5.3.0.0006_mdfld_eng_1 20100512_5.3.0.0007 20100517_5.3.0.0008 IMG_Drop_20100507_MDFLD
Ren Zhaohan [Thu, 8 Apr 2010 05:44:05 +0000 (13:44 +0800)]
Add vaPutSurfaceBuf for Android

14 years agopsb_drv_video error: vaPutSurface: invalidate drawable
Ren Zhaohan [Wed, 7 Apr 2010 11:40:34 +0000 (19:40 +0800)]
psb_drv_video error: vaPutSurface: invalidate drawable

14 years agoi965_drv_video: fix an assertion
Xiang, Haihao [Wed, 7 Apr 2010 09:28:52 +0000 (17:28 +0800)]
i965_drv_video: fix an assertion

14 years agoi965_drv_video: fix an error in the previous commit
Xiang, Haihao [Wed, 7 Apr 2010 03:27:11 +0000 (11:27 +0800)]
i965_drv_video: fix an error in the previous commit

14 years agoremove the unmature MIO
Austin Yuan [Wed, 7 Apr 2010 02:46:17 +0000 (10:46 +0800)]
remove the unmature MIO

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoMerge branch 'master' of ssh://git@moblin.intel.com/umg-moorestown-libva
Austin Yuan [Wed, 7 Apr 2010 02:46:02 +0000 (10:46 +0800)]
Merge branch 'master' of ssh://git@moblin.intel.com/umg-moorestown-libva

14 years agoAdd Android.mk under libva/ to recursive call sub-dir's makefile
Ren Zhaohan [Tue, 6 Apr 2010 09:43:02 +0000 (17:43 +0800)]
Add Android.mk under libva/ to recursive call sub-dir's makefile

14 years agoi965_drv_video: initialize depth buffer
Zou nan hai [Tue, 6 Apr 2010 09:02:42 +0000 (17:02 +0800)]
i965_drv_video: initialize depth buffer

14 years agoAdd coded_buf to VAEncPictureParameterBufferJPEG.
Elaine Wang [Tue, 6 Apr 2010 08:06:28 +0000 (16:06 +0800)]
Add coded_buf to VAEncPictureParameterBufferJPEG.

14 years agoi965_drv_video: multiple slices in a picture for H.264
Xiang, Haihao [Tue, 6 Apr 2010 07:06:45 +0000 (15:06 +0800)]
i965_drv_video: multiple slices in a picture for H.264

14 years agoMerge branch 'master' of ssh://git@moblin.intel.com/umg-moorestown-libva
Austin Yuan [Tue, 6 Apr 2010 01:11:27 +0000 (09:11 +0800)]
Merge branch 'master' of ssh://git@moblin.intel.com/umg-moorestown-libva

14 years agoAdd Android.mk, pass compile
Ren Zhaohan [Thu, 1 Apr 2010 11:45:55 +0000 (19:45 +0800)]
Add Android.mk, pass compile

14 years agoAdded codedbuf into JPEG encode picture parameter
Austin Yuan [Thu, 1 Apr 2010 08:03:16 +0000 (16:03 +0800)]
Added codedbuf into JPEG encode picture parameter

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoUpdate va_DisplayContextIsValid, driver name and included files
Ren Zhaohan [Thu, 1 Apr 2010 06:57:38 +0000 (14:57 +0800)]
Update va_DisplayContextIsValid, driver name and included files

14 years agoAdded MIO example based on vaPutSurface
Austin Yuan [Thu, 1 Apr 2010 06:43:58 +0000 (14:43 +0800)]
Added MIO example based on vaPutSurface

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agopass moblin compile
Ren Zhaohan [Thu, 1 Apr 2010 14:04:18 +0000 (22:04 +0800)]
pass moblin compile

14 years agomove vaPutSurface(dpy, Surface *draw, XXX) into android/va_android.c
Austin Yuan [Wed, 31 Mar 2010 06:37:22 +0000 (14:37 +0800)]
move vaPutSurface(dpy, Surface *draw, XXX) into android/va_android.c

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agofix build issue
Austin Yuan [Wed, 31 Mar 2010 06:34:12 +0000 (14:34 +0800)]
fix build issue

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoInitial android backend
Austin Yuan [Wed, 31 Mar 2010 06:23:36 +0000 (14:23 +0800)]
Initial android backend

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoi965_drv_video: move DMV buffer to private data
Xiang, Haihao [Wed, 31 Mar 2010 05:51:22 +0000 (13:51 +0800)]
i965_drv_video: move DMV buffer to private data

14 years agoDisplay *x11_dpy ==> void *native_dpy for other window system
Austin Yuan [Wed, 31 Mar 2010 05:21:43 +0000 (13:21 +0800)]
Display *x11_dpy ==> void *native_dpy for other window system

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agomerge vatrace
Austin Yuan [Tue, 30 Mar 2010 07:19:28 +0000 (15:19 +0800)]
merge vatrace

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agofix build issue 20100330_5.3.0.0001_Alpha2
Austin Yuan [Mon, 29 Mar 2010 08:22:42 +0000 (16:22 +0800)]
fix build issue

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoi965_drv_video: fix POC value for current picture
Xiang, Haihao [Mon, 29 Mar 2010 07:37:12 +0000 (15:37 +0800)]
i965_drv_video: fix POC value for current picture

14 years agoAdd entrypoint for JPEG encode
Austin Yuan [Mon, 29 Mar 2010 06:56:32 +0000 (14:56 +0800)]
Add entrypoint for JPEG encode

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoAdded JPEG/IEP data structure
Austin Yuan [Mon, 29 Mar 2010 06:43:20 +0000 (14:43 +0800)]
Added JPEG/IEP data structure

Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
14 years agoMerge branch 'powervr_iep_lite'
Austin Yuan [Mon, 29 Mar 2010 05:20:50 +0000 (13:20 +0800)]
Merge branch 'powervr_iep_lite'

14 years agoi965_drv_video: add support for H264 on Clarkdale/Arrandale
Xiang, Haihao [Fri, 26 Mar 2010 04:48:50 +0000 (12:48 +0800)]
i965_drv_video: add support for H264 on Clarkdale/Arrandale

14 years agoadd PowerVR IEP Lite related new display attributes
Daniel(Qiang), Miao [Wed, 24 Mar 2010 16:22:18 +0000 (00:22 +0800)]
add PowerVR IEP Lite related new display attributes

14 years agoMerge branch 'master' of git+ssh://AustinYuan@git.freedesktop.org/git/libva into... 20100324_5.3.0.0000
Austin Yuan [Wed, 24 Mar 2010 02:43:53 +0000 (10:43 +0800)]
Merge branch 'master' of git+ssh://AustinYuan@git.freedesktop.org/git/libva into sync-fdo-master

14 years agoMove vaPutSurface() flags to <va/va.h> header.
Gwenole Beauchesne [Fri, 21 Aug 2009 11:34:50 +0000 (11:34 +0000)]
Move vaPutSurface() flags to <va/va.h> header.

14 years agoFix drivers build.
Gwenole Beauchesne [Mon, 8 Mar 2010 08:41:41 +0000 (09:41 +0100)]
Fix drivers build.

14 years agoDrop <va/va_x11.h> include from <va/va_backend.h> as it is pointless.
Gwenole Beauchesne [Mon, 8 Mar 2010 08:48:47 +0000 (09:48 +0100)]
Drop <va/va_x11.h> include from <va/va_backend.h> as it is pointless.

14 years agoRemove IN_LIBVA defines, Thanks for the patch from Gwenole
Austin Yuan [Mon, 8 Mar 2010 05:36:15 +0000 (13:36 +0800)]
Remove IN_LIBVA defines, Thanks for the patch from Gwenole

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