Re: [Libva] [Mesa-dev] nouveau_drv_video.so ?

2016-06-29 Thread Xiang, Haihao
Are you using VA-API on X11? libva gets the driver name from Xserver, it is nouveau for you. so libva tries to load nouveau_drv_video.so.  You can create a symlink for nouveau pointing to a available driver or just ignore the message because you have gallium_drv_video.so now. Thanks Haihao >

[Libva] [PATCH 07/14] Encoding: Add one ROI flag and ROI buffer

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui v1: Add one flag to indicate whether ROI is supported in one encode context Allocate one ROI buffer to hold qp per mb dynamically Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: Pengfei Qu --- src/gen6_mfc_common.c | 74 +++

[Libva] [PATCH 02/14] Encoding: Setup one cost_table surface state for VME shader

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui v1: format/style aligment accordingly to avoid the warning. Currently the length of VME MEDIA_OBJECT command on Ivy can't exceed 8 dwords. If more parameter needs to be passed, the buffer length should be enlarged. Pass the Qp parameter into VME shader Signed-off-by: Zhao Yakui

[Libva] [PATCH 13/14] scaling matrix of h264 encoder on gen8/gen9

2016-06-29 Thread Pengfei Qu
From: Jia Meng qm is in raster scan order per va api, and fqm is in column wise raster scan order per hardware requirement. Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- src/gen6_mfc.c | 12 -- src/gen6_mfc.h | 2 + src/gen75_mfc.c | 12 -- src/gen7_mfc.c | 8 +++- sr

[Libva] [PATCH 04/14] encoding: Send VME instruction uses one register as the desc parameter instead of hardcode

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui The desc parameter of current VME send instruction is hardcode. And it can't be updated based on the input parameter. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: Pengfei Qu --- src/shaders/vme/inter_bframe_ivb.asm | 17 +++-- src/shaders/vme/inter

[Libva] [PATCH 14/14] QP difference configuration for adjacent IP and PB frames

2016-06-29 Thread Pengfei Qu
From: Jia Meng Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- src/gen6_mfc.h| 4 src/gen6_mfc_common.c | 41 + 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/src/gen6_mfc.h b/src/gen6_mfc.h index 4561d43..47e4efc 10

[Libva] [PATCH 09/14] Encoding: ROI support for CQP/CBR on Haswell/Ivy

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui v1: merge 3 ROI patches together Encoding: Add the support of ROI under CQP on Haswell/Ivybridge Encoding: Add the support of ROI for CBR Currently it will allocate the different qp for the ROI and non_ROI region based on the ROI ratio. The qp delta is relate

[Libva] [PATCH 12/14] Adjust the maximum number of motion vectors for B frame on HSW+

2016-06-29 Thread Pengfei Qu
From: Jia Meng Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- src/gen75_vme.c | 13 +++-- src/gen8_vme.c | 15 --- src/gen9_vme.c | 17 + 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/gen75_vme.c b/src/gen75_vme.c index 9c1ba4

[Libva] [PATCH 05/14] Encoding: Pass the qp parameter into VME shader and VME shader select the different cost table based on input Qp on Ivy

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui In order to suppor that macroblocks have the different QP to do the motion prediction, different cost tables are provided so that the VME engine can select the different mode/motion-vector cost tables based on the input Qp. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-o

[Libva] [PATCH 10/14] ROI:enable on gen8 and gen9

2016-06-29 Thread Pengfei Qu
v1: ROI enable on gen8 and gen9 Enable GPU to construct GPU command under ROI scenario Signed-off-by: Zhao Yakui Signed-off-by: Pengfei Qu --- src/gen6_mfc_common.c| 20 ++-- src/gen8_mfc.c | 55 +++--- src/gen8_vme.c | 23 +++-

[Libva] [PATCH 03/14] Encoding: VME shader reads mbmv_cost from cost_table surface instead of constant buffer on Haswell

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui This is to do the prepartion of enhanced features. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: Pengfei Qu --- src/gen75_vme.c | 14 +- src/shaders/vme/inter_bframe_haswell.asm | 24 +++- src/shaders/v

[Libva] [PATCH 08/14] encoding:use the qp per every macroblock on Ivy and haswell

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui v1: combine the patch together for Ivy and haswell use-CPU-to-construct-the-MFC-pak-command Signed-off-by: Zhao Yakui Signed-off-by: ceciliapeng Signed-off-by: Pengfei Qu --- src/gen6_mfc.c| 15 --- src/gen6_mfc_common.c | 20 +--- src/gen

[Libva] [PATCH 00/14] add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list feature

2016-06-29 Thread Pengfei Qu
this add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list features. Jia Meng (3): Adjust the maximum number of motion vectors for B frame on HSW+ scaling matrix of h264 encoder on gen8/gen9 QP difference configuration for adjacent IP and PB frames Pengfei Qu (2): ROI:enable on gen8

[Libva] [PATCH 06/14] Encoding: Dynamically select one mechanism to construct encoding command buffer for each frame on Haswell and Gen7/Gen6

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui v1: combine the Haswell and Gen7/6 patch together Currently it uses the fixed policy to construct encoding command buffer. (Use CPU or GPU). And it is statically compiled. But sometimes it needs to choose the different mechanism on the fly instead of statically compiled mode. S

[Libva] [PATCH 01/14] Encoding: Abstract the calculation of mbmv cost for qp as one function and Add one function that initialize mbmv cost table for supported Qp range

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: Pengfei Qu --- src/gen6_mfc_common.c | 104 -- src/gen6_vme.h| 15 +++- 2 files changed, 98 insertions(+), 21 deletions(-) diff --git a/src/gen6_mfc_commo

[Libva] [PATCH 00/14] add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list features

2016-06-29 Thread Pengfei Qu
this add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list features. Jia Meng (3): Adjust the maximum number of motion vectors for B frame on HSW+ scaling matrix of h264 encoder on gen8/gen9 QP difference configuration for adjacent IP and PB frames Pengfei Qu (2): ROI:enable on gen8

[Libva] [PATCH 00/14] add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list features

2016-06-29 Thread Pengfei Qu
this add ROI feature on Gen7/Gen7.5/Gen8/Gen9 and scaling list features. Jia Meng (3): Adjust the maximum number of motion vectors for B frame on HSW+ scaling matrix of h264 encoder on gen8/gen9 QP difference configuration for adjacent IP and PB frames Pengfei Qu (2): ROI:enable on gen8

[Libva] [PATCH 2/3] Encoding: Add ROI example

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui v1: add --roi-test for test only for ROI. default only one region(0,0,120,120) has been test. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: ceciliapeng Signed-off-by: Pengfei Qu --- test/encode/avcenc.c | 85 ---

[Libva] [PATCH 1/3] Subject: [PATCH] Add one flag to use the qp_delta instead of qp priority for ROI under non-CQP mode

2016-06-29 Thread Pengfei Qu
From: jialipen Currently the roi_value in VAEncROI is used as the qp priority when VAConfigAttribRateControl != VA_RC_CQP. But some customers hope to use it as qp_delta like CQP mode. In such case one flag is added to indicate whether it is qp_priority or not. At the same time driver can export i

[Libva] [PATCH 0/3] Add ROI support and interface for QP delta between frames

2016-06-29 Thread Pengfei Qu
add ROI support and interface for QP delta between frames Jia Meng (1): add ip/pb qp diff configuration Zhao Yakui (1): Encoding: Add ROI example jialipen (1): Subject: [PATCH] Add one flag to use the qp_delta instead of qp priority for ROI under non-CQP mode test/encode/avcenc.c | 8

[Libva] [PATCH 3/3] add ip/pb qp diff configuration

2016-06-29 Thread Pengfei Qu
From: Jia Meng v1: add the interface for max QP delta between frames, such as IP frame and PB frame. is is used in CBR mode. Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- va/va.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/va/va.h b/va/va.h index 8373737..e5b0e82 100644 --

Re: [Libva] [PATCH 3/3] add ip/pb qp diff configuration

2016-06-29 Thread Zhao, Yakui
What is the purpose of adding this field? It will be better that more descriptions can be added for this field so that the VA users can know its meaning. -Original Message- From: Libva [mailto:libva-boun...@lists.freedesktop.org] On Behalf Of Pengfei Qu Sent: Wednesday, June 29, 2016 5:0

[Libva] [PATCH 1/3] Subject: [PATCH] Add one flag to use the qp_delta instead of qp priority for ROI under non-CQP mode

2016-06-29 Thread Pengfei Qu
From: jialipen Currently the roi_value in VAEncROI is used as the qp priority when VAConfigAttribRateControl != VA_RC_CQP. But some customers hope to use it as qp_delta like CQP mode. In such case one flag is added to indicate whether it is qp_priority or not. At the same time driver can export i

[Libva] [PATCH 3/3] add ip/pb qp diff configuration

2016-06-29 Thread Pengfei Qu
From: Jia Meng Signed-off-by: Jia Meng Signed-off-by: Pengfei Qu --- va/va.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/va/va.h b/va/va.h index 8373737..cb2d070 100644 --- a/va/va.h +++ b/va/va.h @@ -1159,6 +1159,9 @@ typedef struct _VAEncMiscParameterRateControl unsigned int

[Libva] [PATCH 2/3] Encoding: Add ROI example

2016-06-29 Thread Pengfei Qu
From: Zhao Yakui v1: add --roi-test for test only for ROI. default only one region(0,0,120,120) has been test. Signed-off-by: Zhao Yakui Signed-off-by: pjl Signed-off-by: ceciliapeng Signed-off-by: Pengfei Qu --- test/encode/avcenc.c | 85 ---

[Libva] [PATCH 0/3] Add ROI support and interface for QP delta between frames

2016-06-29 Thread Pengfei Qu
Add ROI support and interface for QP delta between frames Jia Meng (1): add ip/pb qp diff configuration Zhao Yakui (1): Encoding: Add ROI example jialipen (1): Subject: [PATCH] Add one flag to use the qp_delta instead of qp priority for ROI under non-CQP mode test/encode/avcenc.c | 8